Embeddings
Use embedding models to represent text as vectors, measure similarity, and choose a model for a retrieval task with evidence.
3 objectives 5 steps about 95 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
- Generate embeddings for a corpus in batches and store them with their source IDs and model version.
- Compute cosine similarity and explain how normalization and dimensionality affect results.
- Compare two embedding models on a small labeled query set and justify the choice by quality, cost and latency.
Lesson plan
5 steps, about 95 min · 4 of 4 lessons available so far
- From Text to Vectors, and What Vectors Are For Concept · 15 min
- Similarity by Hand and in NumPy Worked example · 20 min
- Lab: Embed a Corpus in Batches Lab · 25 min
- Comparing Two Embedding Models Lab · 25 min
- Check: Similarity and Model Choice Knowledge check · 6 questions
Practise it
Embed 500 short documents with two models (one hosted, one local), store vectors with document IDs and model names, and report which model ranks the labeled relevant document first more often on 20 queries, with cost and latency per 1,000 documents.
Build it from scratch
Practice builds that exercise this skill by re-creating a real technology.
- 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.