MistralAI Tracing
Instrument LLM calls made using MistralAI's SDK with OpenInference and view traces in Arize.
MistralAI is a leading provider for state-of-the-art LLMs. The MistralAI SDK can be instrumented using the openinference-instrumentation-mistralai
package. Traces can be viewed in Arize.
Launch Arize
To get started, sign up for a free Arize account and get your Space ID and API Key.
Install
API Key Setup
Set the MISTRAL_API_KEY
environment variable to authenticate calls made using the SDK.
Setup
Connect to Arize using the register
function and instrument the MistralAI client.
Run Mistral
Now you can use the MistralAI client as usual. It will automatically pick up the MISTRAL_API_KEY
from your environment.
Observe
Now that you have tracing setup, all invocations of Mistral (completions, chat completions, embeddings) will be streamed to your Arize account for observability and evaluation.
Resources
Last updated
Was this helpful?