A RAG system retrieves poorly on user queries that use different terminology than the indexed documents. Users ask about 'heart attack' but relevant documents use 'myocardial infarction.' The system misses relevant results because the semantic distance between lay and clinical terminology is larger than the similarity threshold. What is the most effective query expansion approach using Claude?
Select an answer to reveal the explanation.
Short Explanation and Infographic
Here's the deal — c is correct because Claude-based query expansion generates contextually appropriate alternatives that cover both terminology gaps: Claude understands that 'heart attack' and 'myocardial infarction' are synonymous and can generate variants like 'acute MI,' 'cardiac infarction,' and 'coronary event' that span the terminology space. Unioning retrieval results across variants maximizes recall before reranking for precision.
Full explanation below image
Full Explanation
C is correct because Claude-based query expansion generates contextually appropriate alternatives that cover both terminology gaps: Claude understands that 'heart attack' and 'myocardial infarction' are synonymous and can generate variants like 'acute MI,' 'cardiac infarction,' and 'coronary event' that span the terminology space. Unioning retrieval results across variants maximizes recall before reranking for precision. A is wrong because static synonym dictionaries cannot cover the full scope of lay-to-clinical term variation — they require manual maintenance and miss contextually derived synonyms, abbreviations, and domain-specific jargon combinations. B is wrong because lowering the similarity threshold retrieves more documents but does not bridge the terminology gap — the problematic queries return wrong documents at high similarity, not correct documents at low similarity. D is wrong because fine-tuning embedding models is expensive, requires specialized training data, and takes weeks to execute; Claude-based query expansion is deployable immediately with high coverage.