An embedding is a dense vector (for example 384, 768 or 1,536 numbers) produced by a neural network so that texts with similar meaning land close together in vector space.
In retrieval, documents (chunks) are embedded once and stored; at query time the query is embedded with the same model, and the nearest vectors by a similarity metric are returned.
This matches meaning rather than exact words, so "how do I return an item" can find a passage about refunds.
Embeddings are also used for clustering, deduplication, classification, recommendations and anomaly detection.
Loading…