Retrieval design
Shape ingestion, search, filtering and reranking around actual questions. Preserve source metadata and test whether the needed evidence is retrieved.
ENGINEERING
04 / CONTEXT ENGINEERINGAn AI system needs more than a prompt. We design how it finds, filters and uses information, with the permissions, freshness and evidence your application requires.
SYSTEM VIEW
Context should be selected for the task and the caller. Its origin, access rules and limits remain visible to the application.
Resolve user identity, access scope and the information the task requires.
Search authorised sources and remove irrelevant or out-of-scope material.
Prepare instructions, evidence, tool outputs and necessary state within a defined budget.
Evaluate groundedness, citations and task completion, with an abstention path.
Context sources governed by the same access boundary
Relevant, current source material with access filtering and traceable provenance.
Bounded results from authorised systems, validated before use.
Task-relevant history with retention, compaction and isolation rules.
Track retrieval quality, context size, source freshness and answer quality using minimised traces.
WHAT WE ENGINEER
Shape ingestion, search, filtering and reranking around actual questions. Preserve source metadata and test whether the needed evidence is retrieved.
Apply source-level access policies before information reaches the model. Make evidence and freshness available where users need to judge an answer.
Connect bounded tool results and scoped conversation state. Define what can persist, what expires and what requires a new read from the source system.
Create representative cases for retrieval and answer quality, including missing evidence, conflicting sources and malicious instructions in retrieved content.
CONTEXT WITH ACCOUNTABILITY
We connect retrieval and application controls so a model receives information appropriate to the task. Context limits, source changes and tool behaviour are tested as part of the integration.
Adding documents does not guarantee a correct answer. We define what evidence is sufficient, how an answer can be checked and when the system should ask for clarification or decline to answer.
ENGINEERING QUESTIONS
Retrieval-augmented generation is one part of the context design. The wider system also includes instructions, authorised tool outputs, conversation state, information limits and the evaluation of what the model does with them.
They should not. We enforce retrieval and tool permissions in the application and source integrations, rather than relying on a model instruction to hide information after it has been retrieved.
No. Better information can improve a system, but output still needs evaluation and a defined response when evidence is missing or contradictory. We establish quality criteria around the actual workload.
LET’S ENGINEER WHAT COMES NEXT
Bring us a workload, a technical constraint or an architecture that needs a second look. We will help define a practical next step.
Discuss your engineering prioritiesArchitecture advice, focused implementation and support for your engineering team.