Docs
Classification

News title classification


This example walks you through how to build and evaluate an AI app that classifies news titles into categories.

Create an API key

Before you run through the tutorial, you should create an API key that you can use to authenticate with Braintrust. Visit the settings page and create one if you have not already. Make sure to copy the key and keep it somewhere safe (e.g. a password manager), because once you create it, you will not be able to view it again.

Evaluate with Braintrust

This tutorial is written in Typescript and Python. You can clone these examples and run locally or run the Python notebook on Colab:

See additional examples in the examples section of the docs or in the braintrust-examples repo (opens in a new tab).