Back to Promptfoo

azure/mistral (Azure Mistral Models)

examples/azure/mistral/README.md

0.121.91.4 KB
Original Source

azure/mistral (Azure Mistral Models)

This example demonstrates how to use Mistral models on Azure AI Foundry with promptfoo.

You can run this example with:

bash
npx promptfoo@latest init --example azure/mistral
cd azure/mistral

Setup

  1. Deploy Mistral models in Azure AI Foundry
  2. Update promptfooconfig.yaml with your deployment name and API host
  3. Set your environment variables:
bash
export AZURE_API_KEY=your-api-key

Available Mistral Models

ModelDescription
Mistral-Large-3Mistral Large 3 - Most capable
Mistral-Large-2411Mistral Large - Previous gen
mistral-small-2503Mistral Small - Fast, efficient
Pixtral-Large-2411Pixtral Large - Vision + text
Ministral-3B-2410Ministral 3B - Fast, lightweight
Mistral-NemoMistral Nemo - Balanced

Running the Example

bash
npx promptfoo@latest eval
npx promptfoo@latest view

Configuration

The example compares Mistral Large 3 and Mistral Small 2503 on text generation tasks. This helps evaluate the trade-off between model capacity, speed, and quality.

Documentation