Skip to content

Embedding Pooling

A way of combining the embeddings of individual tokens into a single vector that represents the whole text.

Main Types

Pooling How it works
CLS The vector of the special [CLS] token is taken
Mean The vectors of all tokens are averaged
Max The maximum is taken along each dimension

Why It Matters

An embedding model produces vectors for every token. For search you need one vector per fragment — and the choice of pooling affects the quality.

See Also

← All Terms