179 questions
No questions match those filters.
How does an agent decide when retrieved context is insu...
This is one of the questions in the full AI/ML interview bank. Pro unlocks all 1789 questions; Premium includes the same bank plus the highest daily Practice limit.
See plansThis is the step that’s absent from standard RAG entirely, and it’s what actually makes Agentic RAG useful rather than just RAG with extra steps. Two checks, cheap-first:
- Similarity threshold — look at the score of the top retrieved chunk. A low score is a fast, nearly free signal that the query probably didn’t match well against the corpus, before spending a generation call on it.
- Direct evaluation — have the model itself look at the retrieved chunks and the question and answer plainly: does this contain what’s needed, and if not, what’s missing? This is more expensive but more reliable than a score threshold alone, since a chunk can score reasonably well on similarity while still missing the specific detail the question needs.
When either check fails, the agent has a fixed menu of recoveries rather than one option: reformulate the query with different terms, break the question into narrower sub-questions, try a different index or knowledge base, or fall back to a live web search. What it shouldn’t do is generate an answer from context it just flagged as insufficient — the entire point of the check is to catch that case before it reaches the user rather than after.