Tonic Validate: Visualize Ragas Scores

Tonic Validate Screenshot with list of projects and example graphs

Validate makes it easy to understand the performance of your RAG or LLM application by visualizing and tracking over time the scores generated by Ragas. If you are already using Ragas today getting started is as easy as adding two additional lines of code into your python project.

Getting Started

First create a free validate account. Once logged in, you’ll need to create a new project. A project is typically associated to a single RAG or LLM application you wish to evaluate with Ragas. Once you’ve given your project a name you’ll be taken to the project’s new home page.

To begin sending scores to Tonic Validate you’ll need to install the tonic-ragas-logger package which is used to ship scores.

pip install tonic-ragas-logger

Now, in your existing python project you can add the below two lines of code to wherever you are running Ragas. This code will take the scores generated by Ragas’ evaluate() function and ship the results to Tonic Validate. The API Key and Project ID referenced below are both available form your newly created project’s home page.

validate_api = RagasValidateApi("<Validate API Key>")
validate_api.upload_results("<Project ID>", scores)

As you begin sending scores to Validate you’ll see Graphs being generated and ‘Runs’ being created. A run is a collection of scores computed from a single call to evaluate(). You can see how average scores change over time or dig into a specific run to see how individual questions performed.

Reaching out 👋

If you have any questions or feedback for our UI the easiest way to get in touch is to file a GitHub issue on our repository where we maintain tonic-validate, our own open source evaluation framework.