SmartFAQs.ai
Back to Learn
Intermediate

Synonym Expansion

A query preprocessing technique that augments a user’s prompt with semantically related terms to increase retrieval recall by bridging vocabulary gaps between the query and the indexed document corpus. Trade-off: While it improves the chances of finding relevant documents (recall), it risks introducing 'semantic drift' or noise, which can degrade the precision of the context window if synonyms are too broad.

Definition

A query preprocessing technique that augments a user’s prompt with semantically related terms to increase retrieval recall by bridging vocabulary gaps between the query and the indexed document corpus. Trade-off: While it improves the chances of finding relevant documents (recall), it risks introducing 'semantic drift' or noise, which can degrade the precision of the context window if synonyms are too broad.

Disambiguation

Explicit text-based augmentation versus implicit vector-based similarity.

Visual Metaphor

"A flashlight with a wide-angle lens attachment that illuminates peripheral objects related to the central focus."

Key Tools
LangChainLlamaIndexNLTKspaCyWordNetOpenAI (for LLM-based rewriting)
Related Connections

Conceptual Overview

A query preprocessing technique that augments a user’s prompt with semantically related terms to increase retrieval recall by bridging vocabulary gaps between the query and the indexed document corpus. Trade-off: While it improves the chances of finding relevant documents (recall), it risks introducing 'semantic drift' or noise, which can degrade the precision of the context window if synonyms are too broad.

Disambiguation

Explicit text-based augmentation versus implicit vector-based similarity.

Visual Analog

A flashlight with a wide-angle lens attachment that illuminates peripheral objects related to the central focus.

Related Articles