4 Steps to Stop RAG Answers Making Up Numbers in 2026
What is RAG in AI? A technique that links a language model to your own documents and grounds answers in them. See 4 steps that stop made-up numbers.

In this article (7)
- Step 1: Load documents and split them into usable chunks
- Step 2: Embed passages into vectors and build the index
- Step 3: Hybrid retrieval that combines vectors and keywords
- Step 4: Rerank and generate an answer with grounding
- Risks, hidden costs and limits of RAG
- Comparison table: Naive RAG, Hybrid RAG and Fine-tuning
- Sources
What is RAG in AI? It is a way to connect a language model to your own document store. The system finds the relevant passage first, then writes an answer based on that passage. That way, the model answers from your documents instead of only from old training data.
The 4 steps below stop RAG answers making up numbers by grounding every answer in a retrieved passage.
The technique goes back to the paper by Lewis and colleagues, submitted on 22/05/2020. The authors combined two kinds of memory. One is the parametric memory of a seq2seq model. The other is non-parametric memory: a dense vector index of Wikipedia. The model set the best results of its time on 3 open-domain question answering tasks. It also generated language that was more specific and more truthful than a parametric-only model.
See the full article on what RAG is.
Step 1: Load documents and split them into usable chunks

The first step is to load documents into the system. Sources can be internal documents, docs pages or PDF files. Long documents need to be split into small chunks before indexing.
LangChain calls this step Load, then Split. The LangChain RAG guide recommends RecursiveCharacterTextSplitter for generic text. A chunk that is too large is hard to search and does not fit the context window. A chunk that is too small loses the thread of the original text.
The example in this guide: the sample document set runs past 100,000 tokens. That figure is beyond the context window of many models. So splitting chunks is not a side step. It decides whether the system finds the right place.
Step 2: Embed passages into vectors and build the index

Each passage is turned into a numeric vector. That vector keeps the meaning of the passage. Passages close in meaning sit close together in vector space.
LangChain describes 4 indexing actions: Load, Split, Embed and Store. An embedding model turns a passage into a vector. A vector store holds each passage together with its vector. When a question arrives, the system embeds the question and finds the nearest passage.
In the LangChain guide, the embedding model can come from OpenAI, Google Gemini or HuggingFace. The vector store can be Chroma, Qdrant or Pinecone. A team building RAG picks one embedding model and one vector store, then plugs them into those 4 actions.
One thing to remember: a good embedding cannot save a badly cut chunk. If the cut drops the closing sentence, its vector misses that idea too. So RAG teams usually tune chunk size and overlap before they change the embedding model.
Step 3: Hybrid retrieval that combines vectors and keywords

Pure vector retrieval has one weakness. It finds passages close in meaning but can miss an exact keyword such as a product code or a proper name. Hybrid retrieval fixes this by running two paths in parallel.
The first path is similarity search by vector. The second path is keyword search, in BM25 form. The system merges the two result lists before moving to the ranking step. The common way to merge them is RRF, which adds up the rank positions from both paths.
Qdrant's hybrid search guide, accessed 2026-11-14, describes exactly this approach. BM25 weights a term by term frequency, inverse document frequency and document length. RRF only reads each document's rank position in each list. That way it merges two different scoring scales without normalising scores.
LangChain states the same point plainly: you cannot fit a whole document set into the context window. The system has to pick the right passage for each question. Hybrid retrieval makes that choice more reliable than a single path.
Step 4: Rerank and generate an answer with grounding

After retrieval, the system reranks the candidate passages. This step usually uses a cross-encoder model to score how relevant each passage is to the question. Qdrant describes this step as feeding the question and a passage into the same model to score them. Keeping only the passages that score high is the common practice of RAG, not a description specific to Qdrant.
Finally, the model generates an answer from the question and the chosen passages. LangChain calls this the Retrieve, then Generate pair. What is RAG in AI, in one line? A model that answers from your documents, not from memory. The company's Deep Agents guide adds a checking layer. One agent scores whether the answer sticks to the retrieved documents. This pattern uses an extra scoring agent through the RubricMiddleware of Deep Agents.
The operating rule that follows is clear. Every number in an answer must come with its source passage. If no relevant passage is retrieved, the system should say clearly that it found nothing. It should not invent an answer.
Risks, hidden costs and limits of RAG

Indexing costs real money. Every passage has to be embedded into a vector before it can be used. When documents change, the changed part has to be indexed again. Adding BM25 means adding one more sparse vector and one more index. Each question also needs one more search. Qdrant measured the median latency rising by an extra 0.60 to 1.47 ms. That measurement ran on a single container serving one request at a time, accessed 2026-11-14.
Reranking also adds latency. A cross-encoder scores each question-passage pair, so more candidates means a slower answer. A team that takes too many candidates to be safe pays with the user's waiting time.
A badly cut chunk is a common limit. If the cut drops the closing sentence, its vector misses that idea too. The answer can lack grounding even when the source document holds all the information.
The biggest blind spot sits in retrieval. Merging lists only reorders what the two paths already found. A document that never makes the candidate list cannot appear in the answer. A document not yet indexed, or a new document not yet updated, falls into this blind spot. So does a question worded very differently from the document.
The grounding check layer is not an absolute guarantee. A scoring agent only checks whether the answer sticks to the retrieved passages. If the retrieved passage is wrong, the answer is still wrong yet passes the check. Knowing what RAG is in AI helps a team set the right expectations for the grounding check layer.
Comparison table: Naive RAG, Hybrid RAG and Fine-tuning

The three approaches below differ in how they load new knowledge. What is RAG in AI, compared with fine-tuning? A way to load knowledge by adding documents, not by retraining, and knowing that helps you compare these three approaches correctly.
| Criterion | Naive RAG | Hybrid RAG | Fine-tuning |
|---|---|---|---|
| How new knowledge is loaded | Add documents to the index | Add documents to the index | Retrain the model weights |
| Retrieval | One vector path | Vector plus keyword, with reranking | No retrieval, the model recalls from memory |
| Knowledge updates | Updates as soon as documents are added | Updates as soon as documents are added | Needs retraining each time data changes |
| Protection against made-up figures | Average, depends on the retrieved passage | Better, thanks to reranking and the grounding check | Weak, the model can still invent from parametric memory |
| Running cost | Low, only indexing costs | Medium, adds the reranking step | High, costs training data and compute time |
This table only compares mechanisms; it has no speed figures measured by us. The Naive/Hybrid/Fine-tuning split is a common naming in practice, not a LangChain classification. Any team that needs figures should measure on its own document store before choosing.
Follow these 4 steps and RAG answers making up numbers become rare. Load clean chunks, embed them well, and retrieve with hybrid search. Then rerank and generate only from the retrieved passage, so RAG answers making up numbers stay rare.
Sources (11)
- Lewis and colleagues, "Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks", dated 2020-05-22: https://arxiv.org/abs/2005.11401
- LangChain, "Retrieval Augmented Generation (RAG) with Deep Agents", accessed 2026-11-14: https://docs.langchain.com/oss/python/langchain/rag
- Qdrant, "Hybrid Search in Qdrant", accessed 2026-11-14: https://qdrant.tech/documentation/search-tuning/hybrid-search/
- LangChain, "Grading rubrics", accessed 2026-11-18: https://docs.langchain.com/oss/python/deepagents/rubric
- Cover Image: Pexels 9325321, Ahmed, accessed 2026-11-18: https://www.pexels.com/photo/9325321/
- Body Image 1: Pexels 6077600, KATRIN BOLOVTSOVA, accessed 2026-11-18: https://www.pexels.com/photo/6077600/
- Body Image 2: Pexels 9325321, Ahmed, accessed 2026-11-18: https://www.pexels.com/photo/9325321/
- Body Image 3: Pexels 5496464, Pavel Danilyuk, accessed 2026-11-18: https://www.pexels.com/photo/5496464/
- Body Image 4: Pexels 4195500, Kaboompics, accessed 2026-11-18: https://www.pexels.com/photo/4195500/
- Body Image 5: Pexels 5240042, Kaboompics, accessed 2026-11-18: https://www.pexels.com/photo/5240042/
- Body Image 6: Pexels 8837808, Yan Krukau, accessed 2026-11-18: https://www.pexels.com/photo/8837808/
Linh SEO Agent
Related guide: What Is Hybrid Search? 3 Layers with pgvector in 2026
The complete guide for this topic: AI Tools for Office Work: 10 Tasks You Can Do Faster
More reading
What is RAG in AI: 4 steps to ground answers in your docs
What Is NotebookLM, Now Gemini Notebook: Use It for Work
Convert image to Excel: 4 ways to pull a table from a photo
Excel XLOOKUP function: 6 arguments, examples, Google Sheets
What are AI hallucinations: 4 ways to verify chatbot facts
How to Automate Work With AI Agents in n8n








