Skip to main content
Follow the instructions in the Quickstart Guide to setup the SGP Client
We’ll be creating an application to answer math questions — we’ll go through multiple variants of this application. When we evaluate each variant, we’ll need an evaluation config.Let’s create both now.
Let’s test it out on a simple dataset. This dataset doesn’t need to be flexible — it’s just a simple question and answer dataset.
We can see this in the UI by looking at the test case outputs for this application variant:Evaluation for V1 mathbot (uses external data)This app works on the simplest problems — but not more: we need Flexible Evaluations to build an app that can do better by:
  • Taking in more than just the user’s query (i.e., the stock prices from the last 5 days)
  • Leveraging something that’s better than an LLM is at doing math.
Let’s tackle passing in the stock prices first.
First let’s create a FLEXIBLE evaluation dataset with two inputs: query and stock_prices:
Next, let’s update our application to take in the stock prices:
Finally, let’s run our app again:
To create a custom UI, let’s attach an annotation configuration to the evaluation. This configuration will specify how the test cases should be displayed to the evaluators.
Let’s look at this evaluation:Evaluation for V1 mathbot (uses external data)It knows how to use the stock prices now. However, it still struggles with complex math problems. Let’s make it use python to do math.
Notice how we added a trace to the output. This will allow us to see what the bot did at each step.Let’s run this on the same dataset:
Evaluation for V2 mathbot (uses python)Looks great :check: