Skip to content

Controlled retrieval

Controlled retrieval separates searching for evidence from asking each model to answer. The retrieval adapter creates an immutable source bundle that compatible observations reuse. This helps compare how models interpret the same evidence instead of allowing each model’s search choices to change the source set.

Select an installed retrieval engine and explicit bounds:

{
"mode": "controlled",
"engine": "exa",
"max_results": 3,
"max_characters": 12000
}

The engine must be available in the deployment. Prompts can supply 1–3 explicit queries, each at most 500 characters:

{
"id": "studio-tools",
"text": "Compare project planning tools for small design studios using the supplied evidence.",
"queries": [
"project planning tools small design studio features",
"project planning tools design studio pricing"
]
}

Use the same prompt and compatible retrieval settings across the targets you intend to compare. An observation’s retrieval_id links it to shared retrieval evidence. Matching observations share the bundle and its retrieval work is accounted for once; do not multiply that shared search cost by every answer in your own analysis.

The bundle fixes the retrieved context reused within the matching work. It does not make models deterministic, guarantee that the retrieved documents are complete, or force every model to cite every source. A later run can retrieve different pages or changed content. Preserve the original run and evidence before comparing across dates.

Native and server search answer a different question: how the selected provider searches and answers under its own supported behavior. Keep that distinction visible in reports instead of merging results into one unlabeled series.

Compare source URLs and titles, citations, answers, and warnings. Request include_raw=true when you need full captured source text and metadata. Compact results retain useful source references but omit raw payloads and full source text.

See raw evidence for retrieval steps and repeatable prompt sets for keeping experiment inputs consistent.