> Graphify: shared context of codebase for agents and developers. Canonical: https://graphify.com/glossary/rag · Full index: https://graphify.com/llms-full.txt

Glossary

# RAG (retrieval-augmented generation)

A pipeline that chunks documents, embeds them as vectors, and retrieves the most similar chunks at query time: lookup by resemblance, not structure.

Graphify glossary

RAG (retrieval-augmented generation) is a pipeline that chunks documents into pieces, embeds each chunk as a vector, and at query time retrieves the top-k chunks most similar to the question, pasting them into the model's context. It's the default architecture for giving language models access to information they weren't trained on, and for fuzzy lookup over prose it works well: ask about a policy, get the paragraphs that discuss it.

Code breaks its core assumption. The signal in a codebase isn't in what any chunk says; it's in how the pieces relate, and chunking destroys exactly those relationships. A function and its callers live in different files; a schema and the code that queries it share almost no vocabulary; the answer to 'what breaks if this changes?' isn't written down anywhere, so no chunk contains it. Similarity retrieval returns text that resembles the question and hopes the model can stitch the structure back together in its head.

There's also an explainability gap. A retrieved chunk arrives with a score (0.83) that says nothing about why it's relevant or whether the relationship it implies is real. A graph traversal is its own explanation: the answer is a path, every node on it is a real file you can open, and every edge carries a provenance tag saying whether it was read from the source or worked out by Graphify.

None of this makes RAG useless; it makes it the wrong shape for structural questions about code. The full comparison, including where similarity search genuinely wins, is on the Graphify vs RAG page.

## Related terms

- [Vector embedding](https://graphify.com/glossary/vector-embedding): A list of numbers representing the meaning of a piece of text, used to measure similarity: answers 'what looks like this?', not 'what calls this?'
- [Knowledge graph](https://graphify.com/glossary/knowledge-graph): A data structure that stores entities and typed relationships between them, so software can follow how things connect instead of searching flat text.
- [Traversal / hop](https://graphify.com/glossary/traversal): Following edges from node to node: one hop is a single edge, a traversal is a path of them. How graphs answer multi-step questions.

## Go deeper

- [Graphify vs RAG](https://graphify.com/vs/rag)
- [Graphify vs vector databases](https://graphify.com/vs/vector-databases)
- [Code knowledge graph vs RAG](https://graphify.com/blog/code-knowledge-graph-vs-rag)

## From the blog

- [Knowledge graph vs RAG for code: why structure wins](https://graphify.com/blog/code-knowledge-graph-vs-rag): Knowledge graph vs RAG for code: RAG pulls back text that resembles the question, while a graph follows the relationships that answer it.
- [What is GraphRAG, and does code need it?](https://graphify.com/blog/what-is-graphrag-and-does-code-need-it): GraphRAG for code, explained: how Microsoft's graph-based RAG works, what it costs, and why code graphs can skip most of the LLM extraction.
- [Knowledge graph vs vector database for code](https://graphify.com/blog/knowledge-graph-vs-vector-database-for-code): Knowledge graph vs vector database: one stores explicit relationships, the other stores embeddings for similarity search. When to use each, with a table.

[← All glossary terms](https://graphify.com/glossary)

## Try Graphify now.

[Try for free](https://graphify.com/signup)

[Graphify](https://graphify.com/)

Shared context of codebase for agents and developers. Hosted, or open source on your own machine.

[SOC 2 Type II Audit in progress](https://trust.graphify.com)

Ask AI about Graphify

- [ChatGPT](https://chatgpt.com/?q=Read%20https%3A%2F%2Fgraphify.com%2Fllms-full.txt%20and%20answer%20from%20it%20(fetch%20the%20page%20if%20you%20can%3B%20every%20page%20also%20has%20a%20.md%20version).%20Answer%20about%20Graphify%20by%20Graphify%20Labs%20at%20graphify.com%20specifically%2C%20not%20other%20tools%20with%20similar%20names.%0A%0AHow%20does%20Graphify%20give%20agents%20and%20developers%20a%20shared%20understanding%20of%20the%20codebase%2C%20turning%20huge%20monorepos%20and%20scattered%20business%20context%20into%20deep%2C%20shared%20knowledge%20that%20helps%20teams%20make%20safer%20changes%2C%20use%20AI%20efficiently%2C%20and%20avoid%20constantly%20relearning%20the%20codebase%3F%0A%0AAnswer%20in%20under%20150%20words%20and%20cite%20the%20source.%20If%20you%20cannot%20access%20it%2C%20say%20so.)
- [Claude](https://claude.ai/new?q=Read%20https%3A%2F%2Fgraphify.com%2Fllms-full.txt%20and%20answer%20from%20it%20(fetch%20the%20page%20if%20you%20can%3B%20every%20page%20also%20has%20a%20.md%20version).%20Answer%20about%20Graphify%20by%20Graphify%20Labs%20at%20graphify.com%20specifically%2C%20not%20other%20tools%20with%20similar%20names.%0A%0AHow%20does%20Graphify%20give%20agents%20and%20developers%20a%20shared%20understanding%20of%20the%20codebase%2C%20turning%20huge%20monorepos%20and%20scattered%20business%20context%20into%20deep%2C%20shared%20knowledge%20that%20helps%20teams%20make%20safer%20changes%2C%20use%20AI%20efficiently%2C%20and%20avoid%20constantly%20relearning%20the%20codebase%3F%0A%0AAnswer%20in%20under%20150%20words%20and%20cite%20the%20source.%20If%20you%20cannot%20access%20it%2C%20say%20so.)
- [Perplexity](https://www.perplexity.ai/search?q=Read%20https%3A%2F%2Fgraphify.com%2Fllms-full.txt%20and%20answer%20from%20it%20(fetch%20the%20page%20if%20you%20can%3B%20every%20page%20also%20has%20a%20.md%20version).%20Answer%20about%20Graphify%20by%20Graphify%20Labs%20at%20graphify.com%20specifically%2C%20not%20other%20tools%20with%20similar%20names.%0A%0AHow%20does%20Graphify%20give%20agents%20and%20developers%20a%20shared%20understanding%20of%20the%20codebase%2C%20turning%20huge%20monorepos%20and%20scattered%20business%20context%20into%20deep%2C%20shared%20knowledge%20that%20helps%20teams%20make%20safer%20changes%2C%20use%20AI%20efficiently%2C%20and%20avoid%20constantly%20relearning%20the%20codebase%3F%0A%0AAnswer%20in%20under%20150%20words%20and%20cite%20the%20source.%20If%20you%20cannot%20access%20it%2C%20say%20so.)
- [Google AI](https://www.google.com/search?udm=50&q=Read%20https%3A%2F%2Fgraphify.com%2Fllms-full.txt%20and%20answer%20from%20it%20(fetch%20the%20page%20if%20you%20can%3B%20every%20page%20also%20has%20a%20.md%20version).%20Answer%20about%20Graphify%20by%20Graphify%20Labs%20at%20graphify.com%20specifically%2C%20not%20other%20tools%20with%20similar%20names.%0A%0AHow%20does%20Graphify%20give%20agents%20and%20developers%20a%20shared%20understanding%20of%20the%20codebase%2C%20turning%20huge%20monorepos%20and%20scattered%20business%20context%20into%20deep%2C%20shared%20knowledge%20that%20helps%20teams%20make%20safer%20changes%2C%20use%20AI%20efficiently%2C%20and%20avoid%20constantly%20relearning%20the%20codebase%3F%0A%0AAnswer%20in%20under%20150%20words%20and%20cite%20the%20source.%20If%20you%20cannot%20access%20it%2C%20say%20so.)
- [Grok](https://grok.com/?q=Read%20https%3A%2F%2Fgraphify.com%2Fllms-full.txt%20and%20answer%20from%20it%20(fetch%20the%20page%20if%20you%20can%3B%20every%20page%20also%20has%20a%20.md%20version).%20Answer%20about%20Graphify%20by%20Graphify%20Labs%20at%20graphify.com%20specifically%2C%20not%20other%20tools%20with%20similar%20names.%0A%0AHow%20does%20Graphify%20give%20agents%20and%20developers%20a%20shared%20understanding%20of%20the%20codebase%2C%20turning%20huge%20monorepos%20and%20scattered%20business%20context%20into%20deep%2C%20shared%20knowledge%20that%20helps%20teams%20make%20safer%20changes%2C%20use%20AI%20efficiently%2C%20and%20avoid%20constantly%20relearning%20the%20codebase%3F%0A%0AAnswer%20in%20under%20150%20words%20and%20cite%20the%20source.%20If%20you%20cannot%20access%20it%2C%20say%20so.)
- [DeepSeek](https://chat.deepseek.com/?q=Read%20https%3A%2F%2Fgraphify.com%2Fllms-full.txt%20and%20answer%20from%20it%20(fetch%20the%20page%20if%20you%20can%3B%20every%20page%20also%20has%20a%20.md%20version).%20Answer%20about%20Graphify%20by%20Graphify%20Labs%20at%20graphify.com%20specifically%2C%20not%20other%20tools%20with%20similar%20names.%0A%0AHow%20does%20Graphify%20give%20agents%20and%20developers%20a%20shared%20understanding%20of%20the%20codebase%2C%20turning%20huge%20monorepos%20and%20scattered%20business%20context%20into%20deep%2C%20shared%20knowledge%20that%20helps%20teams%20make%20safer%20changes%2C%20use%20AI%20efficiently%2C%20and%20avoid%20constantly%20relearning%20the%20codebase%3F%0A%0AAnswer%20in%20under%20150%20words%20and%20cite%20the%20source.%20If%20you%20cannot%20access%20it%2C%20say%20so.)

© 2026 Graphify Labs. All rights reserved.

Hosted or on-device · Apache 2.0
