Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel
Michael 76797692e5
feat(schema): add yaml schema validation to config files (#1990)
10 months ago
..
091cfd5847
feat(mistral): update chat models and add embedding provider (#1614)
11 months ago
091cfd5847
feat(mistral): update chat models and add embedding provider (#1614)
11 months ago
76797692e5
feat(schema): add yaml schema validation to config files (#1990)
10 months ago

README.md

You have to be logged in to leave a comment. Sign In

Mistral AI Model Comparison Example

This example demonstrates how to use promptfoo to compare different Mistral AI models on their ability to explain complex scientific concepts in simple terms. It compares several chat models and uses the embedding model to compare the semantic similarity of the explanations.

Prerequisites

You'll need an API key from Mistral AI. If you don't have one, sign up at mistral.ai.

Setup

  1. Set your Mistral AI API key as an environment variable:

    export MISTRAL_API_KEY=your_api_key_here
    
  2. Review the configuration files in this directory:

    • promptfooconfig.yaml: Defines the Mistral models to compare, test cases, and evaluation criteria.
    • prompt.yaml: Contains the prompt template for the scientific explanations.

Usage

  1. Run the evaluation:

    npx promptfoo eval
    
  2. View the results:

    npx promptfoo view
    

This will compare the performance of different Mistral models on explaining various scientific concepts.

For more information on configuring promptfoo with Mistral AI, see the Mistral provider documentation.

Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...