AI Search: the search primitive for your agents

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
- Introducing Clef-omni with full multimodality, plus a faster Clef and a cheaper Clef-flash
- Introducing Web Search API via AI Gateway
- Introducing Clef: our open-source decision models, and new RL fine-tuning platform
- One year later: Sovereign AI and the fight for choice
- AI Search is now generally available