Back to Prompt Library
testing

Gradio Interface and Full System Evaluation

Inspect the original prompt language first, then copy or adapt it once you know how it fits your workflow.

Linked challenge: Agent for Complex Policy & Contract Analysis

Format
Text-first
Lines
1
Sections
1
Linked challenge
Agent for Complex Policy & Contract Analysis

Prompt source

Original prompt text with formatting preserved for inspection.

1 lines
1 sections
No variables
0 checklist items
Create a simple web interface using **Gradio** where a user can upload a policy document (or paste text) and submit analysis goals. Your Claude agent should then process this request, perform the analysis using the RAG system, and display the structured JSON output. Test your full system with the provided sample input for the 'Policy Document Analysis' task. Include the Gradio app code and the final runnable Python script for the agent and interface.

Adaptation plan

Keep the source stable, then change the prompt in a predictable order so the next run is easier to evaluate.

Keep stable

Preserve the rubric, target behavior, and pass-fail criteria as the baseline for evaluation.

Tune next

Adjust fixtures, mocks, and thresholds to the system under test instead of weakening the assertions.

Verify after

Make sure the prompt catches regressions instead of just mirroring the happy-path examples.