A few years ago, RAG was the way to give an LLM your documents: chunk them, embed them, retrieve the most relevant chunks, re-rank them and generate an answer. The concept is simple enough to build in 5 minutes but can be extended with a playbook of techniques and frameworks like LlamaIndex.
I recently picked up ConvFinQA, a dataset of multi-turn questions about financial documents that usually need a calculation, to explore RAG and related techniques. The retriever-generator approach is still the standard one in the literature and I implemented a full pipeline. But looking back, if I started again I'd use agentic search (i.e. give an agent search tools and let it decide what to look for) instead of RAG.
A full RAG pipeline¶

My bells-and-whistles RAG pipeline for multi-turn Q&A worked as follows:
Retrieval:
- First, a small LLM a) rewrote each question to spell out anything it referred to from earlier in the conversation, because later turns rely on earlier ones (e.g. "what is it?" becomes "what is income?"), and b) split compound questions into subqueries.
- The financial document was chunked into sentences, tables and sections.
- Each subquery searched those chunks in two ways, BM25 keyword search and semantic search with
bge-small-en-v1.5. - Reciprocal rank fusion merged the two rankings into one list and a cross-encoder re-ranked that list and kept the top 6 chunks.
Generation:
- A ReAct agent (GPT-5.6 Terra) read those chunks and worked out the answer with a
calculatetool (plus a fallbackread_documenttool to fetch the full document). - Finally a separate LLM (Qwen 3.7 Flash) call formatted the value.
On 200 multi-turn conversations (706 questions) it got 80% correct.
Retrieval is not the hard part¶
Retrieval generally worked: the search found the numbers needed for the calculation almost every time. When the pipeline gave the wrong output, the required input chunks had been retrieved 90% of the time.
Rewriting and splitting the questions took almost a fifth of the running time, for little or no gain in accuracy in small ablation tests. Skipping chunking altogether and giving the agent the full document made very little difference either (but I kept chunking anyway, for real-life usage this would be necessary e.g. documents too long for the context window); in fact even with accurate retrieval, without the full doc the reasoning agent would often (~10%) refuse to answer, claiming insufficient evidence.
The errors that remained were mostly about judgement rather than finding information: looking up the wrong cell in a visible table, randomly flipping a sign, carrying a mistake forward from an earlier turn (quite a few caused by dataset quality issues). An agent with more domain knowledge and common sense might do better here, for example by recognising that a discount rate is unlikely to be negative. In other words, retrieval was easy, but reasoning was the bottleneck.
Why I didn't start with an agent¶
I did consider the alternative at the time: a single agent loop, like a Claude Code or Codex for financial analysis, with the retrievers as tools it could call when it wanted them. It could have absorbed the slow question-rewriting stage, with an agent naturally rewriting its search queries.
I avoided it because it seemed harder to measure. When an agent interleaves several tool calls in a different order each time, it's hard to say which step went wrong, whereas a fixed pipeline lets you score each stage on its own - in a 2024 eval-driven development style. I wanted to quickly check that a logical sequence of steps could return accurate answers, and keeping retrieval separate from generation probably meant fewer tokens too.
Now I'd measure an agent loop with end-to-end accuracy plus an analysis of its traces: classify each tool call by what it does (a search, a document read, a calculation) and score each class much as you'd score a RAG stage, e.g. whether the searches found the numbers and whether the calculations used them correctly.
Why agent loops are the fashionable approach now¶
Query rewriting, decomposition, fusion and re-ranking are a retrieval strategy I chose in advance and encoded into fixed steps. But models get smarter and should be allowed to take on more responsibility at the pipeline-level. It matters less to design each step more to control what actions they can possibly take. Put effort into tools and harness design (I want to try something like smolagents next), and leave the model to decide how to use them.
I've seen this in my own projects: for my AI language tutor, I tried a range of Python + LLM pipelines over my Anki history before finding it both more efficient and more effective to give an agent high-level direction and the data, and let it decide when and how to use them. No need for fancy pipelines, just let agents search files with grep. Boris Cherny has said that very early versions of Claude Code used RAG over an index of the codebase, but "eventually, we landed on just agentic search" using glob and grep, which "outperformed everything". LlamaIndex's founder writes that agents with good filesystem tools "can do dynamic search over document collections that outperforms naive semantic search".
To be fair, an agent everywhere is conceptually neat but slower/expensive, and some steps are well enough understood that you'd rather they ran the same way every time - e.g. on a financial doc pipeline, consistently formatting the final answer is the kind of step worth keeping fixed. And: "You can't grep a PDF, an image with text, or an Office document" (arguably you could if parsed nicely).
Some more rigorous comparisons: - a comparison of grep and vector retrieval as agent tools on 116 conversational-memory questions found that grep "generally yields higher accuracy than vector retrieval" - RAGSearch found that agentic search "substantially improves dense RAG and narrows the performance gap to GraphRAG" - LlamaIndex: filesystem agent vs RAG benchmark, the agent was slower but more accurate on 5 papers, while at 100 and 1000 papers RAG won "substantially" on speed and "slightly" on correctness (although that's only 5 questions)
I'm curious about emerging decision model paradigms but haven't had a chance to read up on them yet.
You still need something to search over¶
Agentic search doesn't remove the need for structure and representation of your documents, because you still want something compact to search over for token efficiency. For search over PowerPoint decks, I was originally using generated summaries + embeddings, and now written descriptions of each slide in its speaker notes (generated by an LLM or annotated by hand when the deck is ingested - easy for people to read and edit, it stays paired with the slide, and it's simple for an agent to search over).
A hybrid approach is roughly where my own systems have ended up. I took the RAG modules from the ConvFinQA experiment and made a retrieval tool that my personal agents can call whenever they want (i.e. if they feel that grep isn't cutting it - which is rarely). They're told to read the notes containing retrieved chunks if they need more context, and have agency to search further as they see fit.