Skip to content
anythingai.space
Retrieval & RAGadvanced12 min · 9 steps

Agentic RAG

Turn the fixed retrieve-then-generate pipeline into a loop that decides what to search next and when it has enough — with a budget.

Full chapter: Agentic RAG
latency1s
searches1
“Microsoft acquired GitHub”Missing hop: “Where is Microsoftheadquartered?” was never searchedUserRetrieve oncetop-k for the full questionAnswerhalf an answer
requesterrortool calldatasignalresponse
metrics are illustrative
1 / 9
ProblemStep 1 of 9

A single retrieval can't follow a chain of facts

“In which city is the company that acquired GitHub headquartered?” A linear pipeline embeds that question and retrieves once. It finds the acquisition article — which never mentions the headquarters.

The second fact can only be searched for after the first one is known. A predetermined pipeline has no step for that.

Lesson 8 of 37 in Retrieval & RAG