⚠ 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
RAG Pipeline with Re-ranking
User Query
Query Transformation (Optional)
HyDE, Multi-Query, Query Expansion
Stage 1: Initial Retrieval
Fast, High Recall
Hybrid Search: BM25 + Dense Vectors
~100 candidates
Stage 2: RE-RANKING
Cross-Encoder Re-scoring
Slow, High Precision
← YOU ARE HERE
top-K reordered
Context Assembly
Chunk & format top-K for prompt
LLM Generation
Answer question using reranked context
Final Answer