DatabricksZhou Sun, Jinjing Zhou, Keming Yang, Usamoi Cui, Pranav AuroraAnnouncement
Lakebase Search: State-of-the-art full text and vector search for Postgres
Summary
Traditional OLTP systems like Postgres face challenges meeting the low-latency, high-accuracy search demands of AI agents, often requiring standalone search engines with ETL pipelines. Lakebase introduces lakebase_vector and lakebase_text, two extensions that bring scalable approximate nearest neighbor search and BM25 full-text search directly into Lakebase Postgres. lakebase_vector overcomes pgvector’s memory-bound HNSW index by using hierarchical IVF clustering and binary quantization, achieving 71-millisecond P99 latency at 97 percent recall on the 100-million-vector LAION benchmark. The extensions decouple storage from compute for pay-per-use scaling, enable fast parallel index builds, and support native hybrid search that fuses vector similarity with keyword relevance in a single SQL query. Early adopters like Conexiom reduced infrastructure costs by three times while achieving five times higher throughput, and the service is generally available on AWS and Azure.
Context
Traditional OLTP databases are not optimized for the low-latency, high-accuracy search workloads required by AI agents, often forcing developers to combine a standalone search engine with the primary database via ETL pipelines. pgvector, the standard vector search extension for Postgres, faces scalability bottlenecks: it requires the entire index to fit in RAM for fast queries, index builds are slow and block writes, and search quality trades off with performance because queries are not parallelized.
Approach / What changed
Lakebase Search consists of two Postgres extensions: lakebase_vector, which uses hierarchical IVF clustering and binary quantization (RaBitQ) to enable fast approximate neighbor search even when the index is on object storage, and lakebase_text, which provides native BM25 full-text search with term scoring using global inverse document frequency. The architecture decouples storage from compute, making indexes stateless and allowing scale-to-zero, parallel index builds, and hybrid search combining vector and BM25 in one SQL query.
Takeaways
lakebase_vector outperforms pgvector at scale by using hierarchical IVF clustering and binary quantization, avoiding memory-bound HNSW; it achieves 71ms P99 latency at 97% recall on 100M vectors.
Lakebase Search decouples storage from compute, enabling pay-per-use scaling, fast cold starts (1.13s P90 after scale-to-zero for 100M vectors), and index builds that can be offloaded to distributed engines like Spark.
Native hybrid search in Lakebase Postgres combines vector similarity with BM25 keyword relevance and standard SQL filters in a single query, allowing consolidation of operational and search workloads into one serverless database.
FAQ
How does lakebase_vector achieve fast search on object storage?
It uses hierarchical IVF clustering to group vectors into contiguous blocks that can be read sequentially, and binary quantization (RaBitQ) compresses each vector to about one bit per dimension. When cached, search uses the compact codes; when cold, only the promising blocks are fetched, avoiding random reads across the entire index.
What are the cost savings compared to pgvector at scale?
lakebase_vector is four times cheaper than a cloud Postgres vendor using pgvector on the VectorDBBench 100M benchmark, before accounting for autoscaling. Customers like Conexiom reduced database spend by three times while achieving five times higher throughput.
What is hybrid search in Lakebase Postgres?
Hybrid search combines lakebase_vector's vector similarity search with lakebase_text's BM25 full-text scoring in a single SQL query. Developers can also apply standard SQL filter predicates and join against live operational tables, replacing multi-system retrieval pipelines.
Source and freshness
- Source
- databricks.com
- Published
- Added to Yomu
Summaries are generated from the original by a language model. Check the original before relying on it.
Keep reading
Related reading
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
The best engineering reads, once a week
One useful email. Unsubscribe anytime.