Design Semantic Search Over Records Across Millions of Bases

Last updated: November 29, 2026

Quick Overview

Design a system that lets users search their base records by meaning (for example 'customers who complained about shipping') and that powers retrieval for AI features, keeping embeddings fresh as records change while respecting per-base permissions.

Airtable
ML System Design
Machine Learning Engineer
Airtable
November 29, 2026
Machine Learning Engineer
System Design Round
ML System Design
Hard

0

0

0 solved


Design a system that lets users search their base records by meaning (for example 'customers who complained about shipping') and that powers retrieval for AI features, keeping embeddings fresh as records change while respecting per-base permissions.

Airtable has invested in vector infrastructure so AI features can retrieve relevant records from a base. The interviewer wants you to balance freshness, cost and isolation across a huge number of small tenants, and to show you understand how retrieval quality is measured.

What the Interviewer Expects
  • Decide what text to embed per record and how to chunk long fields
  • Build an asynchronous embedding pipeline driven by record changes
  • Choose a vector index layout that fits many small tenants
  • Combine vector and keyword retrieval and apply permission filters
  • Define offline and online quality metrics
Key Topics to Cover
Embeddings
Vector databases
Multi-tenancy
Hybrid retrieval
Eventual consistency
How to Approach This
  1. Start by mapping the business objective to a concrete ML objective and metric.
  2. Cover the full pipeline: data collection, feature engineering, model selection, training, serving.
  3. Discuss online vs offline evaluation. Plan an A/B test to validate real-world impact.
  4. Address the serving latency budget and whether batch or real-time inference is needed.
  5. Think about the data flywheel: how user feedback improves the model over time.
Possible Follow-up Questions
  • How would you avoid re-embedding a record when only an irrelevant field changed?
  • What happens to costs when you upgrade the embedding model?
  • How would you handle a base where 90% of records are near-duplicates?
  • How do you search across a user's many bases at once?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Practice ML System Design Problems
Sample Answer
Requirements

Query a base by natural language, return ranked records in under 300 ms at p95. New and edited records searchable within a minute (eventual consistency is acceptable). Tens of millions of bases, most ...

High-Level Design

Per record, build a document from its primary field and the text-like fields the base owner marks searchable, prefixed with field names. Record changes from the base's transaction log go into a queue;...


Submit Your Answer
Markdown supported

Related Questions