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.
-
Vector DB leaf: Re-ranking after ANN retrieval?
ANN returns candidates; cross-encoder/LLM reranks for precision before prompting.
-
Vector DB leaf: Multi-tenancy strategies?
Shared index + hard filters, or separate indexes/collections per tenant for stronger isolation/compliance.
-
Vector DB leaf: Sparse + dense vector fusion?
Learned sparse (SPLADE) or BM25 fused with dense via RRF/weighted sums; tune on labeled queries.
-
Vector DB leaf: Explain product quantization briefly.
Compress vectors into codebooks to reduce memory with some recall loss-common at billion-scale indexes.
-
Vector DB leaf: Cold start for a new corpus?
Batch embed, build index offline, smoke-test recall, then cut traffic.
-
Vector DB leaf: Handling near-duplicate documents?
Dedup by content hash before embed; clustering to collapse duplicates; prefer canonical docs in citations.