In a September 2024 retrieval benchmark, adding document context to both meaning and keyword searches cut missed passages by 49%. That result is about finding evidence before an AI writes. If the current policy never reaches the model, it can still produce a plausible answer from patterns it learned during training.
Grounding means giving the model evidence it can use to answer the question at hand. Put a short document directly in the prompt, search a larger collection for the relevant passage, or look up a live record. We’d choose by where the answer lives and how quickly it changes.
Here’s what we’d use for each job
- Put a short approved document in the prompt when it can cover the request.
- Use retrieval-augmented generation (RAG) to find the right passage in a larger collection.
- Use fine-tuning for a consistent writing style once examples in the prompt fall short.
- Look up current prices, stock and other exact values in the system that owns them.
A conversation can carry forward only what the app passes back
A large language model (LLM) writes by predicting what text comes next. Its training can help it recognise what a returns policy usually sounds like, so it may confidently fill in a deadline even when nobody has given it yours. How large language models work explains what the model learns during training.
The context window is the amount of material the model can handle at once, including instructions, chat history and any documents the app sends with the question. A model can refer to a detail from an earlier turn if that detail is still in its input. To carry a preference into a new chat, the app needs to save it somewhere and supply it again when it matters.
Where the answer lives determines what to give the model
Say you sell flooring and want an assistant to answer questions about installation, returns and the status of an order. The same customer can ask about all of them in one message, but the answers come from different places. Compare what the assistant would need for each part of the job.
Context window
If staff want a draft reply based on a short installation sheet, attach that sheet to the prompt. Send the current version with each request and tell the assistant to flag anything the sheet leaves open. This is easiest to maintain while you can reliably choose the whole document up front.
RAG
When the installation instructions depend on the product line, search the approved library first and pass the matching passages to the model. Keep the product line and revision with each passage so it can tell which instructions apply. This lets you update a document without retraining the model.
Fine-tuning
Fine-tuning is further training on examples. For this assistant, we’d reserve it for style, such as how staff explain a delay, and try examples in the prompt first. Keep the expected delivery date in the order system so staff can correct it without updating the model.
Database lookup
For “Has my order shipped?”, have the app fetch the authorised customer’s order by its exact ID and read the status the order system returns. If the system returns no match or doesn’t respond, say you couldn’t confirm the status and offer to pass the query to staff.
Retrieval works better when each passage says what it applies to
RAG usually breaks documents into smaller passages so the app can search them separately. A passage saying “Allow the adhesive to cure before use” may turn up for several products. In contextual RAG, you add a short description of where each passage came from before indexing it for search. Naming the adhesive and surface in that description makes it easier to pick the right passage when the customer mentions both.
The September benchmark tested search across code, fiction and research papers. It measured which relevant passages were missing from the first 20 search results, before a model wrote an answer. Reordering the matches to put stronger ones first brought the relative reduction in missed passages to 67% against the same baseline. Test the search on your own questions before you decide it’s good enough.
If two versions of a guide disagree, putting both into the prompt leaves the model to choose between them. Exclude superseded documents when you build the index. Keep the product line, revision and any access restrictions with the passages so your search can filter them before they reach the model.
Live answers should come from the system that owns the record
If a customer wants to know whether their order shipped, check the order system through a database query or an API, a way for software to request data from another system. Make the lookup predictable. The app checks who’s asking, looks up that specific order and uses the status field it gets back. For a sensitive value, you can show the returned field directly instead of asking the model to rewrite it.
A question about whether a shipped order can still be cancelled needs both the live status and the cancellation policy. If the lookup times out or the policy doesn’t cover the situation, the assistant should say what it couldn’t verify. Decide what the assistant should do when it gets something wrong before it starts replying to customers.
Test what the assistant sees before you let it reply
Pull recent questions from your inbox and take out customer details. For each question, write down where a staff member would check the answer and what they’d say if they couldn’t confirm it. Include a policy you’ve changed and a question nobody can answer from the documents. Run both through your test setup and inspect the evidence the assistant received alongside its reply.
If the current policy never arrived, fix what the app sends or what the search returns. If the right policy arrived but the answer misread it, tighten the reply instructions and try the question again. Put any question that relies on a live record into a separate test so you can see what happens when that record is missing.
If you’d like help wiring those checks into a custom bot or automation for your process, book a consultation and bring a question your team has to look up today.



