By Sagar Shankaran, Founder of CallSphere
What to include and exclude in Claude's context when grounding answers with citations — curation, ordering, contracts, and caching that improve provenance.
Key takeaways
You can have a flawless retrieval pipeline and the Citations API perfectly wired, and still get weakly grounded answers — because the context you assembled was wrong. Too much, and the model drowns the relevant span in noise. Too little, and it fills gaps from its parametric memory, citing nothing or citing loosely. The unglamorous truth of grounding is that context design — what you include, what you exclude, and how you order and instruct it — often matters more than any single API feature. This post is about making those choices deliberately.
The mental model: context is not a place you dump everything you have. It is a curated brief. Every token you add competes for the model's attention, and irrelevant tokens actively degrade attribution because they give the model more places to wander and more tempting near-matches to cite.
Intuition says: when in doubt, include more sources, because the answer is more likely to be in there somewhere. For grounding, this backfires. Each extra chunk is another candidate the model can attribute to, and irrelevant-but-topical chunks are exactly the ones that produce confident mis-citations — the model finds a sentence that mentions the right entity and cites it for a claim it does not actually support. Tighter retrieval that sends five precise chunks produces cleaner citations than loose retrieval that sends twenty.
So the first context-design decision is ruthless filtering. Use a reranker or a relevance threshold and cut aggressively. If a chunk is not plausibly going to be cited, it does not belong in context. The cost of an irrelevant chunk is not just tokens — it is attribution noise.
Include the substantive content and a clear title for each source. Strip everything that is not evidence: page headers and footers, navigation menus, cookie banners, repeated legal boilerplate, and the chatty framing that surrounds the real text in scraped documents. This noise dilutes the signal and gives the model irrelevant spans to cite. A short preprocessing pass that removes boilerplate before chunking measurably improves citation precision.
Hear it before you finish reading
Talk to a live CallSphere AI voice agent in your browser — 60 seconds, no signup.
Be especially wary of near-duplicate chunks — two versions of the same policy, an old and a new pricing table. When both are in context, the model may cite the stale one. Deduplicate, and when versions genuinely differ, label them so the model can tell which is current.
flowchart TD
A["Candidate chunks"] --> B["Rerank & threshold"]
B --> C["Strip boilerplate, dedup"]
C --> D["Order: strongest evidence first"]
D --> E["Title each document block"]
E --> F["Add grounding + no-answer contract"]
F --> G["Claude generates cited answer"]
G --> H{"Cited spans relevant?"}
H -->|No| B
H -->|Yes| I["Return grounded answer"]
Notice the loop back to reranking: if the cited spans turn out irrelevant, the fix usually lives in context selection, not in the prompt wording. Most grounding-quality problems are retrieval-and-curation problems wearing a prompt-engineering costume.
Context selection decides what the model can cite; the instruction decides how disciplined it is about citing. A good grounding contract is short and unambiguous. It tells the model to answer only from the provided sources, to attribute every factual claim, and to refuse rather than guess when the sources fall short.
Use only the documents above to answer.
Attribute every factual claim to its source sentence.
Do not use outside knowledge.
If the sources don't answer the question, say so plainly
and cite nothing.
Keep it to a few lines. Long, elaborate instruction blocks are followed less consistently than terse ones, and they eat context budget you would rather spend on evidence. The line "do not use outside knowledge" is doing heavy lifting — it is the difference between a grounded answer and a blended one where the model quietly mixes its training data with your sources.
Separate the parts of context that never change from the parts that change every request. The grounding contract, role framing, and formatting rules are stable — put them in the system prompt. The retrieved documents and the question are volatile — they go in the user turn. This separation has two payoffs. It makes the prompt easier to reason about, and it lets you cache the stable prefix so repeated requests are cheaper and faster.
Prompt caching rewards this discipline: a long, stable system instruction can be cached once and reused across many questions, while only the small volatile evidence portion is processed fresh each time. Mixing volatile and stable content defeats the cache and muddies the structure.
Still reading? Stop comparing — try CallSphere live.
CallSphere ships complete AI voice agents per industry — 14 tools for healthcare, 10 agents for real estate, 4 specialists for salons. See how it actually handles a call before you book a demo.
Where evidence sits in context affects whether it gets cited. Models attend unevenly across a long context, so place the chunk most likely to answer the question prominently rather than burying it in the middle of twenty others. When you have a clear top result from reranking, lead with it. Treat the model's attention as a budget you allocate, not an infinite resource you can flood and expect even coverage.
| Content | In context? | Why |
|---|---|---|
| Top reranked chunks | Yes | The evidence to cite |
| Boilerplate / nav text | No | Adds mis-citation noise |
| Stale duplicate versions | No / labeled | Model may cite the old one |
| Grounding contract | System prompt | Stable, cacheable |
Every extra chunk is another candidate the model can attribute to, and topical-but-irrelevant chunks invite confident mis-citations. Tighter retrieval yields cleaner, more accurate citations than flooding context.
Boilerplate like headers, menus, and repeated legal text, and stale near-duplicate chunks. They give the model irrelevant or outdated spans to cite, degrading provenance quality.
In the system prompt, since they are stable across requests. That keeps structure clean and lets you cache the prefix, while only the volatile evidence and question change per call.
Yes. Models attend unevenly over long contexts, so leading with the strongest reranked evidence makes it more likely to be cited correctly than burying it among many chunks.
CallSphere applies this curated-context discipline to voice and chat agents, feeding them exactly the right source material so every caller answer stays accurate and attributable, day and night. See it live at callsphere.ai.
Source & attribution: This is an independent, original explainer inspired by Anthropic's coverage on the Claude blog. Claude, Claude Code, Claude Cowork, Claude Opus, and the Model Context Protocol are products and trademarks of Anthropic. CallSphere is not affiliated with or endorsed by Anthropic.

Written by
Sagar Shankaran· Founder, CallSphere
LinkedInSagar Shankaran is the founder of CallSphere, where he builds production AI voice and chat agents deployed across healthcare, hospitality, real estate, and home services. He writes about agentic AI, LLM engineering, and shipping voice agents that handle real calls in production.
See how AI voice agents work for your industry. Live demo available -- no signup required.
Anthropic's Claude Fable 5 and Mythos 5 explained: pricing, availability, frontier benchmarks, the dual-model safeguard architecture, and what they mean for AI agents.
Where Claude Code, MCP, and multi-agent systems are taking GTM engineering next, and how to prepare your team now for standing and multi-agent workflows.
Where Claude Cowork and the Claude agent ecosystem are heading next — standing agents, MCP, skills as a moat — and the concrete moves to prepare your team now.
The metrics, leading signals, and anti-metrics that prove Claude Cowork is working — acceptance rate, time-to-outcome, and why usage counts mislead.
Shipping an agentic GTM workflow is easy; proving it works is hard. The metrics, signals, and eval loops that show a Claude Code rebuild is paying off.
A realistic end-to-end Claude Cowork use case: a quarterly vendor-spend review from vague ask to shipped deliverable, with every agentic step shown.
© 2026 CallSphere Inc. All rights reserved.
Made within San Francisco
Watch how CallSphere handles real customer calls, schedules appointments, and processes payments — live.
Try Live DemoBook a DemoCalculate Your ROI