⚠ Switch to EXCALIDRAW VIEW in the MORE OPTIONS menu of this document. ⚠ You can decompress Drawing data with the command palette: ‘Decompress current Excalidraw file’. For more info check in plugin settings under ‘Saving’
Excalidraw Data
Text Elements
Advanced Retrieval Pipeline
User Query
Query Transformations
├─ HyDE: Hypothetical answer
├─ Multi-Query: Decompose into sub-queries
└─ Query Expansion: Add synonyms
Multiple refined queries
Hybrid Search
├─ Sparse (BM25): Keyword match
├─ Dense (Vector): Semantic match
└─ Combine: Union or weighted sum
100+ candidates
RE-RANKING
├─ Cross-Encoder: Fine-grained scoring
├─ Pointwise: Score each doc independently
└─ Reorder: Put best docs first
10 top candidates
LLM Generation
├─ Context assembly
├─ Prompt engineering
└─ Answer generation
Final Answer
-
Query Transformation
→ Catches more relevant docs
-
Hybrid Search
→ Broad coverage (recall)
-
Re-ranking
→ Filters and orders (precision)
-
Together
→ Best docs in top-K with
high probability