Fleece AI BrainFLEECE / AI BRAIN
← All articles
LOCAL-FIRST KNOWLEDGE · RAG VS KNOWLEDGE GRAPH VS PLAIN FILES

RAG vs Knowledge Graph vs Plain Files: Where Should Your Company Brain Live?

RAG, knowledge graphs and plain files are not competing answers — they are the retrieval, structure and storage layers of one system. Store knowledge as files you own, structure it as a graph, retrieve it with search; single-layer bets fail because they skip the other two. Here is the hybrid architecture that actually holds up, and how to migrate to it incrementally.

July 20, 2026·13 min read·The Fleece team

RAG vs knowledge graph vs plain files: the short answer

These three are not rivals — they are layers of the same system, and the mistake almost every company makes is picking one and treating it as the whole answer. Store your company's knowledge as plain files you own; give it structure as a knowledge graph of the entities and relationships that matter; and retrieve from it with RAG-style search so an AI can find the right passage on demand. Storage, structure, retrieval. Problems start when a team buys only the retrieval layer (RAG over a document swamp), or only the structure layer (a graph nobody maintains), or only the storage layer (files with no way in but grep). The durable architecture uses all three, in that order, and we will show you what that looks like in practice.

We run our own company on this stack, so this is a working answer, not a taxonomy. Below we define each layer in a way you can quote, name the failure mode of each one used alone, put them side by side, and then describe the hybrid we actually build — Markdown files as storage, a live graph over agents and knowledge as structure, and MCP tools as the retrieval layer any AI app can call.

What RAG actually is

Retrieval-augmented generation (RAG) is a technique for making a language model answer from your data instead of only its training: you retrieve relevant chunks of your content at question time and feed them into the model's context, so the answer is grounded in your documents. The canonical form embeds your content into vectors, stores them in a vector database, and fetches the nearest chunks to a query, though modern RAG mixes in keyword search, re-ranking, and filters. The reference definition is worth reading if the term is new to your team.

RAG's strength is obvious and real: it lets an AI answer questions about material it was never trained on, with citations, without fine-tuning. It is the retrieval layer done well, and almost any serious company-knowledge system needs something like it.

RAG's failure mode alone is equally real: RAG over an unmaintained document swamp is confident garbage. Retrieval finds the nearest chunk, not the correct one — so if your source is three contradictory copies of the same policy, RAG will happily quote the wrong one with total fluency. Retrieval quality is capped by source quality, and RAG does nothing to improve the source. It also flattens structure: chunk-and-embed discards the fact that a decision superseded another, or that this document belongs to that customer. You get passages, not relationships. That is why RAG is a layer, not a system.

What a knowledge graph actually is

A knowledge graph represents information as entities and the relationships between them — people, tools, documents, decisions, customers — so that meaning lives in the connections, not just the text. Instead of "a pile of documents that mention Acme," a knowledge graph knows Acme is a customer, owned by this account manager, discussed in these threads, subject to that contract, touched by these agents. The knowledge graph concept is decades old and underpins how search engines answer entity questions.

The strength of a graph is that it captures what RAG throws away: hierarchy, ownership, supersession, causality. When an AI can traverse from an agent to the tools it uses to the data it touches, it can answer questions retrieval alone cannot — "what would break if we removed this connector?" is a traversal, not a search. We lean on this hard in the enterprise AI knowledge graph and the AI organization map.

The failure mode of a graph alone is staleness: a knowledge graph nobody maintains is a beautiful ontology describing a company that no longer exists. Graphs are expensive to build and merciless about drift — the moment the org changes and the graph does not, its confident structure becomes confidently wrong. A graph with no underlying documents is also thin: it knows Acme is a customer but cannot show you the actual email where the deal turned. Structure without storage is a diagram; structure without retrieval is unqueryable by AI.

What plain files actually are

Plain files are the storage layer in its most durable form: your knowledge as human-readable text on disk — Markdown, most often — in formats any tool can open and no vendor can lock. A folder of CommonMark files is readable by every editor, every script, and every model, today and in a decade. This is the principle Steph Ango calls file over app, and the one we argue for company knowledge in files over silos.

The strength of plain files is ownership and longevity: you can back them up, version them, diff them, and carry them to any tool without a migration project. When the memory of your AI workforce is files, it survives whichever app wrote it — which is the whole argument in who owns your AI's memory.

The failure mode of files alone is that files without structure or retrieval are grep-only memory. A thousand Markdown notes with no graph over them and no search into them is an archive, not a brain — an AI can read any single file you hand it but cannot find the right one or understand how it relates to the others. Storage without the other two layers is durable and inert.

The three layers side by side

Set against each other, the pattern is clear: each layer's strength is another layer's weakness, which is exactly why you want all three.

LayerJobStrengthFailure mode alone
Plain filesStorageOwnership, longevity, portability, diffabilityGrep-only — no way in but exact text
Knowledge graphStructureRelationships, traversal, ownership, supersessionGoes stale; thin without underlying documents
RAG / searchRetrievalFinds relevant passages on demand, with citationsConfident garbage over an unmaintained source

Notice there is no column where one layer wins outright. Files are the most durable and the least queryable. A graph is the most meaningful and the most fragile to drift. RAG is the most immediately useful to an AI and the most dependent on the quality of everything beneath it. The competent architecture does not choose — it stacks.

Where the single-layer bets go wrong

Most company-knowledge projects fail because they buy exactly one layer and expect a brain. The RAG-only team stands up a vector database over the existing document mess and is surprised when the chatbot confidently cites the outdated handbook — they bought retrieval and skipped the storage hygiene and structure that make retrieval trustworthy. The graph-only team spends two quarters modelling a gorgeous ontology that is stale the week after launch, because nothing keeps it synced to reality. The files-only team (often the most principled) has a beautiful, owned Markdown vault that no AI can actually use, because there is no graph over it and no retrieval into it.

Each of these is a good instinct taken too far. RAG is right that AI needs retrieval. Graphs are right that meaning is in relationships. Files are right that you must own your storage. The error is treating any one instinct as sufficient. The question in the title — where should your company brain live? — has a layered answer: in files, structured as a graph, retrieved by search. Not one of them. All three, wired together.

The hybrid architecture in practice

The architecture we build and recommend puts each layer where it belongs: Markdown files as storage, a live graph over them as structure, and MCP tools as the retrieval layer any AI app can call. That is precisely how Fleece AI Brain is designed, and describing it is the clearest way to make the three-layer idea concrete.

The storage layer is plain Markdown on your disk — every note, decision, and agent memory is a file you own, not a row in our database. The structure layer is a knowledge graph the Brain maintains over those files: agents, tools, people, and knowledge as nodes, with the relationships between them as edges, which is what turns a folder into an inspectable organizational memory. The retrieval layer is the Brain's MCP server: AI apps call tools like brain_recall for semantic retrieval (the RAG role), brain_traverse to walk the graph's relationships (the graph role), and brain_read to open the underlying file (the storage role) — the same three layers, exposed as tools any assistant can use. We go deep on the retrieval side in shared memory for AI agents with MCP and rank the server options in the best MCP servers for team knowledge.

What makes the stack coherent rather than three bolted-on tools is that the layers keep each other honest. Because storage is files, the graph can be regenerated from ground truth instead of drifting — the documents are the source, so structure stays anchored. Because retrieval reads the same files, RAG is grounded in maintained, owned content rather than a swamp. And because twenty connectors sync real sources like Slack, GitHub and Salesforce into the files on your disk, the whole stack stays fed from where work actually happens. The layers are not independent products; they are three views of one owned corpus.

How to migrate incrementally

You do not rebuild your knowledge stack in one move — you add the missing layers to what you already have. Start from wherever you are. If you already have a pile of documents, the first win is storage hygiene: get the canonical version of things into plain files you own, so retrieval later has something clean to read. If you already have files, add structure: let a graph form over them so relationships become queryable, not just text. If you have files and structure, add retrieval: put an MCP server in front so every AI app can call recall and traverse instead of you pasting context by hand.

The order matters. Adding retrieval before storage hygiene is how you get confident garbage; adding a graph before you have real files is how you get a stale diagram. Storage, then structure, then retrieval — each layer makes the next one trustworthy. In practice, with the Brain, this looks like: install it and point it at your existing notes (storage), connect your live sources so the graph fills in (structure), then paste one MCP config into Claude Desktop or Cursor so your assistants can query the whole thing (retrieval). Each step is useful on its own, and none of them locks you in, because the bottom layer was files the entire time.

The bottom line

RAG, knowledge graphs, and plain files are not competing answers to "where should your company brain live" — they are the retrieval, structure, and storage layers of one correct answer. Store knowledge as files you own, structure it as a graph so relationships are queryable, and retrieve it with search so any AI can use it; the single-layer bets fail precisely because they skip the other two. That layered design is what Fleece AI Brain implements — Markdown storage, a live graph, and MCP retrieval over one owned corpus — and it is why the brain you build this way outlives the models and apps that read it. Start with a download and a 14-day trial, no card required, or see the whole picture on company brain software.

Frequently asked questions

Is RAG better than a knowledge graph?
Neither is better — they do different jobs. RAG is a retrieval technique that finds relevant passages for an AI at question time; a knowledge graph is a structure layer that captures how entities relate. RAG over a graph-structured, well-maintained corpus outperforms either one alone, because retrieval works best when the underlying knowledge has structure and clean storage.
Do I need a knowledge graph if I already use RAG?
Often yes. RAG alone retrieves passages but discards relationships — it cannot tell you that one decision superseded another or which agent touches which data. A knowledge graph adds that structure, so an AI can traverse relationships as well as search text. The strongest systems layer a graph and RAG over the same owned files.
Where should a company store its AI knowledge?
In plain files you own — Markdown on disk — as the storage layer, with a knowledge graph for structure and RAG-style search for retrieval layered on top. Files give you ownership, portability and auditability; the graph and retrieval layers make those files usable by AI. Storing knowledge only in a vendor's proprietary database sacrifices ownership for convenience.
Why does RAG give wrong answers sometimes?
Because retrieval finds the nearest passage, not the correct one. If your source contains outdated or contradictory documents, RAG will quote them fluently and confidently. RAG's answer quality is capped by source quality, which is why storage hygiene and structure matter before you add retrieval.
How does Fleece AI Brain combine these three layers?
Fleece AI Brain stores knowledge as plain Markdown files on your disk, maintains a live knowledge graph over them (agents, tools, people, knowledge and their relationships), and exposes retrieval through an MCP server whose tools include brain_recall for semantic search, brain_traverse for graph traversal, and brain_read for the underlying file. It is the three layers as one owned system.
Can I migrate to a layered knowledge architecture incrementally?
Yes, and you should. Add the layers in order: get canonical knowledge into owned files (storage), let a graph form over them (structure), then put retrieval in front so AI apps can query it (retrieval). Each step is useful on its own, and starting with files means no step locks you into a vendor.
Map your company's brain.
Every agent, tool and human — one live graph.
Get started →
KEEP READING