← All updates Databricks Update One-Pager Navy version
databricks Platform · Updated Aug 7, 2026

ai_search function (Beta)

The ai search() SQL function retrieves information from one or more AI Search indexes configured as knowledge sources.

What it does

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.

Why it matters

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.

Key capabilities
'version': The function version to
'version': The function version to use.
'generateanswer': 'true' (default) or 'false'
'generateanswer': 'true' (default) or 'false'. When 'true', the function synthesizes a grounded natural-language answer from the…
Architecture
Databricks Platform → Platform
In short

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 ↗
Key takeaway
The ai search() SQL function retrieves information from one or more AI Search indexes configured as knowledge sources.
2026-08-07-ai-search-function-beta Generated by the Databricks Updates Agent · browse all updates