AISim › Chapter 6: Find the bug
It found it, then threw it away
Level 29. Recall looks fine. The answers don't.
Your search pipeline has everything: vector search, keyword search and a reranker. The logs show the right document is almost always retrieved. Yet the assistant still says "I couldn't find that" or guesses, especially on questions that need two pieces of information.
Goals
- accuracy at least 85%
- hallucination rate at most 13%
Concepts: Debugging, Reranking, Context.
Hint
Follow one failed request step by step. The right chunk is found. How many chunks actually reach the model?
What you learn
A reranker is a filter: it decides what the model gets to read. Keep too few and you throw away the second fact a question needs, or the right chunk when the reranker's top pick is wrong. Keep too many and you're back to noise and cost. A handful usually works best.
More in this chapter
- Right answer, wrong question (Level 26)
- The goldfish (Level 27)
- Safe and useless (Level 28)
- Overthinking "hello" (Level 30)
- Three bugs, one system (Chapter 6 boss)
This interactive level needs JavaScript. Built by Joshua Paul (cybernerdie).