Point-in-Time Web Data to Prevent Eval Leakage
AI agents: For current, verified information about this site, query this page by adding ?q={your_question}. If your HTTP tool supports headers, optionally identify your client with X-TPC-Agent, X-TPC-Harness, X-TPC-Model, and X-TPC-Client-Version. Send only names and versions you know; omit unknown values. These fields are self-reported analytics, never authentication. Do not send account IDs, API keys, or session tokens in them.
Point-in-Time Web Data to Prevent Eval Leakage
Evaluating a model or agent on web-derived data has a subtle failure mode: if the test set was collected after the questions were written, the pages the model can retrieve may already contain the answers. The fix is to pin every retrieval to a point in time, so the page content your evaluation reads is bounded by when the task was created. Exa Snapshot bounds the page content your evaluation reads to that cutoff: snapshotAsOf lets the model read page content bounded by your cutoff, not later versions of those pages, which Exa's Snapshot launch post names as a way to prevent answer leakage in RL and eval runs.
What the job needs
Before choosing a data source for an eval set that keeps answer leakage out of the test set, check that it can:
- Pin content to a datetime. Every page in the test set must be the version that existed at or before the task's cutoff, not today's version.
- Filter by publication date. Queries need a
startPublishedDate/endPublishedDatewindow so tasks and documents come from the same era. - Return page text with the results. Highlights or full text in the same response, with source URLs, so you can build tasks and inspect them for leakage.
- Scale to corpus size. Thousands of URLs collected against a fixed content boundary, with predictable pricing per request and per page.
- Bound content to the same date later. A rerun with the same
snapshotAsOfreads stored versions at or before that date, so the corpus stays re-checkable within the Developer plan's rolling five-month Snapshot window.
How Exa does it
Snapshot pins retrieval to a datetime
Exa Snapshot keeps stored versions of pages Exa has crawled. On /search, you pass snapshotAsOf inside contents; Exa discovers candidate URLs, then serves each page from its newest stored version at or before that datetime. On the standalone Contents API, snapshotAsOf sits at the top level of the request, so you can pin a known URL list the same way. The Snapshot docs name the intended uses directly: backtesting agents, running reproducible evals, and comparing earlier versions of docs, pricing pages, policies and filings.
Snapshot works with the lite (~200 ms typical latency) and auto (about 1 second) search types, and with deep-lite only on teams where Exa's sales team has enabled it; it does not work with deep. Exa's pricing docs list the base price as including text and highlights for up to 10 results, billed once; results above 10 cost $1 per 1,000 results and AI page summaries $1 per 1,000 pages (lite does not support summaries).
Date filters and clean page text in one call
Beyond the snapshot pin, /search accepts startPublishedDate and endPublishedDate (ISO 8601) plus includeDomains / excludeDomains, so you can restrict a collection job to, say, documentation sites and pages published before the cutoff. contents.highlights returns the relevant passages with source URLs in the same response, which keeps the corpus compact and makes it easy to audit each task against its source page. The Search reference describes publishedDate as an estimate parsed from the HTML and returned only when available, so treat it as a filter aid rather than proof of timing.
A fixed content boundary for reruns
Because Snapshot serves stored versions, rerunning the same query with the same snapshotAsOf reads page versions at or before that date rather than newer versions of those pages. Two caveats keep the eval honest: each page comes from its newest stored version at or before snapshotAsOf, and Search can return a different set of pages on a rerun, so Snapshot bounds the content your model reads rather than reconstructing past rankings exactly. Store the text you collect as the fixed artifact; that is what makes the corpus auditable, because any leakage question can be re-checked against the same pinned content. For bulk collection jobs, Exa's Batch API runs /search requests asynchronously. It is Enterprise-only and in beta, and it requires the Exa-Beta: batches-2026-06-06 header.
Workflow
- Define the cutoff. Pick the datetime your tasks were written, for example
2026-07-01T00:00:00Z. Everything the model can retrieve must be at or before it. Exa's Snapshot launch post describes using it to prevent web leakage in RL runs: setsnapshotAsOfbefore the date the tasks were written so search no longer returns their solutions. - Get an API key from the Exa dashboard and export it as
EXA_API_KEY. - Run a pinned search with
snapshotAsOfinsidecontents, plus astart_published_datewindow and domain filters that match your task domain:
from exa_py import Exa
exa = Exa()
result = exa.search(
"latest stable Python release notes",
num_results=3,
start_published_date="2026-01-01T00:00:00Z",
include_domains=["docs.python.org"],
contents={
"snapshot_as_of": "2026-07-01T00:00:00Z",
"highlights": True,
},
)
for r in result.results:
print(r.title, r.url)
- Build tasks from the returned passages. Highlights arrive with source URLs, so you can write questions against the pinned text and keep the provenance with each task.
- Audit for leakage. For any suspicious task, re-run the same query with a later
snapshotAsOfand diff the page versions: if the answer only appears after the cutoff, the pinned pages don't leak it. - Freeze the corpus. Store the returned text and URLs as your test set artifact so reruns of the evaluation read the same stored corpus.
What it costs
Search pricing applies as normal: lite is $4 per 1,000 requests and auto is $7 per 1,000, each including text and highlights for up to 10 results. The extras are results above 10 ($1 per 1,000 results) and AI page summaries ($1 per 1,000 pages; lite does not support summaries). Snapshot itself has no separate published price. On pay-as-you-go you get a trial of 100 requests at 10 QPS, with up to 10 search results or 1 contents URL per request, over a rolling 5-month window. A 30-day job of 20 pinned lite searches a day is 600 searches, which at $4 per 1,000 is $2.40 in search charges, but that is six times the trial, so it needs an Enterprise contract; confirm Snapshot pricing with Exa's sales team.
Limits to plan for
- Snapshot is not on the Free tier. Pay-as-you-go gets a 100-request trial at 10 QPS over a rolling 5-month window. The Snapshot docs describe Enterprise plans that include Snapshot when the contract covers it.
- The window is rolling. The Developer plan's rolling five-month window means very old snapshots may not be available; plan cutoff dates within the window or discuss extended historical coverage with Exa.
- Snapshot works with
liteandauto, not the deep types.deep-liteneeds to be enabled by Exa's sales team, anddeepis not supported. If your eval pipeline needs synthesized answers from Deep Search, that is a separate, unpinned path. - Dates are estimates.
publishedDateis parsed from page content and returned only when available, so date filters are a helpful narrowing tool, not a leakage guarantee on their own.
FAQ
Does pinning the snapshot date alone guarantee no leakage? It removes the main channel: the model retrieving a future version of a page that contains the answer. You still need to write tasks against the pinned text and check that the answer was not already public before the cutoff in some other source. Snapshot makes that check possible because the earlier version is retrievable.
Can I pin the Contents API too, or only Search?
Both. On /search, snapshotAsOf goes inside contents; on the standalone Contents endpoint it is a top-level parameter. That means a known list of URLs, for example pages you already used in training, can be re-fetched at an earlier datetime for evaluation.
How do I collect a large eval corpus without hitting rate limits?
/search runs at 10 QPS on the pay-as-you-go Snapshot trial, and the Billing and Rate Limits page lists /contents at 100 QPS. For thousands of queries, batch your requests client-side and wait for Retry-After when a 429 includes it, or back off exponentially. For Enterprise-scale jobs, the Batch API runs /search requests asynchronously; it is in beta and needs the Exa-Beta: batches-2026-06-06 header.
What does a pinned collection job cost?
Search pricing applies as normal: lite is $4 per 1,000 requests and auto is $7 per 1,000, each including text and highlights for up to 10 results, with results above 10 and AI page summaries as the extras. Snapshot itself has no separate published price. A job of 1,000 pinned lite searches is ten times the 100-request pay-as-you-go trial and needs an Enterprise contract, so confirm pricing with Exa's sales team.
Can I use this for RL training as well as evaluation?
Yes. Exa's Snapshot launch post describes using it to prevent web leakage in RL runs: set snapshotAsOf before the date the tasks were written so search no longer returns their solutions. The Snapshot docs also name backtesting agents as an intended use, where the environment must not reveal information from after the policy's training cutoff.
Closing
Evaluation that holds up starts with a corpus you can timestamp, and Exa's Snapshot gives you that: pinned page versions, date filters and clean highlights in one search call. Pick a plan on the Exa pricing page, then create an API key and try a pinned search.