Skip to main content
This tutorial will walk you through the process of getting started with UpTrain using our open source Evaluator. You can use this Evaluator to log and evaluate your data, and get results in a few simple steps.

Get your OpenAI API key

You can get your OpenAI API key here.

Install UpTrain

Run the following commands in your terminal to install UpTrain:

Create an EvalLLM Evaluator

Before we can start using UpTrain, we need to create an EvalLLM Evaluator. You can do this by passing your API key to the EvalLLM constructor.

Create your data

You can define your data as a simple dictionary with the following keys:
  • question: The question you want to ask
  • context: The context relevant to the question
  • response: The response to the question

Evaluate your data

Now that we have our data, we can log it and evaluate it using UpTrain. We use the evaluate method to do this. This method takes the following arguments:
  • data: The data you want to log and evaluate
  • checks: The evaluations you want to perform on your data
You can find the list of all available evaluations here.

Get your results