Log in·Sign up
BestRelay

Back to the Journal

Grounded Answers Start With Better Document Boundaries

Documents Give a Model Its Ground Truth

Large language models are trained to produce the next plausible sentence, and plausibility is not the same as truth. Grounding is the simple habit of putting the documents that hold the answer next to the question before the model writes anything. The model then has something to point at instead of something to invent. For a newcomer, the shift in thinking is small but important: treat the model as a reader and a writer, and treat your documents as the reference shelf. When the shelf is empty, the model fills the gap with patterns from training. When the shelf is stocked and clearly labeled, the model quotes, paraphrases, compares, and cites. That is the whole idea behind working with your own material, explained without jargon. Your system finds the passages that look relevant, places them in the prompt, and asks the model to answer using them. The output is not automatically correct, but it becomes checkable, because a reader can open the same passage and confirm the claim. Grounding turns a guessing game into a review process. It also turns failures into useful signals, since a missing document shows up as a gap in the evidence rather than as a confident fabrication.

Chunking Decides Whether Evidence Reaches the Answer

Documents rarely arrive in a size a prompt can comfortably carry, so you split them into pieces, and that split quietly determines the quality of every answer afterwards. A chunk that is too small loses the sentence that explains the exception. A chunk that is too large buries the one useful paragraph inside boilerplate and eats your context budget. The craft is to split along natural boundaries such as headings, sections, clauses, and numbered steps, so that each piece still makes sense on its own. A little overlap between neighboring pieces helps ideas that span a boundary survive the cut. Tables and definitions need special care, because a number without its column header is meaningless once it travels on its own. Keep the labels attached to every piece: document name, owner, date, version, and topic. Those labels are not decoration. They let the model say which version of a policy it relied on, and they let you spot stale material before it reaches a reader. Deduplicate early as well, since two near-identical versions of the same paragraph can make a shaky claim look well supported. Plain-text headings, consistent dates, and a single source of truth do more for answer quality than any clever trick applied at the end.

Retrieval Quality Beats Model Size for Factual Work

Once the documents are chunked and labeled, the next job is finding the right pieces quickly and cheaply. Keyword search is good at exact names, error codes, and defined terms. Semantic search is good at paraphrases and everyday wording. Running both and merging the results is a reliable starting point, and a quick second pass that reorders the candidate pieces by relevance usually sharpens the result further. Freshness matters just as much as relevance, because a correct answer drawn from a superseded manual is still the wrong answer for the person reading it today. It also helps to separate two workloads. A small, fast model can handle the many short searches and reranking steps that fill the pipeline, while a stronger model handles the final synthesis where the reasoning has to hold together. For example, a lightweight pass might run on Claude Haiku 4.5 while the synthesis step runs on Gemini 3.1 Pro. The point is not the names themselves but the discipline of choosing deliberately. A quality-first relay makes that discipline easier, because it forwards each request to the official model named in it with no substitution, so the model you tested is the model you run in production. That single property makes retrieval experiments honest.

Prompts Should Point at Evidence, Not Guess It

Retrieval gives the model material, and the prompt tells it how to behave with that material. Be explicit about the contract. Ask for answers that use only the supplied passages. Ask for the document name and date beside each claim. Ask for a clear statement when the passages do not contain the answer, rather than a confident guess padded with general knowledge. That request feels modest, but it changes the character of a system, because a refusal to answer is often the most valuable output a grounded assistant can produce. Handle conflict deliberately too. When two documents disagree, ask the model to show both sides and to prefer the most recent, most authoritative version according to rules you state in plain words. Keep the instructions short, repeated at the top of a long context, and written in the same tone you would use with a careful colleague. Finally, remember that the model reads what it is given. If a passage is missing, truncated, or mangled by a bad table conversion, no amount of prompt phrasing can repair it. Grounding exposes your data quality in public, which is uncomfortable and extremely useful.

Measure Grounding With Sources, Refusals, and Freshness

Teams that treat grounding as a habit, rather than a one-time setup, keep a small evaluation set of real questions with known answers drawn from their own documents. Each release of the corpus or the pipeline gets scored on three things: whether the answer is correct, whether its cited passages really support it, and whether the system declines cleanly when evidence is missing. Track refusals as a positive signal rather than a failure, since a rising refusal rate often means retrieval has become stricter and more honest. Watch freshness as well, because documents drift and so do the labels you attached to them. Cost belongs in the same conversation. Many relays and providers price by usage, and this one bills pay-as-you-go from the token counts the provider reports, with cache reads and writes priced separately, which rewards pipelines that reuse stable passages instead of resending everything on every call. Keep an eye on the numbers while you tune chunk sizes and retrieval depth. Colleagues who are curious can also share the work, since members earn a referral commission when the people they invite top up. Create a BestRelay account and try one grounded workflow end to end. You will learn more from a single honest failure than from a week of speculation, and grounding makes those failures legible.