01
A place in space
An embedding turns an input into coordinates. The useful part is what those coordinates let us compare.
From a sentence to a vector
A help center contains a passage titled “Charging.” A visitor asks, “My device will not turn on.” The wording differs, but the passage might still help. How could a search system compare more than the words they share?
One approach gives each text a numerical representation: an embedding. A vector is an ordered list of numbers. An encoder is the function that produces that vector from an input. Text-retrieval models can encode questions and passages this way. Dense Passage Retrieval is one concrete example.
Let be an input text, its encoder, and its embedding. If the encoder produces coordinates, we write:
Here means “a list of real numbers.” Fixed-length means that this encoder's representation has that coordinate count; it does not mean every input sentence has the same number of words.
Read the list as a place
We will use a small help center throughout. For the battery passage B, invent the vector . These are hand-authored 2D toy coordinates, not values produced by an actual text model.
Hand-authored 2D example. The coordinate list and the point are two views of the same numbers; x₁ and x₂ are not named semantic features.
The first coordinate moves 0.8 units along the first axis; the second moves 0.2 units along the second. You can draw the result as a point or as an arrow from the origin to that point. Both depict the same vector.
The axes are coordinate 1 and coordinate 2—not “battery” and “display.” A dimension is not automatically a named human concept. Indeed, rotating an entire vector space together can change its coordinates without changing its distances or dot products.
A representation is not an ID
A document ID tells us which record to fetch. Its numeric difference from another ID need not tell us anything useful. Embedding coordinates instead participate in a comparison rule: we can ask about their directions, lengths, or distances.
That is the promise, not yet the explanation. Our invented coordinates make geometry easy to inspect. In a learned system, what gives the coordinates a useful arrangement?