Vector databases
Words made simple
A few useful meanings before you read the explanation.
- Vector
- An ordered list of numbers. An embedding is a vector used to represent content for tasks such as similarity search.
- Retrieval
- Finding and fetching information that is useful for the current question.
- Latency
- How long a request takes to return a result. Lower latency usually means a shorter wait for the user.
More words from this lesson
- Metadata
- Extra information describing a record, such as its owner, date, policy version or document type.
- Dependency
- A library or package that your application relies on. Compatible versions help the application run as expected.
Beginner — Why use a vector index?
- It makes repeated similarity queries efficient over a growing corpus.
- Small datasets can use exact comparison, but larger collections need indexing and careful metadata filtering for relevance and eligibility.
Intermediate — Exact versus approximate search?
- Exact search examines eligible vectors thoroughly; approximate search trades some nearest-neighbor recall for speed and scale.
- I benchmark with realistic filters, corpus sizes, and query patterns rather than assuming ANN is always required.
Senior — Dedicated vector store or existing database?
- I first test the existing database's vector capability against filtered recall, latency, lifecycle, security, and cost needs.
- A dedicated store is justified when it solves measured limitations enough to offset another operational dependency.
Scenario — Unauthorized documents are removed after top-k, leaving no results. What is wrong?
- The retrieval process selected candidates from an ineligible corpus.
- I move supported eligibility filters into retrieval and recheck object permissions before evidence reaches the model.
- Post-filtering alone can both underfill results and expose data upstream.
Can you explain it without the notes?
Vector databases
Use your own words. Explain an example and one limitation before checking the explanation.
Check your explanation
Beginner — Why use a vector index?
Turn this concept into a clear answer.
Practice this conceptAdapted from 13_AI.MD · “29.5 Vector databases”. Examples are study fragments; framework behavior can depend on your version.