The ai search() SQL function retrieves information from one or more AI Search indexes configured as knowledge sources.
The ai search() SQL function retrieves information from one or more AI Search indexes configured as knowledge sources. Given a natural language query, the function generates optimized search queries, retrieves and deduplicates results across sources, reranks them by relevance, and returns the most relevant documents. By default, it also synthesizes a grounded natural language answer over those documents.
Use ai search to enrich operational data with relevant context at scale, build batch retrieval augmented generation (RAG) pipelines, or expose retrieval as a tool to a compound AI system.
The ai search() SQL function retrieves information from one or more AI Search indexes configured as knowledge sources. Given a natural language query, the function generates optimized search queries, retrieves and deduplicates results across sources, reranks…
Read the full documentation ↗