Query expansion is a retrieval technique that augments a user's original search input with additional, semantically related terms or phrases to improve recall by bridging the vocabulary gap between queries and stored documents. It operates on the principle that a single concept can be expressed with different terminology. In agentic memory systems, this is critical for ensuring an autonomous agent retrieves all relevant context from its vector database or knowledge graph, even when the initial prompt uses unexpected phrasing. Common methods include using synonyms, hyponyms, or terms derived from pseudo-relevance feedback.
