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 AZURE API details
Create an EvalLLM Evaluator
azure/
for UpTrain to recognize you are using models hosted on Azure.For example if you are using gpt-35-turbo
via Azure, the model name should be azure/gpt-35-turbo
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