Design Natural Language Search Across Camera Thumbnails

Last updated: November 29, 2026

Quick Overview

Design a system where a customer types a query like 'person in a red jacket near the loading dock yesterday afternoon' and gets matching moments across thousands of cameras, using the thumbnails and metadata cameras already upload.

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

0

0

0 solved


Design a system where a customer types a query like 'person in a red jacket near the loading dock yesterday afternoon' and gets matching moments across thousands of cameras, using the thumbnails and metadata cameras already upload.

Verkada uploads small thumbnails and analytics metadata from every camera every few seconds, and AI-powered search over that data is a core product investment. The interviewer probes embedding choice, ingestion at fleet scale, per-org isolation in the vector index, and how relevance is measured.

What the Interviewer Expects
  • Uses a joint image-text embedding model (CLIP style) and embeds thumbnails or detected crops at ingestion
  • Combines vector similarity with structured filters (org, site, camera, time)
  • Designs the ingestion pipeline with a queue partitioned by camera and batched GPU inference
  • Partitions the vector index by org and time to bound search cost and enforce tenancy
  • Defines offline and online relevance metrics
  • Addresses privacy, retention deletion, and model upgrades requiring re-embedding
Key Topics to Cover
CLIP embeddings
vector search
hybrid filtering
Kafka ingestion
multi-tenant indexes
relevance evaluation
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 do you re-embed a year of data when you ship a better model?
  • The query says 'red jacket' but thumbnails are 320 px wide. How do you improve recall on small objects?
  • How would you handle queries in Spanish?
  • A customer deletes a camera. How do you guarantee its embeddings are gone?
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

Search over the org's own cameras only, results in under a second for a day range and a few seconds for a month, returning camera, timestamp and thumbnail with a jump-to-video link. Scale: millions of...

High-Level Design

Ingestion: camera thumbnails land in object storage; a message with org, camera, timestamp and object key goes to Kafka partitioned by camera id. GPU workers consume in batches, run the image encoder ...


Submit Your Answer
Markdown supported

Related Questions