Skip to main content

Overview

Mistral AI provides a high-quality embedding model optimized for retrieval and semantic search.

Quick Start

from praisonaiagents import embedding

result = embedding(
    input="Hello world",
    model="mistral/mistral-embed"
)
print(f"Dimensions: {len(result.embeddings[0])}")

CLI Usage

praisonai embed "Hello world" --model mistral/mistral-embed

Setup

export MISTRAL_API_KEY="your-mistral-api-key"

Available Models

ModelDimensionsUse Case
mistral/mistral-embed1024General purpose

Batch Embeddings

from praisonaiagents import embedding

texts = ["Document 1", "Document 2", "Document 3"]
result = embedding(
    input=texts,
    model="mistral/mistral-embed"
)
print(f"Generated {len(result.embeddings)} embeddings")