Vector Databases — Final Exam
15 questions · pass mark 80% · 20 minute limit. The timer auto-submits at zero.
- Question 1easy
Why does the plain Python-list index stop working as your corpus grows large?
- Question 2easy
What does approximate nearest-neighbor (ANN) search trade for its speedup?
- Question 3medium
recall@k in ANN search measures:
- Question 4medium
For general text-embedding retrieval, which similarity metric is the safe default?
- Question 5hard
If all vectors are normalized to unit length, how do cosine, dot product, and L2 rank results?
- Question 6medium
In pgvector, what does the `<=>` operator compute?
- Question 7medium
Why use %s parameterized placeholders instead of building the SQL string with the values?
- Question 8medium
What is the advantage of filtering by metadata inside the vector DB (a WHERE clause) versus filtering in Python after retrieval?
- Question 9hard
Why must you specifically check recall on FILTERED ANN queries?
- Question 10hard
In pgvector's HNSW index, which parameter is the per-query recall/latency knob?
- Question 11hard
Which statements about HNSW vs. IVF indexes are correct? (Select all that apply)
Select all that apply.
- Question 12medium
A team already runs Postgres and has ~300k chunks. What is the pragmatic default vector store?
- Question 13medium
On Azure, which store is the default for enterprise RAG needing hybrid (keyword + vector) search and semantic reranking?
- Question 14medium
Name the default graph-based ANN index (acronym) exposed by pgvector and most vector DBs.
- Question 15hard
cosine distance equals 1 minus what quantity? (two words)