mistralM

Docs

sideBar

Embeddings

What embeddings are and how the Mistral Embeddings API turns text and code into vectors for retrieval, clustering and classification.

Embeddings are vector representations of text that capture the semantic meaning of paragraphs through their position in a high-dimensional vector space. Mistral's Embeddings API provides embeddings for text and code, which you can use for natural language processing (NLP) tasks.

embedding_graph

Embeddings can power retrieval systems for retrieval-augmented generation, clustering for unorganized data, document classification, semantic code search, code analytics, duplicate detection, and search across raw text or code sources.

If you want a managed feature that ingests, vectorizes, and searches documents for you, use Libraries. If you want to search connected sources such as Google Drive or SharePoint, use Connectors.

Services

We provide two embedding models:

Text embeddings
illustrationCubes

Text embeddings

Embed a wide variety of text with a general-purpose embedding model.

Code embeddings
illustrationStar

Code embeddings

Embed code databases and repositories for code retrieval.

We cover the fundamentals of the embeddings API, including how to measure the distance between text embeddings, and explore two main use cases: clustering and classification.