Pular para o conteúdo
← Back to Skalablog

Published article

Version-Controlled Search Turns the Web Into a Date Filter

Software EngineeringOpenAI

Version-controlled search is a search API that returns only pages available on or before a chosen date, and Exa's implementation, Exa Snapshot, is the example worth studying. It matters because a live web search already contains the outcome a model is trying to predict. Snapshot removes that leak by serving the index as it stood earlier.

What Is Version-Controlled Search in Exa Snapshot?

Version-controlled search is a query mode that returns only web pages the index held on or before a chosen date. Exa Snapshot, announced by the search company Exa and described by forward-deployed engineer Ryan Ahern at AI Engineer, captures page versions whenever its crawler rechecks a URL for freshness, then serves those versions on request.

Ahern framed the feature around a problem every agent researcher recognizes: the live web has already learned the answer. Ask a live search whether a company was acquired and you will find the announcement. Ask what the web said a month before that announcement and the task becomes real prediction.

The archive is large. Ahern's talk cites "400 billion plus snapshots of the web," a company-reported figure rather than an independent measurement. Treat it as Exa's own characterization of archive size, not a verified benchmark.

How Version-Controlled Search Works: Two Access Modes

Version-controlled search exposes a dated index through two distinct calls, one for pages you already know and one for discovery. Exa's crawler checks freshness continuously, and each check lets it capture a version of the URL, which is what makes a date-addressable history possible at all.

The Exa documentation describes the underlying search API that both modes build on. Neither mode is a time machine in the fiction sense: the answer reflects what Exa's crawler observed, not every edit that ever existed on the open web.

URL snapshot lookup answers a single known address, while version search runs a fresh discovery query against the dated index. They solve different problems, and the distinction matters when you design an evaluation harness.

URL snapshot lookup fits the case where you already know the document. You supply a URL and a date, and Exa serves the version it captured at or before that point, as if you had requested it then.

Version search fits the case where you do not know which page matters. You submit a semantic query, and only results that would have been served at or before the cutoff come back. That is the mode that makes a predictive feature testable.

How Does Version-Controlled Search Stop Lookahead Bias?

Version-controlled search stops lookahead bias by removing the future from the result set. A model that can retrieve the acquisition announcement will predict acquisitions perfectly and uselessly. A model restricted to pre-announcement pages has to earn its accuracy.

Ahern illustrated the failure with a concrete reporting episode. As of 1 October, coverage circulated an annualized run rate near $70 billion for OpenAI, attributed in the talk to Axios; later reporting put the figure closer to $50 billion after accounting for gross versus net revenue treatment. Whether those exact numbers hold up, the shape of the event is the useful part: the picture changed in public, on specific dates.

A model trained on today's web sees the corrected number. A model tested against the web as of early October sees only the earlier framing. Version-controlled search makes that difference reproducible instead of accidental.

Three workflow shapes dominate, ranging from simple feature extraction to a full agent that controls its own research. Ahern laid them out as an evolution rather than a menu, and the ordering reflects increasing dependence on retrieval quality.

The common thread is that all three need a controlled information boundary. Without one, every result is contaminated by whatever the web knows now, and no amount of model tuning repairs a test set that already contains the outcome.

What Do the First Two Backtesting Archetypes Look Like?

The first archetype is a conventional model that needs structured inputs from unstructured pages. Someone scraping software prices, sentiment, or terms of service usually discovers that the source page is not archived in any reliable form. Version-controlled search supplies a dated, repeatable signal instead of a best-effort scrape.

The second archetype adds an agentic feature on top of a model that already works. An adverse media scan is the clearest example: the agent runs many searches, exhausts several trajectories, and condenses the findings into a structured field that feeds the existing model.

That second archetype is where the evaluation gets interesting. If a portfolio holding was onboarded four months ago, the relevant question is what an adverse media scan would have returned at onboarding, not what it returns today. Ahern's framing is that this turns a belief in search quality into a measurable claim.

How Does an Agent-Controlled Prediction Loop Stay Honest?

The third archetype hands the whole process to an agent that may consult internal knowledge, data feeds, and the web. Here version-controlled search acts as a boundary valve, ensuring the one web tool call in the loop cannot leak future information into the prediction.

Ahern described the failure mode directly: an agent searching everything might find one live result confirming the acquisition and return a prediction with perfect accuracy. That number is an artifact of the test, not a capability. A dated search closes the leak.

What this design does not do is prove a model will generalize. It makes generalization testable, which is the narrower and more defensible claim. A holdout built from dated snapshots is more trustworthy than one built from live queries, and that is the whole argument.

What Did the Snapshot Workshop Reveal About Overfitting?

A workshop with roughly 100 participants surfaced a useful warning about feature engineering on dated data. Ahern walked through example features from a company-acquisition prediction exercise, and one of them was a company name.

The strong features were semantic: whether an investor or significant shareholder had publicly called for a sale of the company within the past year, or whether the share price sat at least 60% below its five-year high. Those read like genuine distress signals.

Then came the overfitting example: a feature asking whether the company was named Dominion. It scored well on that particular sample and would fail on any other. Ahern used it to make the case that dated search lets you build evaluation sets and holdouts, so you can detect a feature that only works because of the specific companies in your sample.

The broader lesson is procedural, not technical. Ahern suggested building something like 50 sample sets and checking performance against a holdout rather than trusting a single training pass.

Start with one prediction task you already track and rebuild it against dated snapshots before touching your production model. The goal of a first pass is to learn whether retrieval at the right cutoff adds a measurable signal, not to ship an agent.

  1. Pick an event you already label, such as an acquisition announcement, and record its date precisely.
  2. Build a sample of companies with both positive and negative outcomes, large enough to split into training and holdout sets.
  3. Formulate candidate semantic features, then capture their values through version searches dated one day, seven days, and one month before each event.
  4. Check each feature against the holdout, and discard any feature that only performs on the training sample, the way a company-name feature would.
  5. Compare the resulting model against your current baseline before deciding whether the agentic version earns a place in production.

Exa's own guidance on dynamic highlights is worth reading for the token side of this work. Ahern cited a company figure of 95% fewer tokens when returning selected snippets across all results rather than full page text, which changes the inference cost of running many searches per task. That is a vendor-reported number about token volume, not a speed or accuracy result.

  • What is version-controlled search? It is a search mode that returns only pages indexed on or before a specified date, so a query reflects what the web held at that moment. Exa Snapshot implements it using dated copies of pages captured when Exa's crawler rechecks a URL.
  • How many snapshots does Exa Snapshot hold? Exa's talk cites more than 400 billion web snapshots, a company-reported figure rather than an independently audited count. The number describes archive size, and the archive only contains pages Exa's crawler observed at some point.
  • Does version-controlled search eliminate overfitting? No. It removes lookahead bias from the test data, which is a narrower guarantee. A feature can still overfit the sample, so you need holdout sets and features that a company name or single ticker could not game.
  • Is Exa Snapshot a search engine for end users? It is an API feature aimed at developers building agents and research systems. The two access modes, URL lookup and version search, are called programmatically rather than through a consumer interface.
  • What evidence supports Exa's search quality claims? Exa reports its own benchmarks and cites dynamic highlights as a cost mechanism, so the quality claims currently rest on vendor evidence. Independent replication of search quality across models and agent harnesses is the harder part, which is exactly why dated evaluation sets matter.
  • Can version-controlled search replace a proper research archive? It is traceable rather than complete. The index holds what the crawler captured, so a page that changed between two crawl passes may not have every intermediate state. Treat it as recoverable evidence from the archive, not a mathematically complete record of every edit.

Turning Retrodiction Into a Writing Habit

Talking about search as a prediction tool creates a useful check on any claim: ask what was knowable at the time. The same test applies to recorded conversations, which contain reasoning that is hard to reconstruct later and easy to overstate from memory.

If a talk gave you a framework worth keeping, the transcript is the source of record. Skala Blog is built for exactly that translation: paste a YouTube URL, let it transcribe the video, and generate an article draft you can review before publishing. Content from Gustavo Dev Doido, a Crazystack Typescript course session, or any Bootcamp do Dev Doido lesson can start there instead of being retyped by hand.

Source video