The Agentic AI Builder's Playbook
Classic RAG vs GraphRAG vs Agentic RAG: Choosing the Right Retrieval Pattern
By Jason Newell · ~6 min read · Protocols & Architecture
RAG — Retrieval-Augmented Generation — is no longer one thing. It's a family of patterns, each designed for a different kind of retrieval problem. Use the wrong one, and your agent will either miss critical context, retrieve irrelevant noise, or burn through tokens on relationships it could have found directly.
The three patterns: Classic RAG, GraphRAG, and Agentic RAG. Here's when to use each.
Classic RAG: Retrieve, Then Generate
Classic RAG is the baseline. It solves the simplest version of the retrieval problem: given a query, find the most semantically similar text chunks from a corpus, and give them to the LLM as context.
The flow:
- Query comes in
- Query is embedded into a vector
- Vector database finds the top-K most similar chunks
- Chunks are passed to the LLM as context
- LLM generates an answer
Strengths: Fast. Simple. Works well for unstructured, multi-document search where the answer is likely contained in a single chunk or a small set of chunks.
Weaknesses: No understanding of relationships between entities. Retrieves by similarity, not by meaning. Can return highly similar but irrelevant chunks. Fails when the answer requires synthesizing information across multiple documents or following multi-hop reasoning chains.
Best for: Customer support knowledge bases, document Q&A, single-source fact retrieval.
GraphRAG: Navigate by Relationship
GraphRAG replaces vector similarity search with knowledge graph traversal. Instead of finding chunks that look like the query, it extracts entities from the query, maps them to a knowledge graph, and navigates the relationships between those entities to build connected context.
The flow:
- Query comes in
- Entity extraction: what entities does this query mention?
- Those entities are located in the knowledge graph
- The graph is traversed to find connected entities, relationships, and context
- The connected context is passed to the LLM
- LLM generates an answer grounded in the relational structure
Strengths: Understands how things relate to each other, not just what they look like. Excellent for multi-hop queries ("find all projects that use X library that are maintained by teams in the Y department that have security vulnerabilities"). Highly precise for entity-rich domains.
Weaknesses: Building and maintaining the knowledge graph is expensive. Works poorly for unstructured or low-entity text. Depends heavily on the quality of the graph structure.
Best for: Enterprise knowledge management, legal document analysis, medical records, code dependency graphs, any domain where relationships between entities are more important than raw text similarity.
Agentic RAG: Reason, Then Retrieve
Agentic RAG is the most powerful — and most resource-intensive — of the three. Instead of a retrieval pipeline that feeds a model, Agentic RAG puts a reasoning agent in control of the retrieval process itself.
The flow:
- Query comes in
- A reasoning agent analyzes the query and determines what it needs
- The agent dynamically selects retrieval tools: vector DB, knowledge graph, web search, code execution, external APIs — whatever the query requires
- The agent retrieves, evaluates the results, and determines if it has enough to answer
- If not, it retrieves again — different query, different tool
- Self-evaluation: does this answer actually address the question?
- Final answer
Strengths: Adapts to the query. Can combine multiple retrieval strategies. Handles ambiguous, multi-part, or evolving queries that static pipelines can't. Self-corrects when initial retrieval is insufficient.
Weaknesses: Slower and more expensive than the other two. Latency is unpredictable. Requires well-designed tool selection and evaluation logic.
Best for: Complex research synthesis, multi-source analysis, open-ended questions, any retrieval task where the right approach isn't known in advance.
The Decision Framework
The pattern that works for 60% of RAG use cases is Classic. Another 25% benefit from GraphRAG. Reserve Agentic RAG for the 15% that genuinely need adaptive, self-correcting retrieval.
Up Next
Article 06: When NOT to Use an AI Agent — A Practitioner's Decision Framework
Not every problem needs an agent. In fact, most problems don't. The best AI architects don't ask "where can I use agents?" — they ask "where is deterministic automation no longer sufficient?" Next, we give you the framework to answer that question cleanly.
Jason Newell is an AI practitioner, builder, and writer covering agentic systems, developer tooling, and the future of AI engineering.
Related
Related field notes
Keep reading
More field notes
This piece is part of the MAX Research Collective library. Browse the rest, or connect on LinkedIn.