Skip to main content
Use Mistral embedding models with Hypertic.

Installation

Install the Mistral package:
pip install hypertic[embedders] or pip install mistral-embeddings

Setup

Set your Mistral API key as an environment variable:
export MISTRAL_API_KEY=...

Usage

Create a Mistral embedder:
import os
from hypertic.embedders import MistralEmbedder

embedder = MistralEmbedder(
    api_key=os.getenv("MISTRAL_API_KEY"),
    model="mistral-embed"
)

Configuration Options

  • model - The embedding model to use (e.g., “mistral-embed”)
  • api_key - Your Mistral API key
For the full list of available models and parameters, see the Mistral Embeddings documentation.