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

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

This interactive level needs JavaScript. Built by (cybernerdie).