Tutorial 2: Build your first judge
Tutorial 2 — Build, test, and apply your first LLM judge.
What you'll learn
Prerequisites
Step 1: Define the dimension
Step 2: Create the judge via SDK
from layerlens import Stratix
client = Stratix()
judge = client.judges.create(
name="billing-support-helpfulness",
evaluation_goal="Rate whether the response helps the customer resolve a billing question. The response should: (1) directly address the question, (2) provide actionable next steps, (3) be polite and professional.",
)
print("Judge:", judge.id)Step 3: Test on examples
Step 4: Iterate the rubric
Step 5: Apply to an evaluation
Step 6 (optional): GEPA-optimize
What's next
Last updated
Was this helpful?