What is context injection?
The controlled assembly of retrieved evidence into a structured, model-ready prompt context.
The controlled assembly of retrieved evidence into a structured, model-ready prompt context.
It creates noise, citation confusion, token waste, and prompt-injection exposure.
Question, evidence text, citation ids, metadata, answer rules, budget decisions, and dropped-context reasons.
Prefer direct relevance, authority, freshness, diversity, and logical answer flow.
Separate instructions from evidence and treat retrieved text as quoted data, never as system instruction.
A stable source id tied to source, section, version, and chunk or quote span.
Reserve answer budget, drop duplicates/low-authority chunks, log reasons, and refuse if evidence becomes insufficient.
It can remove conditions, exceptions, dates, thresholds, or attribution needed for faithful answers.
Context precision, citation support, token usage, truncation rate, conflict rate, and answer groundedness.
Context injection is where retrieval quality becomes answer quality through structured evidence, boundaries, citations, and observability.