Embedding
Domain: LLM Concepts
π― Motivation
To do math on text, we convert words/tokens into lists of numbers (vectors). These embeddings capture meaning - similar words get similar numbers.
π Concrete Example
King might be [0.9, 0.7, 0.3, β¦], Queen might be [0.85, 0.68, 0.32, β¦] - very similar. Banana might be [0.1, 0.2, 0.9, β¦] - very different. The numbers capture meaning.
π Analogy
GPS coordinates for words - βHong Kongβ and Kowloon have nearby coordinates (geographically close). βHong Kongβ and Paris have far-apart coordinates. Embeddings are like GPS for meaning.