

Part 1: Vector - The Soul of Artificial Intelligence (Series From 0 to Transformer)
📒 Part 1: Vector - The Soul of Artificial Intelligence (Series From 0 to Transformer)
Have you ever wondered how ChatGPT can "understand" what you say, even though it's just a cold machine?
Why Vectors?
Welcome to the first installment in the series "From 0 to Transformer". Our goal is crystal clear: decode all the math behind today's most famous AI models. And the starting point is none other than: Vectors.
Why start here? Because in the world of AI, computers don't "see" images or "read" letters like human eyes do. Every piece of data, from a chatup line to a selfie to a song, must first be "digitized" into vectors. Without understanding vectors, you'll only ever see the surface of AI. You'll never touch its real brain.
🏹 From "Arrows" to "Lists of Numbers"
Back in high school, we learned that a vector is an arrow in space with direction and length. On an xy-axis, an arrow pointing 3 units right and 2 units up has its tip at point (3, 2).
But in AI, we need a practical, real-world view. A vector is simply an ordered list of numbers. The arrow is just how we visualize it. The real nature of it is the sequence [3, 2].
With 2 numbers, you have a 2D space (a plane). With 3 numbers, you have 3D space. But here's what you should know: in real AI models, people use thousands, even tens of thousands of numbers for a single vector. At that scale you can't draw it on paper, but all the math still works exactly the same. This is the multidimensional space where artificial intelligence truly lives and works.
3 Basic Operations You Must Remember
To master AI, you need to understand just 3 fundamental operations.
First is Vector Addition: we add corresponding components together. Geometrically, it's like linking features end-to-end to create a new, synthesized feature.
Second is Scalar Multiplication: multiplying a vector by a real number. This operation scales the impact of information up or down while keeping its direction the same.
And finally, most important, is Dot Product. This is considered the "heart" of the Attention mechanism in Transformer models. This operation returns a single number showing how similar two pieces of information are. If the dot product is large, the two are very similar or closely related. If it's zero, they're completely unrelated (perpendicular). If negative, they're in complete opposition.
The Magic Called Embedding
In models like GPT, each word (called a token) is represented by a vector with thousands of dimensions, called an Embedding. The magic lies here: words with similar meanings will have vectors sitting close together in number space.
For example, the vector for "cat" and "dog" sit very close because they're both pets. Meanwhile, the vector for "cat" and "car" sit incredibly far apart. Even more, math can capture the logic of language itself. A classic example everyone learning AI must know: if you take the vector for "king", subtract the quality "male", then add the quality "female", the result lands right next to the vector for "queen". That's how AI understands the world through cold numbers.
Key Takeaways From Today
Remember these 3 crucial points to prepare for the next lessons:
- Vector is a list of numbers, the only language AI understands.
- Dot product is the measure for AI to know what relates to what.
- Embedding helps computers grasp the meaning and emotion of language.
More articles

Why Japan Is Building Its Own AI Instead of Just Using ChatGPT or Gemini

Use AI to Write Trending Captions Without Losing Your Brand Voice

Use Claude to Write a Freelancer Job Post on Upwork and Fiverr in 15 Minutes

AI Builds Software From a Raw Idea: Inside Cole Medin's "AI Software Factory"

What Is PII Redaction in AI? How Chatbots Mask Your Personal Data

Use Claude to Check and Fix Citations in Your Essay or Report in 15 Minutes