Interview Q&A · questions with model answers
Vector Databases Interview Questions
Part of the study plan for: Native AI Engineer
Ordered by how often they're asked. Most-asked answers are free to read in full; members see every answer and can rate their confidence on each.
-
Most asked Vector DB leaf: HNSW vs IVF indexes?
HNSW: graph ANN, strong recall/latency, higher memory.
-
Most asked Vector DB leaf: When is hybrid search necessary?
Exact IDs, rare tokens, and code-combine BM25 with vectors and fuse scores (e.g., RRF).
-
Most asked Vector DB leaf: Cosine vs dot product-when does it matter?
If embeddings are L2-normalized, cosine and dot align.
-
Vector DB leaf: Dimensionality vs quality/cost?
Higher dims can improve quality but raise storage/latency/cost.
-
Vector DB leaf: When to choose managed vs self-hosted vector DB?
Managed for speed/ops; self-host for cost control, data residency, or custom indexing.
-
When would you use hybrid search (BM25 + vectors) instead of pure vector search?
Pure vector search can miss exact identifiers, rare terms, error codes, and precise keywords.