6100: Vector Embeddings - Prerequisites¶
What You Should Know Before Starting¶
Essential Concepts¶
1. Information Retrieval
- Traditional keyword search
- Why keyword search fails for semantic meaning
- Need for similarity-based search
2. Vector Embeddings
- Text/images → vectors
- Similarity = cosine distance
- High-dimensional vector spaces
3. Database Basics
- What databases do (store, retrieve, query)
- Indexing for speed
- Tradeoffs: space vs time
Quick Refresher¶
Semantic Search vs Keyword Search¶
Keyword Search:
query = "machine learning"
matches = ["machine learning", "learning machines"] # Fails!
Semantic Search:
query = "machine learning"
matches = ["machine learning", "ML algorithms", # Works!
"neural networks", "AI systems"]
Vector Similarity¶
Similarity = cos(angle between vectors)
cos_sim(v1, v2) = (v1 · v2) / (||v1|| × ||v2||)
Values: -1 (opposite) to 1 (identical)
Semantic similarity ≈ 0.7-0.9
Learning Resources¶
If you're new to these concepts:
-
Information Retrieval (30 min):
- Introduction to Information Retrieval
- Chapters 1-3
-
Vector Embeddings (45 min):
- Vector Similarity Search Explained
- Understand embedding spaces
-
Database Indexing (20 min):
- Database Indexing Explained
- Why indexes speed up queries
What You'll Learn¶
After completing 6101-HNSW-Indexing.md, you'll understand:
- ✅ HNSW (Hierarchical Navigable Small World) algorithm
- ✅ Approximate nearest neighbor search
- ✅ Vector database architecture
- ✅ Performance tuning
- ✅ When to use vector databases
Readiness Check¶
Answer these questions:
- Why do we convert text to vectors?
- What's cosine similarity?
- Why don't we use exact search for vectors?
If unsure: Review the quick refresher above.
Ready to start? → 6101-HNSW-Indexing.md
Estimated Time to Complete: 2-3 hours
Difficulty: ⭐⭐⭐ Advanced