Skip to main content

MistralAI is a leading provider for state-of-the-art LLMs. The MistralAI SDK can be instrumented using the openinference-instrumentation-mistralai package.

Install#

Setup#

Set the MISTRAL_API_KEY environment variable to authenticate calls made using the SDK.

Connect your application to Phoenix with the register function:

Run Mistral#

Observe#

Now that you have tracing setup, all invocations of Mistral (completions, chat completions, embeddings) will be streamed to your running Phoenix for observability and evaluation.

Resources#