Retrieval for agents and analytics keeps failing the same way: embeddings drift out of sync with the warehouse that owns truth. Databricks’ answer is to make similarity a join.
NEAREST BY is a new SQL join in Databricks Runtime for batch vector search — for every query row, find the *k* nearest rows by similarity or distance, exact or approximate. A fused Photon operator and optional IVF index (stored as an ordinary liquid-clustered Delta table) keep scoring close to hardware limits while pruning unread partitions. The architectural claim matters more than the syntax: one copy of the data, embeddings in Delta, no separate vector store to operate, sync, or pay for twice.
What data and AI platform leaders should change:
- Prefer lakehouse-native ANN for batch enrichment and agent context prep over shadow vector DBs when governance already lives in the catalog
- Keep indexes transactional and incremental so refreshes inherit the same ACID and access model as tables
- Measure retrieval cost as SQL workload cost — not a separate SaaS line item that security cannot see
When agents retrieve, they inherit whatever trust boundary the retrieval path has. Putting nearest-neighbor search inside that boundary is how enterprises stop building a second, weaker data plane for AI.