Vector Databases — Practice quiz

Untimed. Answers are graded when you submit, with explanations and spaced-repetition scheduling.

  1. Question 1easy

    Why does the plain Python-list index stop working as your corpus grows large?

  2. Question 2easy

    What does approximate nearest-neighbor (ANN) search trade for its speedup?

  3. Question 3medium

    recall@k in ANN search measures:

  4. Question 4medium

    For general text-embedding retrieval, which similarity metric is the safe default?

  5. Question 5hard

    If all vectors are normalized to unit length, how do cosine, dot product, and L2 rank results?

  6. Question 6medium

    In pgvector, what does the `<=>` operator compute?

  7. Question 7medium

    Why use %s parameterized placeholders instead of building the SQL string with the values?

  8. Question 8medium

    What is the advantage of filtering by metadata inside the vector DB (a WHERE clause) versus filtering in Python after retrieval?

  9. Question 9hard

    Why must you specifically check recall on FILTERED ANN queries?

  10. Question 10hard

    In pgvector's HNSW index, which parameter is the per-query recall/latency knob?

  11. Question 11hard

    Which statements about HNSW vs. IVF indexes are correct? (Select all that apply)

    Select all that apply.

  12. Question 12medium

    A team already runs Postgres and has ~300k chunks. What is the pragmatic default vector store?

  13. Question 13medium

    On Azure, which store is the default for enterprise RAG needing hybrid (keyword + vector) search and semantic reranking?

  14. Question 14medium

    Name the default graph-based ANN index (acronym) exposed by pgvector and most vector DBs.

  15. Question 15hard

    cosine distance equals 1 minus what quantity? (two words)

0 / 15 answered