Every AI agent, from coding assistants to customer support bots, fundamentally relies on search to access the right information at the right time. Building this capability from scratch involves complex infrastructure like vector indexes and data pipelines. Cloudflare is simplifying this with its new Cloudflare AI Search, a managed primitive designed to streamline how developers equip their agents with search functionality.
Previously known as AutoRAG, the service now offers a plug-and-play experience. Developers can dynamically create search instances, ingest data, and query them directly from Cloudflare Workers or the Agents SDK.
Hybrid Search and Built-in Indexing
A key feature is hybrid search, which combines semantic (vector) search with traditional keyword matching (BM25) in a single query. This ensures both conceptual understanding and precise term matching, addressing limitations of each approach individually.
Cloudflare AI Search also eliminates the need for separate infrastructure. New instances include built-in storage and vector indexes, powered by Cloudflare's R2 and Vectorize. Data can be uploaded directly via API, and indexing occurs automatically.
The new ai_search_namespaces binding allows for runtime creation and deletion of search instances. This enables developers to spin up unique search contexts per agent, per customer, or per language without requiring redeployments.
