Classic RAG vs. GraphRAG vs. Agentic RAG: which one our three production systems actually use
RAG now comes in three kinds: search chunks, search a relationship graph, or let the AI keep searching until it has enough. We run three RAG systems in production. Looking back, all three use the first kind, plus a bit of homemade GraphRAG. I also tested Agentic RAG separately: a tie across 10 questions, with nearly 20 extra seconds of waiting per question.

This week's ByteByteGo newsletter sorted RAG into three kinds and drew them all on one diagram.
It ended with a question for readers: are GraphRAG or Agentic RAG worth the extra complexity?
As it happens, we have three RAG systems running in production. One is Xiao Ai, the support assistant in the bottom-right corner of our website. One is a regulations Q&A demo. One is me.saomin, built from my own writing. So I held them up against the diagram to see which kind we actually use.
First, what the three kinds are.
The three kinds of RAG, in plain language
RAG means that before the AI answers, it first digs through your data for a few relevant passages, puts them next to the question, and is told to answer based on them. If that's new to you, start withthis post。
The first kind is Classic RAG, the most basic approach.
Documents are cut into small chunks, and each chunk is turned into a string of numbers. The closer two chunks are in meaning, the closer their numbers (that string of numbers is called an embedding, whichthis postexplains). When someone asks a question, the system finds the chunks closest in meaning and hands them to the AI.
Search once, answer once.
The second kind is GraphRAG.
Instead of chunking the data, you organize it into a relationship graph: which company is whose subsidiary, which regulation cites which. When a question comes in, the system follows the connections, turns the relevant piece of the graph into text, and hands it to the AI.
It suits questions you can only answer by linking several facts together. On questions like that, the chunking approach often finds only half the answer in any one chunk.
The third kind is Agentic RAG.
It no longer searches once and answers. After searching, the AI first judges for itself: is this enough? If not, it tries different keywords or a different tool and searches again, and only answers once it decides it has enough.
On paper, the second and third kinds both sound smarter than the first.
So what about us?
Xiao Ai: the most basic kind, and I almost added the wrong thing
Xiao Ai is the first kind, textbook standard.
Just over 150 knowledge entries. When a question comes in, it finds the five closest entries and hands them to Claude to answer.
Last month I read about how Instacart does search: they have a model first rewrite the user's query into several versions, then search with those. My first thought was: Xiao Ai needs this too.
Before adding it, I replayed every conversation Xiao Ai had ever had.
193 visitor messages, 43 of which it couldn't answer.
Of those 43, 20 weren't our business to begin with, or were tests, or were things it isn't supposed to answer by design. 15 were about topics the knowledge base hadn't covered yet; those were filled in later.
Only 2 were genuinely cases of "the wording didn't match."
Making every message wait a few extra seconds for rewriting, just to fix 2, isn't worth it.
The replay did expose a different hole, though. A visitor asked "How much does a website cost?" and Xiao Ai answered fine. Then they asked "What about a single page?" and the search went off track, because it searched using only that one short phrase.
The fix was small. If a message is very short and follows an earlier one, search with the previous message too, and bring in a few extra entries.
Add only, never replace. I tried replacing: when "How much do courses cost?" was followed by "Can I get an invoice?", the payment entry got pushed out entirely.
Xiao Ai now has 202 test questions plus 8 follow-up questions, and every change has to pass all of them.
It's still the first kind of RAG. Just used more carefully.
Regulations Q&A: GraphRAG without a graph database
The second system is a regulations Q&A demo we built for a government agency.
Roughly 50,000 passages: just over 3,000 from regulations and more than 47,000 from articles on the agency's website.
It started as the first kind of RAG and hit a wall immediately. There were so many website articles that every search crowded out the regulations. Ask a regulatory question, and you got press releases back.
So we split it into two pools, one for regulations and one for the website, each ranked separately with its own quota.
The real trouble was the regulations themselves.
Legal provisions aren't independent passages. A subsidy guideline often lays out eligibility in Point 3 and only gives the amount in Point 7. A provision says "as shown in the attached table," and the amount is in the table. Whatever a special act doesn't cover, you have to go back to the general act.
Chunk search only ever finds one of those pieces.
This is exactly the problem GraphRAG sets out to solve: the data is connected, and you have to follow the connections.
We didn't install a graph database; we did it the homemade way. If the top-ranked regulation has two or more articles matched and its full text isn't long, the whole regulation goes in. If a provision says "as shown in the attached table," the table comes along. For eight frequently asked question types, specific provisions are always included whenever one comes up. General social welfare acts are included too, so the AI can cross-reference.
Put simply, we hard-coded the handful of connections between regulations that get traveled most often.
There's also a verification layer. After the AI answers, the code checks every number and every date in the answer against the source text it cited. If anything doesn't match, the AI is told to rewrite.
That might look like the third kind, but it isn't. The code decides whether to rewrite, at most once, and it only rewrites; it never goes back to search again. The AI has no option to say "I don't think this is enough, let me search another round."
The cost is clear. Typical questions take a median of 11 to 12 seconds; ones that trigger a rewrite take 25 to 40 seconds.
Out of 94 general test questions, the first version answered 69 well. After two rounds of revisions, we estimate around 84.
I went through the remaining weak answers one by one. One was about a property transfer from father to son, where the AI applied a tax exemption from a different scenario. The data was correct and the provision had been found; it simply misunderstood.
A graph can't fix that kind of error, and neither can searching more times.
me.saomin: similarity scores can't tell things apart
The third system is me.saomin: an AI that replies the way I would, built from decades of my own writing — blog posts, papers, interviews — over 4,000 passages in all.
It's also the first kind, with one extra step: passages about "how I think" and "what I care about" get a small ranking boost; passages about "what I've done" don't.
This one taught me something else.
I originally wanted to use similarity to detect "I've never written about this." If the score was too low, it would say it didn't know.
It turned out that for Chinese text, similarity scores were all crammed between 0.84 and 0.90. Topics I had written about and topics I hadn't scored about the same. There was nowhere to draw the line.
So "don't make things up" ended up being enforced by the prompt, not by retrieval.
If this system were to move toward the third kind and let the AI judge for itself whether what it found is enough, it would get stuck right at the first step. It can barely even tell when it has found nothing.
The third kind: I tried it once
By this point, I realized I was writing about something I had never actually done.
So I tested it on another system. We built a rules Q&A AI for a Magic: The Gathering community, drawing on three kinds of data: 400-plus Chinese-language articles, the card text and official rulings for 35,000 cards, and more than 1,000 passages of the official Comprehensive Rules.
This system is the best fit for the third kind. Players often ask "What happens when this card meets that card?" You have to look up both cards, then find the matching rules, and sometimes follow a ruling into another search. Players are also used to waiting; a single question already took over ten seconds.
I built an experimental version, kept separate from production and never deployed.
The first round of retrieval is identical to production. After that, the AI looks at what it has and decides for itself whether to look up another card or another rule, for up to three rounds. The answering prompt is identical too; the only difference between the two versions is what gets retrieved.
The test set was 10 questions real players had asked, most of them from one player who knows the rules very well. They asked twenty-odd questions and corrected answers on the spot. Each version answered once, and a different model graded them blind, without knowing which was which, checking only against the rules text.
Out of 20 points: production scored 16, the experimental version 16.
A tie.
The time was not. Production averaged 29 seconds; the experimental version averaged 48, and its slowest question took 209 seconds.
The process was more interesting. On 5 of the 10 questions, the AI took one look and decided it had enough, never searching further. On the other 5 it really did search, and picked exactly the right rules, but only 1 question gained points as a result.
The remaining errors were in the same place in both versions. The rules had all been found; the reasoning went wrong. Putting an effect in the wrong layer, contradicting itself from one sentence to the next, suggesting a play that simply wasn't possible at that moment.
Same as the father-to-son transfer question in the regulations Q&A.
(I also messed up twice along the way. On the first run, the grading step crashed and nothing was saved. Later I found that the AI had written "RULE 611" without a colon, so my code treated it as having said nothing — on that question, the experimental version never actually searched at all. Both are fixed, and I reran it.)
10 questions is very few; answer the same data twice and the scores will jump around. So all I can say is that I couldn't see it helping, not that it's proven useless.
So is it worth it?
Back to the newsletter's question.
My answer: measure first.
If I upgraded Xiao Ai the way the article suggests, I'd add a rewriting layer to fix 2 questions, and make every visitor wait a few extra seconds.
The regulations Q&A needs the concept of a graph, but not necessarily a graph database. Hard-coding the most-traveled connections is enough.
As for the third kind, none of our three production systems use it. I tried it once: a tie, with nearly 20 extra seconds per question.
I use "let the AI keep searching until it has enough" every day — that's Claude Code itself. It's great for writing code, because I'm willing to wait, and when it searches the wrong thing, I can see it.
Customer support is different. Visitors won't wait 40 seconds, and I want my own code to decide what gets searched next, and how many times (why our public-facing support is deliberately not built as an agent is covered inthis post).
This experiment also showed something: when the answer is wrong, what's missing often isn't the data.
I think of these three not as three levels, but as three questions.
Is your data connected? Are your users willing to wait? Do you know where it's going wrong right now?
Until you can answer the third, don't worry about the first two.