Query Expansion
A technique where a search query is supplemented with synonyms and related terms to find more relevant results.
Why
A user writes 'machine', but documents use 'automobile'. Exact search finds nothing. Query expansion adds 'automobile, car, transport' and increases the chances of finding relevant results.
Methods of Expansion
- Synonyms — manually or from dictionaries;
- LLM-generation — the model adds related terms;
- Stemming — reducing words to their base form ('cats' → 'cat').
Difference from Query Rewriting
| Query Expansion | Query Rewriting | |
|---|---|---|
| Essence | Add words | Re-formulate the question |
| Result | Broader coverage | More precise formulation |