Install UpTrain
Create your data
question
: The question you want to askcontext
: The context relevant to the questionresponse
: The response to the question
Enter your Mistral API Key
Create an EvalLLM Evaluator
mistral/
for UpTrain to recognize you are using Mistral.For example if you are using mistral-tiny
, the model name should be mistral/mistral-tiny
Evaluate data using UpTrain
evaluate
method to do this. This method takes the following arguments:data
: The data you want to log and evaluatechecks
: The evaluations you want to perform on your data
Print the results