Glossary

Retrieval-augmented generation (RAG)

A technique where an AI retrieves relevant passages from a source first, then generates an answer grounded in them — reducing hallucination and enabling exact citations.

Retrieval-augmented generation (RAG) is a technique that fetches relevant passages from a body of text first, then feeds them to a language model so its answer is grounded in real source material rather than the model's memory.

Why it matters

A language model on its own answers from patterns baked into its training data. Ask it about a specific document and it has no way to actually see that document — so it guesses, and guessing is where hallucination comes from. RAG closes that gap. By putting the relevant text in front of the model at answer time, it turns "what does the model vaguely remember?" into "what does this source actually say?"

That shift does two things at once. It cuts hallucination, because the model is working from text it can read rather than statistics it half-recalls. And it makes citation possible, because every claim can be traced back to the exact passage that was retrieved to support it.

How it works

A RAG pipeline has two stages:

  • Retrieve. The system finds the passages most relevant to your question, usually with semantic search over the document — matching on meaning, not just keywords.
  • Generate. Those passages are passed to the model as context, and it composes an answer constrained to what they say. This is the source-grounding step.

The quality of the answer depends heavily on the first stage: retrieve the wrong passages and even a perfect model produces a confident, wrong response.

How Sidenote uses it

Sidenote runs retrieval over the document you're already reading — a PDF, a Confluence page, a research paper — rather than a separate upload. It pulls the passages that match your question, grounds the answer in them, and attaches a citation that scrolls to the source. Any claim it can't tie back to a retrieved passage is dropped before you see it, so every answer points at the sentence it came from.

Related terms
All terms
Ready when you are

Stop digging. Start asking.

Add Sidenote to Chrome, open any page in your wiki, and ask it the question you’ve been Slacking the team about.

7-day Pro trial · No card required · Free tier forever