Parea for Observing, Testing & Fine-tuning of Instructor
Parea is a platform that enables teams to monitor, collaborate, test & label for LLM applications. In this blog we will explore how Parea can be used to enhance the OpenAI client alongside instructor
and debug + improve instructor
calls. Parea has some features which makes it particularly useful for instructor
:
- it automatically groups any LLM calls due to reties under a single trace
- it automatically tracks any validation error counts & fields that occur when using
instructor
- it provides a UI to label JSON responses by filling out a form instead of editing JSON objects
Configure Parea
Before starting this tutorial, make sure that you've registered for a Parea account. You'll also need to create an API key.
Example: Writing Emails with URLs from Instructor Docs
We will demonstrate Parea by using instructor
to write emails which only contain URLs from the instructor
docs. We'll need to install our dependencies before proceeding so simply run the command below.