RAG Foundations: Ingestion & Indexing: sections and modules
Embeddings & Model Selection
Explain dense embeddings, dimensions and cosine / dot-product / Euclidean similarity.
- Lessons
- 7 lessons
- By
- Sourav Banerjee
- Prerequisites
- None
Lessons
Start modulePractise and Check
- Deliverable
- Embedding shoot-out: compare one hosted and two open-source models on a 30-question golden set and pick one, writing down the cost and latency per 1,000 chunks.
- Assessment
- Answer the five Interview questions without notes, then run the lab.
- Interview probe
- Larkspur's support assistant was fine on Friday. On Monday every answer is vague, and the logged top-1 similarity for golden questions has fallen from its usual range to near zero. Nobody touched the prompt. What do you check first?
- Common mistakes
- Shipping 64 dimensions because recall@1 is perfect on six queries
- Scoring by dot product with
HuggingFaceEmbeddingsleft unnormalised - Sharing the cache's default empty namespace across two embedding models
Your Progress
Saved in this browser when you leave the box.