Problem
Airtable customers keep data in "bases", and the product holds millions of bases owned by different customers. The AI chat (Omni) and linked-record suggestions need semantic retrieval over them. A base can hold half a million rows, so sending all rows to an LLM is infeasible. The retrieval layer has to answer within 500 ms at p99, absorb a write-heavy load, isolate tenants and keep customer data inside Airtable's own infrastructure.
Example from the article: a user asks "What are customers saying about battery life lately?" of a base with half a million rows, and the system retrieves the relevant rows before calling the LLM.
Solution in brief
Airtable runs self-hosted Milvus with one partition per base. To avoid the slowdown seen at 100k partitions in one collection, it caps each cluster at 400 collections of up to 1,000 partitions and adds clusters as customers grow. HNSW indexes give the best recall, and cold partitions are offloaded from memory.
Questions this case answers
- How to run low-latency similarity search over millions of independent, strongly isolated datasets on self-hosted infrastructure
- How to keep a vector index consistent with frequently edited source records and rebuild it after a failure
- How to serve low-latency semantic search over millions of small, isolated customer datasets?
- How to choose a data partitioning scheme in a vector database for multi-tenant workloads?
Tools and methods
- Milvus — self-hosted distributed vector database holding the row embeddings
- Milvus operator (Kubernetes CRD) — declarative deployment and upgrades of clusters
- HNSW — vector index chosen for recall
- Apache Kafka — log and messaging backbone inside the Milvus cluster
- Retrieval-augmented generation (RAG) — retrieved rows are given to the LLM as context
Google or a one-time email code. No password.