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:
Full Script Copy
Full Script Copy
What Happens Next
After completing this quick start:- View Results: Check the Fiddler UI to see your model and enrichment results
- Monitor Performance: Set up alerts based on classification accuracy or confidence scores
- Iterate: Refine your Prompt Spec descriptions to improve accuracy
- 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
- Complete Interactive Notebook: Follow along with a full working example
- Prompt Specs Guide: Learn more about the underlying framework