Consider it when a domain has specialized vocabulary or notions of relevance that general models miss, and you have measured a retrieval gap even after tuning chunking, hybrid search and reranking.
Data: pairs of queries and relevant passages (from click logs, labeled questions, or synthetic questions generated by an LLM for each chunk), plus hard negatives mined with the current model.
Train with a contrastive loss, hold out an evaluation set, and compare against the base model on recall and MRR as well as general-purpose tasks to check for regressions.
It requires re-embedding the whole corpus afterward.
Loading…