vector search
AI, ML & GenAI interview questions tagged vector search, across every topic.
9 questions · 3 unlocked for you
Concepts behind "vector search"
The curriculum that explains the ideas these questions test.
Foundational
kNN and the Curse of Dimensionalityk-nearest-neighbors is a lazy, instance-based learner that labels a point by majority vote of its closest training examples under some distance metric. Interviews probe it because its failure mode, distance concentration in high dimensions, shows why naive nearest-neighbor search breaks down and why production systems rely on approximate nearest-neighbor indexes instead.📊 Evaluation & ML Foundations
Core
Choosing and Adapting Embedding ModelsChoosing an embedding model is a call about retrieval quality, cost, and operational risk on your own data, not about which model leads a public leaderboard. The hard parts are benchmarking against your own queries, weighing dimensionality against storage and latency, judging whether to fine-tune for your domain, and preparing for the re-embedding migration whenever the model changes. AI, ML, and GenAI interviews test it because candidates reach for the leaderboard winner and overlook the drift and migration costs that bite later.🤖 Retrieval & AgentsSign in
Core
Late-Interaction Retrieval (ColBERT)Late-interaction retrieval stores each document as one vector per token instead of a single pooled vector, then scores a query by adding up the best token-to-token matches (MaxSim). It falls between cheap single-vector bi-encoders and expensive cross-encoder rerankers: more precise than a single vector, far cheaper than running a full reranker on every candidate, yet with a heavy storage cost. AI, ML, and GenAI interviews test it because knowing when this middle tier earns its disk footprint shows real retrieval-architecture judgment.🤖 Retrieval & AgentsSign in
Core
Hybrid Search and Reciprocal Rank FusionVector search alone grasps meaning but drops exact terms (codes, names, SKUs); keyword search (BM25) alone locks onto exact terms yet ignores synonyms and intent. Hybrid search runs the two together and fuses their outputs, with Reciprocal Rank Fusion offering an easy way to merge rankings without reconciling incomparable scores. Applied-AI interviews cover it because production retrieval is nearly always hybrid, so understanding why (and how to fuse) shows genuine RAG experience.🤖 Retrieval & AgentsSign in
