RXed AI News

Your AI intelligence briefing

RAG: making AI answer from your knowledge, not its guesses

What it is — in one coffee-break

RAG — retrieval-augmented generation — is the pattern that makes an AI answer from YOUR information instead of its general training. The flow: your documents get chunked and embedded into a vector store (lessons 2 and 7); when a question arrives, the system retrieves the most relevant chunks and places them in the model's context (lesson 3) with an instruction to answer from those sources. The model stops guessing and starts citing.

It's the single biggest lever against hallucination, and the backbone of every serious "chat with your knowledge base" product. It is not magic: RAG is only as good as its weakest step, and the weakest step is usually not the model.

When you actually need it (and when you don't)

Need it: whenever answers must come from a body of knowledge too large or too changeable to paste into a prompt — your procedures, contracts, product docs, support history. Our SOP answer machine blueprint is a complete self-hosted RAG system for exactly that.

Don't need it: when the knowledge fits in the context window comfortably — a handful of documents can simply ride along in the prompt, and with today's large windows that covers more cases than most vendors admit. And don't confuse it with acting: RAG retrieves and explains; if the AI must update records or trigger workflows, that's function calling/MCP territory — mature systems combine both (retrieve the policy, then execute the refund).

What actually determines quality, per the production guides: chunking strategy first (300–500 token chunks with modest overlap is the reliable start), hybrid search second (keywords + meaning), reranking third (a cheap second pass that reorders the top results and typically improves answers 10–20%). Model choice comes fourth — a truth vendors selling bigger models rarely lead with.

How to recognize good vs bad implementations

RAG (Rg) produces the single most instructive score on our table: NotebookLM at 9.5 — the best pure RAG product money can currently rent, grounded so hard in your sources that it declines to freelance. Gemini scores 9 with managed RAG infrastructure; n8n 8 for build-it-yourself pipelines with full control. At the bottom, Zapier scores 4 — an action platform where retrieval is an afterthought. The three questions that expose weak RAG in any demo: Does it cite which source each claim came from? What does it say when the answer isn't in the sources (good systems say "I don't know")? And can you update a document and see the answer change?

What this costs

Modest, and mostly one-time: embedding a million document chunks costs about $10 on the default model; storage a few euros a month (or €0 self-hosted); the per-question cost is dominated by the LLM call itself since retrieved chunks ride in as input tokens. A fully self-hosted stack — local embeddings, pgvector, local model — runs a small-business knowledge base for the price of electricity, which is precisely how the tools in our blueprints do it.

Where to see it scored

Rg with reasons: NotebookLM (9.5), Gemini (9), n8n (8), Zapier (4). This lesson closes the retrieval chain: Embeddings → Vector store → Context → RAG.