If you use structured outputs with Instructor, track validation errors instantly with
@PareaAI.
Concretely, the integration automatically:
- groups any LLM call due to retries together under a single trace
- tracks any field which failed validation with the respective error message
- visualizes validation error count over time
Instrument calls made via the Instructor client by adding two lines:
p = Parea(api_key="PAREA_API_KEY")
p.wrap_openai_client(client, "instructor")
Read the full blog post on the instructor docs in the 🧵
ALT Using p.wrap_openai_client one can automatically instrument instructor calls.
ALT Track instructor validation error count over time
ALT See all retries grouped under one trace