Retrieval

Pick the best chunks for a question — quality of RAG lives or dies here.

Retrieval strategies

Top-K: Usually 3–10 chunks. Too many adds noise; too few misses context.

Use the explorer below to tune `top_k` and similarity threshold and observe how the retrieved context changes the grounded answer.

Retrieval Explorer

Open retrieval lab

Common failures

Wrong chunk retrieved → correct-looking hallucination. Fix with better chunking, metadata filters, hybrid search, or re-ranking.