Skip to main content
When using the arize-phoenix evals library, you can use MistralAI as your LLM.
https://storage.googleapis.com/arize-phoenix-assets/assets/images/arize-docs-images/0aa0cbc2-image.ico

evals.models.bedrock — Phoenix API Reference 9.3.0 documentation

MistralAIModel

Need to install extra dependency mistralai
class MistralAIModel(BaseModel):
    model: str = "mistral-large-latest"
    temperature: float = 0
    top_p: Optional[float] = None
    random_seed: Optional[int] = None
    response_format: Optional[Dict[str, str]] = None
    safe_mode: bool = False
    safe_prompt: bool = False

Usage

# model = Instantiate your MistralAIModel here
model("Hello there, how are you?")
# Output: "As an artificial intelligence, I don't have feelings, 
#          but I'm here and ready to assist you. How can I help you today?"