Glossary term
What is an embedding?
Lists of numbers that capture what a text means, used for search.
Definition
An embedding is a list of numbers that represents the meaning of a piece of text, so that texts with similar meaning get similar numbers. An embedding model turns documents and queries into these vectors, which a vector database can then compare to find the closest matches.
Why it matters
Embeddings power semantic search, recommendations, clustering and the retrieval step of RAG. They find text by meaning, not only by matching words.
How it works on OceanToken
On OceanToken, embedding models answer on /v1/embeddings in the OpenAI format, with the same key and balance as chat models; rerankers answer on /v1/rerank. Compare embedding models on the model list.