Glossary
Retrieval-augmented generation (RAG)
Retrieval-augmented generation (RAG) is a method in which an AI system first retrieves the relevant passages from an organisation’s own documents and data, then gives them to the model so that its answer is grounded in that material rather than in what the model remembers.
The usual pipeline is ingest, embed, search: documents are split into chunks, each chunk is turned into a vector, and a question finds the nearest chunks. The model answers from those chunks and can cite them.
Generic RAG has two failures. It returns the most similar chunks whether or not the person was allowed to see them, and it serves yesterday’s policy as current when the index is stale. Permission-aware retrieval, which filters results by what the user may see, is the fix for the first.
Why it matters when you run AI on infrastructure you own
RAG is how an agent reads your own material, so the material, the index and the model all need to stay where the material is allowed to be. On your own infrastructure the documents never leave to be embedded, and the permissions that apply to a file carry through to the agent that reads it.
Where Katonic does this
Related terms
- Open-weight model
An open-weight model is a language model whose trained weights are published for download, so it can run on your own hardware under its licence.
- AI agent
An AI agent is software that takes a task, uses a language model to decide what to do next, and acts through tools and data until the task is done.
- Token (and context window)
A token is the unit of text a language model reads and writes; the context window is the most tokens one request can hold, prompt and answer together.