All insights

From RAG To KAG: The Structured-Knowledge Upgrade

· 7 min read
ai-strategyneurosymbolic-airetrieval-augmented-generationknowledge-graphsverification

Retrieval augmented generation became the default for grounding language model outputs. For domains where being wrong is expensive, knowledge augmented generation is the next move, and the reason it works is older than the technique.

RAG Solved One Problem And Created Another

Retrieval augmented generation became the default architecture for grounding language model outputs in 2023 and 2024, and for good reason. It addressed the most obvious failure mode of out-of-the-box large language models, which was producing fluent text on topics the model did not actually have current or correct information about. RAG pulls relevant documents into the model’s context at inference time. The model can cite them. Hallucinations drop. Useful systems get built.

That story is true, and it explains why almost every production-grade language model application in 2024-2026 has a RAG layer of some kind. What is also true is that RAG has its own failure mode, one that does not show up in benchmark evaluations and does show up in the meeting where a regulated-industry team explains why their pilot is not going to production.

This piece is about that failure mode, about a technique called knowledge augmented generation that addresses it, and about why the move from one to the other is a specific case of a more general pattern that runs through this whole series.

What RAG Actually Retrieves

A RAG system retrieves chunks of text. The chunks are scored by semantic similarity to the question, ranked, and inserted into the model’s context. The model then reasons over them in the same probabilistic way it reasons over anything else in its context. The system has no internal concept of “the chunk we retrieved said X” versus “we believe X”. From the model’s perspective, the retrieved chunks are part of the prompt, and the prompt is to be completed plausibly.

This works well when the chunks are likely to be correct, on-topic, and uncontested. It works less well in three common situations. First, when retrieved chunks contradict each other and the model has to silently pick one. Second, when a chunk is on-topic but factually outdated. Third, when the question requires reasoning about relationships between entities that no single chunk contains.

In none of those situations does the RAG system surface the problem. The output is fluent. The citation is present. The failure is invisible to the system and often invisible to the reader, unless the reader is a domain expert auditing the answer.

Where RAG Becomes The Bottleneck

In low-stakes use cases, this is acceptable. Customer support agents using RAG-grounded responses give wrong answers some fraction of the time, the cost of each wrong answer is low, and the user can usually tell when the answer is unhelpful and try again. The economics work.

In high-stakes domains, the picture is different. We have seen teams build RAG-based prototypes for clinical decision support, regulatory compliance, and financial assessment work. The prototypes look impressive. They cite sources. They handle the easy cases well. Then someone with domain expertise reviews the harder cases and notices that the system is producing confident answers from chunks that, if you read them carefully, do not actually support the answer being given. The system is reasoning over retrieved text plausibly, not soundly. The team cannot defend its outputs, and the project does not ship.

The diagnosis is usually misdirected. The team thinks the model needs better prompts, a different vendor, a larger context window. None of those address the underlying issue. The underlying issue is that the retrieval layer is providing unstructured material to a probabilistic reasoner, and there is no verifiable structure between them. The unverified output is the new bottleneck, and the previous piece in this series described the broader pattern.

What KAG Does Differently

Knowledge augmented generation, as Liang and colleagues describe it, replaces the unstructured retrieval step with a structured one. Instead of pulling chunks of text, the system queries a knowledge base, typically a knowledge graph with an explicit ontology, and retrieves typed entities and the relationships between them. The language model then reasons over structured knowledge rather than over passages of text.

Several things change as a result. The retrieved knowledge has explicit relationships, so reasoning that requires connecting two entities can be done over the actual structure rather than by hoping the right chunk turns up. Each piece of retrieved knowledge has provenance and a clear source. Logical consistency between retrieved pieces can be checked before the model sees them. And the answer the system produces can be verified against the same structured knowledge that informed it, rather than against the source text in a downstream review.

RAG and KAG, by what each provides

Both retrieve. The difference is what the system can do with what comes back.

Retrieval augmented generation

  • Returns text chunks scored by semantic similarity to the query.
  • No internal structure beyond the position of the chunk in its original document.
  • Reasoning is probabilistic over the chunks, in the same way as the rest of generation.
  • Verification is downstream, performed by the reader if at all.
  • Strength: works with any unstructured corpus, low setup cost, very general.

Knowledge augmented generation

  • Returns typed entities and relationships drawn from a structured knowledge base.
  • Explicit ontology defines what can be retrieved and how things relate.
  • Logical reasoning is possible over the structure before, during, and after generation.
  • Verification is built in, against the same structured knowledge.
  • Strength: works where outputs need to hold up under expert review.

This is not a claim that KAG replaces RAG. Many production systems use both: RAG for breadth across unstructured content and KAG for high-stakes resolution where outputs need to be defended. The point is that for a meaningful and growing class of use cases, the unstructured retrieval RAG provides is not enough, and the team that recognises this earliest spends less of its delivery time on problems the architecture cannot solve.

When To Reach For Each

The decision rule we use with clients is simple. If a wrong answer costs you reputation but not much else, and a domain expert is in the loop downstream, RAG is fine and KAG is overhead you do not need. If a wrong answer costs you a regulator’s attention, a clinical outcome, a financial decision someone signed off on, or any kind of audit trail, the verification is not optional and the unstructured retrieval will eventually find the boundary it cannot defend. Build the structured knowledge layer.

Many teams will not need this conversation. Many teams will. The teams that do need it tend to recognise the problem two quarters after pilot, when the production review meeting reveals that what looked like a model problem is a structural one. Recognising it earlier saves the project.

The Bigger Pattern

The move from RAG to KAG is one specific case of a more general move. Wherever a language model is asked to do something that needs to hold up under scrutiny, the system that gets shipped puts a structured knowledge representation between the model and the world. The structured representation is the surrogate, the ontological commitment, the medium of inspection that the language model on its own cannot provide.

This pattern recurs in tool design (the schema is a small knowledge representation), in agent memory (the structured store is a small knowledge representation), in verification (the rule set is a small knowledge representation), and in retrieval (the knowledge graph is, well, a knowledge representation). It is the third wave of AI, working itself out in practice through dozens of small engineering decisions that practitioners often do not connect to the broader pattern.

KAG is the most visible version of the move because it has a name and a paper. The same move is happening, more quietly, throughout the rest of the agent stack. The next piece in this series turns to one of the quieter examples: constrained generation, which is symbolic AI smuggled into LLMs under a different label.


This is the third piece in a short series on neurosymbolic AI and practical agent systems. Previous pieces argued the symbolic components of a modern AI agent harness are where reliability comes from and offered a five-role diagnostic for any agent system drawn from Davis, Shrobe, and Szolovits.

If your team is reaching the point where RAG is no longer enough for what the domain demands, a fixed-fee advisory session is built around the kind of structured-knowledge thinking that makes the upgrade tractable. Get in touch to discuss.

FAQ

Frequently asked questions

What is the difference between RAG and KAG?

Retrieval augmented generation, or RAG, pulls chunks of text into the model's context based on semantic similarity. The retrieved chunks are unstructured and the model reasons over them freely. Knowledge augmented generation, or KAG, described by Liang and colleagues, retrieves from a structured knowledge base such as a knowledge graph and reasons over typed entities and explicit relationships. RAG provides relevant text. KAG provides verifiable knowledge.

When is RAG enough?

RAG is enough when the consequences of a wrong answer are low, when the source material is naturally unstructured (long-form documents, support articles, internal wikis), and when the user can plausibly evaluate the answer themselves. Customer support, content discovery, and general question-answering are typical RAG territory. The match between unstructured retrieval and unstructured intent is good enough.

When does KAG earn its place?

KAG earns its place in regulated industries, in decisions that require an audit trail, and in any domain where outputs need to hold up under scrutiny by someone with domain expertise. Clinical decision support, financial assessments, compliance work, and safety-critical operations are typical. Structured knowledge with explicit relationships gives the system something it can defend its answers against.

Keep reading

Related insights

Constrained Generation Is Symbolic AI Smuggled Into LLMs

Practitioners using JSON-schema enforcement, formal grammars, and regex-based decoding are doing classical symbolic AI without naming it. …

Read insight

A Five-Role Diagnostic For Any AI Agent

Davis, Shrobe, and Szolovits defined knowledge representation through five roles in 1993. Used as a diagnostic, those five roles will tell …

Read insight

The Harness Is Where Symbolic AI Returned

Modern AI agents are not pure neural systems. They are hybrid systems whose reliability comes from specific symbolic investments made in the …

Read insight

Where this goes

Thinking about how this applies to your organisation?

The free readiness check is a three-minute way to see where you stand. For a deeper conversation, we hold a small number of fixed-fee advisory sessions each month.

New insights are shared on LinkedIn as they publish.