Measure RAG retrieval recall before tweaking prompts, engineer urges
Heavy-Confidence1826 · reddit · 2026-12-01
A Reddit post argues that wrong RAG answers usually stem from retrieval, not generation: if the gold passage never enters the retrieved set, no generator can recover it.
Suggested workflow:
- Collect 50-100 real questions with known gold passages
- Run the retriever alone and check recall@k
- Add the reranker and re-check; a drop means it's demoting correct chunks
Common recall killers: chunk boundaries splitting tables or definitions from context, metadata filters excluding the right document pre-retrieval, embedding models unfamiliar with domain vocabulary, and top-k tuned for latency over coverage.
Fix order matters: retrieval first, then reranking, then generation — better prompts on poor recall just yield more fluent wrong answers.
More from coding & agent
- Dev proposes using AI agents to resurrect dead Flash and Shockwave web games — lucasmeijer · 2026-12-01
- AWS pitches virtual desktops as AI agent control plane; architect calls it 'dynamic screen scraping' — DavidLinthicum · 2026-12-01
- LangChain breaks a production agent into three parts in 2-minute Deep Agents video — LangChain · 2026-12-01
- Grok Build hailed as the most complete coding toolset ever released — tetsuoai · 2026-12-01
- AI agent migrates 1,500-rung Allen-Bradley PLC program to Siemens TIA Portal in 20 minutes — Rude_Wallaby_4435 · 2026-12-01
- HeyGen MCP workflow: Blender blockouts become fully rendered AI shots — HeyGen · 2026-12-01