Vector Search Foundations
Index embeddings and run nearest-neighbor search with metadata filters, understanding the trade-offs between exact, approximate and hybrid search.
3 objectives 6 steps about 110 min
Learn it step by step
Read the lessons in order, try the practice checks, then prove the skill with the knowledge check.
This skill page is a public outline. Its lessons and knowledge check appear here as subject-matter experts approve them.
Learning objectives
- Implement exact k-nearest-neighbor search and use it as the baseline for an approximate index.
- Configure an approximate index (for example HNSW) and measure its recall against latency.
- Combine vector search with metadata filters and keyword search using rank fusion (hybrid retrieval).
Lesson plan
6 steps, about 110 min · 5 of 5 lessons available so far
- Nearest-Neighbor Search Explained Concept · 15 min
- Brute-Force kNN as a Baseline Worked example · 20 min
- Approximate Indexes and Their Knobs Concept · 15 min
- Lab: HNSW Recall Versus Latency Lab · 25 min
- Filters and Hybrid Search with Rank Fusion Lab · 25 min
- Check: Pick an Index for a Workload Knowledge check · 6 questions
Practise it
Index 10,000 embeddings in an approximate index (pgvector, FAISS or a vector database), measure recall@10 against brute-force results at three index settings, and add a metadata filter and BM25 rank fusion for one query type.
Build it from scratch
Practice builds that exercise this skill by re-creating a real technology.
- Build your own Search EngineIntermediate · 8–16 h
- Build your own RAG PipelineIntermediate · 8–16 h
References
Hard prerequisites
Unlocks
On these roadmaps
Progress and evidence for this skill are shared across all of them.