Back to Home
Embeddings & Search
Vector Arithmetic
Vectors can be added and subtracted. In AI, this can help represent relationships between concepts.
This is a simplified educational demo. Real AI embedding arithmetic uses high-dimensional vectors trained by machine learning.
Interactive Playground
Relationship Builder
Word A
−
Minus
+
Plus
≈
Expected (auto)
king
−
man
+
woman
≈
?
Quick Presets
Vocabulary
Fixed word list each with its learning vector.
Live Visualization
All Matches
🏆
Statistics
3
Vector Size
12
Vocabulary
Calc Time
Closest Match
Highest Similarity
The Famous Analogy
king − man + woman ≈ queen
vector arithmetic on word meanings
➖
king − man removes the "male" concept, leaving "royalty".
➕
+ woman adds the "female" concept back.
🎯
The nearest word to the result vector is "queen".
🎓
Tips
2 tips
The king−man+woman=queen result wasn't programmed, it emerged automatically from seeing millions of sentences during training.
This experiment made word vectors famous in 2013 (Word2Vec paper). It showed AI models were capturing real semantic relationships.
💡
Key Takeaway
Vectors can capture relationships, not just individual objects. By combining vectors, AI models can represent new ideas and compare them with existing concepts.