
Why expansion works: a short, ambiguous query becomes several reformulations that each search independently and fuse via Reciprocal Rank Fusion; HyDE takes the opposite path and embeds a hypothetical answer instead of the question.
Stage Category: FILTER (Generates and fuses search results)Transformation: 1 query → N query variations → fused results
When to Use
When NOT to Use
Parameters
Fusion Methods
Configuration Examples
How Query Expansion Works
- Original Query: “how to fix memory leaks”
- LLM Generates Variations:
- “memory leak detection and resolution”
- “debugging memory issues in applications”
- “preventing memory leaks in code”
- Execute Searches: Run vector search for each variation
- Fuse Results: Combine using RRF or other fusion method
- Return: Deduplicated, ranked result set
Reciprocal Rank Fusion (RRF)
RRF combines results from multiple queries using the formula:k is typically 60, and rank_i is the document’s rank in query i’s results.
Output Schema
Each document includes fusion metadata:Performance
Common Pipeline Patterns
Expanded Search + Rerank
Expansion + Filter + Summarize
Cost Optimization
Error Handling
Related
- Feature Search - Single query search
- Feature Search - Vector + text search
- Rerank - Re-score fused results

