Are you sure you want to delete this access key?
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.
You'll need an API key from Mistral AI. If you don't have one, sign up at mistral.ai.
Set your Mistral AI API key as an environment variable:
export MISTRAL_API_KEY=your_api_key_here
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.Run the evaluation:
npx promptfoo eval
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.
Press p or to see the previous file or, n or to see the next file
Browsing data directories saved to S3 is possible with DAGsHub. Let's configure your repository to easily display your data in the context of any commit!
promptfoo is now integrated with AWS S3!
Are you sure you want to delete this access key?
Browsing data directories saved to Google Cloud Storage is possible with DAGsHub. Let's configure your repository to easily display your data in the context of any commit!
promptfoo is now integrated with Google Cloud Storage!
Are you sure you want to delete this access key?
Browsing data directories saved to Azure Cloud Storage is possible with DAGsHub. Let's configure your repository to easily display your data in the context of any commit!
promptfoo is now integrated with Azure Cloud Storage!
Are you sure you want to delete this access key?
Browsing data directories saved to S3 compatible storage is possible with DAGsHub. Let's configure your repository to easily display your data in the context of any commit!
promptfoo is now integrated with your S3 compatible storage!
Are you sure you want to delete this access key?