Skip to main content
Give the policy in an RL environment web search and page reads while no request from the run reaches a live site. You read pages only from Keenable’s stored copies, can ask Keenable to enforce that for a whole organization, and can pin the web to a fixed date.

Keep a run off the live web

Search returns results from Keenable’s index, with one exception: when query is a URL and exclude_domains is empty, Keenable fetches that page instead, and can read it live. Keep URLs out of search queries in a training environment, or send exclude_domains. Fetch reads a page live from its source in some cases, such as when Keenable has no stored copy of it. See Where pages come from. To stop fetch from reading live, send max_age_hours: -1 on every fetch your environment makes. Keenable then reads only its stored copy, runs prompt or schema over that copy, and doesn’t contact the page’s site. This request reads one page with -1 and a prompt:
You see the page title and the answer read from the stored copy. A page with no stored copy fails in its own entry with 404 and not_stored, and the other pages in the call still come back. Treat not_stored as a page the policy can’t read, the same as a dead link. Retrying returns the same error. The MCP tool fetch_page_content takes the same max_age_hours. Over MCP the model chooses the arguments, so set -1 in your environment’s tool wrapper rather than relying on the model to send it.

Turn off live reads for an organization

Keenable can turn off live reads for your whole organization. Every fetch made with that organization’s API keys then reads only the stored copy, whatever max_age_hours the request sends. A search whose query is a URL is fetched the same way. A page with no stored copy fails with the same not_stored error as -1. Use it when a security review needs the guarantee on Keenable’s side, not only in your environment’s code. To turn it on, email support@keenable.ai and name the organization. The setting covers every key in the organization. Ask for a separate organization for training runs, so evaluations and production apps on your main organization keep live reads.

Pin the web to a date

To make rollouts reproducible, use the Time Machine API. It searches and reads pages as Keenable captured them at or before the moment you give in as_of, so nothing published or edited later can appear. Time Machine never reads a page live. Search ranking can still change between runs, so save the URLs or responses a rollout used if it must replay exactly. It is in Early Access and must be turned on for your organization. See Historical research for a walkthrough.

Evaluate in the mode you train in

Fetch results can differ with and without live reads. A page Keenable stored long ago, or never stored, reads differently from the live page. Run your evaluation with the same settings your training runs will use, and compare both modes if you plan to use live reads in production. See Evaluate search APIs for how to compare providers fairly.

Move to production

In production, live reads are usually what you want. Leave max_age_hours out to get a stored copy when it can be used and a live read otherwise, or send 0 for a page that changes often. See Live fetch. Training runs send many calls in parallel. See High-volume research for concurrency and 429 handling, and Raise your limit for higher limits.