Skip to content

New: free AI tools — X-Ray your website or get an AI blueprint in 60 seconds.

ASTACKRA
Start a project

Glossary · AI

What is RAG (retrieval-augmented generation)?

RAG is a technique where a system first searches your own documents for the passages relevant to a question, then gives those passages to a language model as context so it answers from them. It is the standard way to make an AI assistant answer from company knowledge, with citations, instead of from whatever it memorised in training.

In practice

A RAG system has three moving parts: an ingestion step that splits documents into passages and indexes them, a retrieval step that finds the closest passages to the question, and a generation step that answers using only those passages. The quality of the answer is usually decided by retrieval, not by which model you chose. Most disappointing RAG projects are retrieval problems wearing a model costume.

Where it fits in a build

RAG is the right pattern whenever the correct answer already exists somewhere in your files and the problem is that nobody can find it: policy manuals, contracts, product documentation, historic tenders, support history. It is the wrong pattern when the answer has to be calculated from live data — that is a database query, and a model should be asked to write it, not to guess it.

Common mistakes

  • Splitting documents into fixed-size chunks that cut sentences and tables in half, then blaming the model for the answers.
  • Skipping citations. Without a link back to the source passage, nobody can check the answer, so nobody trusts the system.
  • Indexing everything, including drafts and superseded policies, so the assistant confidently quotes a document that was replaced two years ago.

Working on something that involves this?

ASTACKRA designs and builds AI systems, automation and custom software for businesses that need technology shaped around their own workflow. If this term turned up in a proposal and you want a straight answer about whether it applies to your situation, ask us — no obligation, and we will tell you if the answer is no.

Related

Next step

Tell us what is slowing your business down.

Describe the workflow, website, customer journey or system your team has outgrown. You do not need a technical specification — we will shape the right first phase with you.

Start a project hello@astackra.com
  • Remote-first delivery across time zones
  • Written scope, milestones and decisions
  • NDA-friendly, human-controlled AI

Remote-first AI, software & automation studio — scoped, built and shipped for teams worldwide.

We build AI systems and custom software that automate operations, connect teams and create lasting business leverage.

AI systems, custom software, SaaS, workflow automation, document intelligence and digital product engineering for growing businesses worldwide.

Complex technology. Beautifully engineered.

ASTACKRA · Systems & Software Studio