From data to vectors
Lesson notes
How a document becomes a point in space: pick properties that matter (length, topic, tone…), score each one, and the scores become coordinates. Two hand-picked axes are enough to see clusters form — fiction here, non-fiction there — and the leap to real systems is letting a trained neural network choose hundreds of axes for you instead of two.
Key ideas
- Feature axes → coordinates → a document is a point
- Similar objects land near each other; distance ≈ dissimilarity
- Embedding models learn the axes instead of humans picking them
- BERT-style encoders as the workhorse for text embeddings