Introduction
Retrieval-augmented generation only works if the model answers from your documents instead of its imagination. When a RAG pipeline hallucinates, the cause is usually retrieval or prompting — not the model.
The Practices
1. Chunk for Questions, Not for Storage Split documents at natural boundaries — headings, paragraphs, steps — and keep chunks small enough to answer one question well, with source and date metadata attached.
2. Set a Relevance Floor If the best-matching chunk scores below a threshold, don't answer. Say the information isn't in the sources and log the miss — systems that can say "I don't know" earn trust.
3. Ground the Prompt Instruct the model to answer only from the retrieved context, stay close to the source wording, and cite the chunk it used, every time.
4. Keep Sources Fresh Stale indexes produce confident, outdated answers. Re-index on a schedule, version your embeddings, and delete superseded documents instead of letting versions compete.
5. Test With Real Questions Build a small evaluation set from real user questions with known-correct answers, and run it after every change to chunking, embeddings, or prompts.
Conclusion
Hallucination control is an engineering discipline, not a model setting: ground the retrieval, constrain the prompt, let the system abstain.


