An embedding model assigns a numeric vector to a sentence or document. Similar inputs often lie near one another in that space, enabling retrieval and classification.
The demo compresses high-dimensional vectors into a two-dimensional illustration. Proximity does not guarantee equivalent meaning, so evaluate retrieval on real data.
When to use
Use embeddings to search or group sentences and documents by semantic similarity.