Mistral

no

Original Documentation

Documentation Index#

Fetch the complete documentation index at: https://docs.trychroma.com/llms.txt Use this file to discover all available pages before exploring further.

Chroma provides a convenient wrapper around Mistral’s embedding API. This embedding function runs remotely on Mistral’s servers, and requires an API key. You can get an API key by signing up for an account at Mistral.

This embedding function relies on the mistralai python package, which you can install with pip install mistralai.

    from chromadb.utils.embedding_functions import MistralEmbeddingFunction
    import os

    os.environ["MISTRAL_API_KEY"] = "************"
    mistral_ef  = MistralEmbeddingFunction(model="mistral-embed")
    mistral_ef(input=["document1","document2"])
    ```
  <span class="tab-end"></span>

  <span class="tab-start" data-tab-title="TypeScript"></span>
```typescript
    // npm install @chroma-core/mistral

    import { MistralEmbeddingFunction } from "@chroma-core/mistral";

    const embedder = new MistralEmbeddingFunction({
        apiKey: "your-api-key", // Or set MISTRAL_API_KEY env var
        model: "mistral-embed",
    });
    ```
  <span class="tab-end"></span>
<span class="tab-group-end"></span>

You must pass in a `model` argument, which selects the Mistral embedding model to use. You can see the supported embedding types and models in Mistral's docs [here](https://docs.mistral.ai/capabilities/embeddings/overview/)
Link last verified June 7, 2026. View original ↗
Source: Chroma Docs
Link last verified: 2026-03-04