Intermediate level · Module 8 of 10 · 10 guided hours
Vector Databases and Semantic Retrieval
Storing and querying embeddings with Chroma: collections, metadata filters, persistence, hybrid search and reranking, and when a vector database is worth using.
Learning objectives
- Store and query embeddings in Chroma
- Filter and rerank retrieval results
- Judge when a vector database is needed
Topics
- why vector databases
- Chroma collections and persistence
- metadata filters
- hybrid retrieval
- reranking
- scaling and alternatives
Lessons
-
Lesson 1 Chroma Collections and Persistence
Learners store chunks, embeddings and metadata in a persistent local Chroma database and query it.
PersistentClientcollectionadd with ids, documents, metadatasquery with n_resultsrebuild script
-
Lesson 2 Metadata Filters and Hybrid Retrieval
Learners filter retrieval by metadata (document type, date, access level) and combine vector and keyword scores.
where filtersaccess-level filteringdate filtershybrid scoreweighting
-
Lesson 3 Reranking and When to Use a Vector Database
Learners rerank retrieved candidates with a small cross-encoder or LLM relevance check, and decide when a vector database is necessary at all.
rerankingcross-encodercandidate poolprecision at ksimplicity
Practical activity
Complete the project's retrieval layer in Chroma with persistence, access and type filters, hybrid retrieval, reranking and a storage recommendation.
Expected outcomes
- Practical vector database skills
- Measured retrieval improvements
Assessment
Retrieval implementation (70%) and evaluation note (30%).
Taught live by an instructor — online or in person. Free course lessons are for self-study and do not lead to a certificate — see registration options.