Skip to main content
Get your first custom LLM evaluation running in minutes using Prompt Specs with Fiddler’s LLM-as-a-Judge solution. This guide walks you through creating, testing, and deploying a custom evaluation using Prompt Specs.

What You’ll Build

In this quick start, you’ll create a news article topic classifier that:
  • Takes a news summary as input
  • Classifies it into one of four categories: World, Sports, Business, or Sci/Tech
  • Provides reasoning for its classification
  • Deploys to production monitoring in Fiddler

Prerequisites

  • Fiddler platform access
  • Basic familiarity with Python and REST APIs
  • A Fiddler API token and base URL
1

Set Up Your Environment

Refer to the Fiddler Python client SDK Installation and Setup Guide for details on the Fiddler Access Token, URL, and client initialization.
2

Prepare Sample Data

We’ll use news article data for this example:
3

Create Your First Prompt Spec

Define a simple evaluation schema:
4

Validate

Validate your Prompt Spec schema:
5

Test with Sample Data

6

Improve Accuracy With Descriptions

Add field descriptions to improve classification accuracy:
7

Evaluate Performance

Test your enhanced Prompt Spec on multiple examples:
8

Deploy to Production Monitoring

Once satisfied with your Prompt Spec, deploy it as a Fiddler enrichment:
9

Publish Events and Monitor

Publish your data and start monitoring:

What Happens Next

After completing this quick start:
  1. View Results: Check the Fiddler UI to see your model and enrichment results
  2. Monitor Performance: Set up alerts based on classification accuracy or confidence scores
  3. Iterate: Refine your Prompt Spec descriptions to improve accuracy
  4. Scale: Apply the same approach to your own evaluation use cases

Key Takeaways

  • Fast Setup: From zero to production evaluation in minutes, not weeks
  • No Manual Prompting: JSON schema approach eliminates prompt engineering bottlenecks
  • Built-in Monitoring: Seamless integration with Fiddler’s observability platform
  • Easy Iteration: Update schemas without rewriting prompts

Next Steps