SKILLUMEN
Try for free
Interview Questions  ›   The fundamentals

Embeddings

6 interview questions you should be able to answer.
3 worked answers   •   3 practice questions   •   Foundations
Meaning as points.
Close = similar.
  Math on ideas.↘
Updated Sep 2026
01 CORE
1 / 6

What is an embedding, and why is a raw token ID not enough?

Think about your answer before revealing.
Give it a try!
Interview answer
◷  ~ 25 seconds

An embedding replaces a token's ID with a learned dense vector, a long list of numbers, say 384 or 4096 of them. A raw ID like 4127 is just a name-tag: it carries no meaning and 893 isn't "less than" 4127 in any useful sense.

The embedding packs meaning into the numbers themselves, arranged so similar meanings sit close together. That's what lets the model do math on ideas instead of matching exact spellings.

THE MAP OF MEANING cat dog puppy close = similar meaning car far away
What the interviewer is testing
⌗
IDjust a name-tag
⇢
Vectormeaning in numbers
◎
Closenesssimilar meaning
Follow-up they may ask
02 MECHANISM
2 / 6

What does 'similar meanings sit close together' actually mean,
and how do you measure it?

Think about your answer before revealing.
Interview answer
◷  ~ 25 seconds

It means the vectors are placed so that words used in similar ways end up as nearby points: "cat", "dog" and "puppy" cluster together, far from "car". You measure how close with cosine similarity, which roughly asks whether the two vectors point the same direction.

A score near 1 means very similar, and a score near 0 means unrelated. This is why a model can treat synonyms almost interchangeably without ever being told they're synonyms.

cat dog car same way: ≈ 1 wide angle: ≈ 0 cosine similarity
03 DEEPER
3 / 6

Explain the king − man + woman ≈ queen example.

Think about your answer before revealing.
Interview answer
◷  ~ 30 seconds

Directions in the space are meaningful, not just distances. The arrow from "man" to "woman" turns out to be about the same as the arrow from "king" to "queen", a consistent gender direction.

So if you take the vector for king, subtract man and add woman, you walk along that direction and land almost exactly on queen.

It shows relationships are encoded as parallel directions, which is why models generalize instead of memorizing each word in isolation.

man woman king queen the same direction, twice
More questions
04How does a token's embedding change as it passes through the model?
05What would break if a model only memorized exact words instead of using embeddings?
06How do embeddings power semantic search and RAG?
These run inside Skillumen with graded answers.

This is a small sample.
600+ interview questions live inside Skillumen.

Every concept card carries its own interview questions, graded as you answer.
Free to start.

See more interview questions