﻿# Exa Search: request content that the downstream model can use

Select Exa highlights or page text for the actual downstream consumer, and distinguish per-page excerpt limits from the final assembled model context.

Author: Retrivium editorial team
Updated: 2026-11-03
Canonical URL: https://retrivium.ai/journal/guide-exa-search-content-selection/
Language: en

## Write the downstream contract first

A code assistant looking for a function's preconditions needs precise passages. A document comparison tool may need entire sections. Specify the expected evidence shape before choosing Search content options: otherwise an adapter can receive valid results yet feed the model only titles because it never requested usable page material.

## Request extractive passages explicitly

The [Highlights guide](https://exa.ai/docs/search/highlights) places query-relevant extracted passages in `results[].highlights`. Search requests enable them inside `contents`. Store the array as passages tied to a parent result, rather than joining unrelated pages into one untraceable block. Preserve ordering within a page when that ordering helps interpret an example or exception.

## Interpret the character limit locally

Exa documents optional `maxCharacters` for a fixed per-page highlight limit. That does not reserve a fixed total model context budget across all results. Count the final prompt after adding document labels, instructions, conversation state, and other tool observations. A client that checks each passage independently can still overrun its complete input allowance.

For a function reference, a short passage may retain the signature but omit an error condition. Use a fixture that requires that condition to test whether the excerpt policy is adequate. Do not fill the missing clause from the model's prior knowledge while claiming it came from the retrieved page.

## Keep synthesis in another field

The [Search reference](https://exa.ai/docs/reference/search) separately describes content options and synthesized output. An extracted passage and generated summary have different provenance. Your evidence record should retain that distinction, even when both strings discuss the same source. This lets a reviewer locate which exact input supported a downstream statement.

## Read further only where needed

When a selected URL needs a fuller inspection, [Contents](https://exa.ai/docs/reference/get-contents) supplies a direct follow-up route. Record that second acquisition separately from the initial excerpt request. An escalation policy can focus full reads on pages whose missing context blocks the answer instead of expanding every result by default.

The guides to [structural token boundaries](/journal/rag-chunking-structure-token-boundaries/) and [tool observations](/journal/learn-codex-tool-observation/) explain how to preserve the useful evidence afterward. Validate the complete assembly with long reference pages, repeated navigation, and answers requiring adjacent qualifications; those cases expose consumer mistakes that a successful HTTP response cannot reveal.
