Skip to content
OpenPond
Join community
Ponder SDK/LLM judges

LLM judges

Save a rubric, check it against examples, and attach a published grader binding to your Model.

A judge can score several valid answers against the same rubric. For the ticket router, ask whether the selected queue can resolve the request. Keep the judge definition in its own module.

typescript
// queue.judge.ts export const rubric = "Pass if the queue can resolve the ticket. Billing handles duplicate charges.";
typescript
// setup.ts, with your Ponder client and selected judge model ID import { rubric } from "./queue.judge"; const judge = pond.graders.judge({ id: "queue-fit", model: judgeModelId, rubric }); const input = { text: "I was charged twice." }; const checked = await judge.check({ examples: [ { input, output: "billing", pass: true }, { input, output: "sales", pass: false }, ], maxSpendUsd: 1, }); const graderBinding = await pond.graders.bind(checked);

Defining a rubric is local. Checking it runs the judge within the spend cap and publishes the exact checked revision on success. Use the returned binding when creating a Model. For an existing Model, attach the checked grader with await pond.model("ticket-router").learning.addGrader(checked) or pond.graders.add_grader("ticket-router", checked). Attachment preserves the Model's existing graders and separate holdout. Model setup · Judge calibration

View as Markdown