Cloudflare

AI Search: the search primitive for your agents

Apr 16, 2026Gabriel Massadas, Miguel Cardoso, Anni Wang
AI Search: the search primitive for your agents
SummaryAI, from the source post

This post introduces AI Search, a new primitive for agents that provides plug-and-play search capabilities. Key technical contributions include: 1. Hybrid search combining vector and BM25 keyword matching with parallel execution and result fusion. 2. Built-in storage and indexing for new instances, eliminating the need for external setup. 3. Dynamic instance creation and management via the `ai_search_namespaces` binding in Workers, allowing for per-agent or per-customer instances. 4. Support for metadata attachment to documents for query-time ranking. 5. The ability to query across multiple AI Search instances simultaneously. The post also details the implementation of a customer support agent using AI Search and the Agents SDK, showcasing dynamic instance creation for customer history and the use of `uploadAndPoll` for immediate searchability of saved resolutions.

More from the Artificial Intelligence Integration & Impact trail