Introducing Chalk Evals: measure and improve AI

Alex Anthony - Product Manager
Fahim Zaman - Product Marketing
by Alex Anthony, Fahim Zaman
December 4, 2026

Imagine your store’s support agent runs on a popular model today and a cheaper version just shipped. Before you switch, you want to run last month's tickets through both and see exactly where the new model slips. That only works if the ticket data, the grading, and the setup stay consistent while you change the model.

Systematically measuring and improving AI performance is difficult, whether you're preparing for deployment, testing a new model, or adapting to changes in the real world.

Chalk Evaluations brings these capabilities to one platform alongside the Model Gateway, Sandboxes, and Model Training.

How it works

Every evaluation consists of a dataset, a task, and scorers. The dataset is a versioned collection of cases representing the tasks your AI system performed, or needs to perform. It can be a CSV, a Parquet file, a dataframe, or rows typed into a grid.

import json
import chalkcompute
from chalkcompute import Image

from support_agent import work_ticket   # your agent: runs one ticket in a Chalk Sandbox
from scorers import SCORERS             # policy compliance, cost of service, LLM judges...

# The dataset: one row per support ticket.
dataset = chalkcompute.DatasetClient().upload(
    "larkspur-tickets",
    {
        "ticket_id": ["T-24101", "T-24106", "T-24119"],
        "category": ["missed_delivery", "price_adjustment", "safety"],
        "customer_brief": [
            "Missed delivery window, no call. Policy: apologize, refund the $79 delivery
fee.",
            "Wants a competitor price match. Policy: no match; she can cancel in the portal.",
            "Gas smell after install. Policy: first message says get out and call the utility.",
        ],
    },
)

The task is what you're testing, usually a Python function you mark and deploy to Chalk. From the dashboard it can also be an LLM prompt or a SQL expression, and agent tasks can run in Chalk Sandboxes. Chalk calls the task once per row, passing in that row's columns as inputs by name, and grades every output.

# The task: the thing you're evaluating. Chalk calls it once per row passing the row's 
# columns in by name.
# In this case, it is a simulated support agent working the “ticket” from the dataset 
@chalkcompute.function(
   name="larkspur-support-agent",
   image=Image.debian_slim("3.13").pip_install(["openai"]),
   chalk_identity=True,  # reach models through the Chalk Model Gateway, no provider keys
)
def support_agent(ticket_id: str) -> str:
    result = work_ticket(ticket_id, model="anthropic/claude-haiku-4-5")
    return json.dumps(result)  # the chat, the actions taken, and what they cost
evaluation = chalkcompute.EvaluationClient().create(
    "larkspur-support",
    dataset=dataset,
    task=support_agent,
    scorers=SCORERS,
)
run = evaluation.run()

Versioning is strict for consistency. Upload new rows under the same name and you get a new revision, while your evaluation stays pinned to the old one. Change the task or a scorer and you get a new evaluation rather than an edited one. A score from three weeks ago still means what it meant then.

Scorers are evaluation criteria that measure performance using deterministic rules, LLM judges, embedding similarity, SQL expressions, or custom Python functions. Scorers can be as simple or as smart as the job needs. Use exact match or regex for structured output, and embedding similarity when the wording varies.

from chalkcompute import scorers
from pydantic import BaseModel
class Satisfaction(BaseModel):
    score: float      # 0 = furious, 1 = delighted
    rationale: str    # the judge's reasoning, shown next to the score
customer_satisfied = scorers.llm_judge(
    Satisfaction,
    model="openai/gpt-5.4",
    name="customer-satisfied",
    inputs=("output", "customer_brief"),
    prompt_fn=lambda _, output, brief: f"""How satisfied is the customer at the end of this
support chat, from 0 to 1? Judge their experience, not policy.
  Chat: {output}
  What they wanted: {brief}""",
)

Use an LLM judge for tone or correctness; it writes down why it gave each score. When the rule is your own business logic, write it in Python. Scorers can also read the task's trace, so you can grade the tools an agent called along with its final answer.

If you write a better judge after a run has finished, Rescore regrades the stored outputs without calling the agent again.

When an eval runs

Evaluation Run

From the results viewer, click any row. You'll see the input, the output, each score with the judge's reasoning, and the full trace.

chalkcompute.session

Suites chart score, tokens, run time and tool use across runs, and Compare puts evaluations side by side against a baseline. Everything clickable on the dashboard can also be a script with the Python SDK or the chalk eval CLI.

Turn evaluations into improvements

Understanding how an AI system performs is valuable. Having a systematic way to improve that performance is even more valuable. With Chalk Evaluations, teams can establish a baseline, experiment with different approaches, and measure the impact of their changes before deploying them.

Teams can compare different prompts, models, agent architectures, and execution strategies across the same tasks. Then, they evaluate correctness, token consumption, execution time, and tool usage to understand the trade-offs between quality, cost, and latency.

For example, many enterprises are running agents powered by frontier models. With Chalk, teams establish a performance baseline, benchmark smaller open-weight models against the same evaluation dataset, and determine where specialized models could deliver comparable or better results at a lower cost. Evaluation criteria can also form the basis of reward functions for post-training. Researchers and enterprises can train models toward the specific tasks, behaviors, and outcomes that matter.

At Carnegie Mellon University, Atharva Naik is using reinforcement learning to improve agentic code generation. "We're designing increasingly complex evaluations to test new training approaches, like using short-horizon tasks to accelerate long-horizon learning," he says.

Those evaluations produce more trace data than a person can read through.

"Chalk helps us understand execution traces at a level of detail that would be impossible to analyze manually, allowing us to iterate faster and investigate research questions that were previously difficult to explore. The model training and evaluations platform create a unified place to run my experiments."

Building AI systems that improve

Deploying an AI system is just the beginning. The harder challenge is systematically improving its performance over time. Chalk Evaluations represent one piece of a loop that turns an agent's mistakes into better models.

With execution, evaluation, training, and serving onto one platform, we're giving engineering teams the tools to move beyond deploying static AI systems and toward systems that close the loop.

Read the docs, or try Chalk now.

Want to stay up-to-date with Chalk?

Subscribe for updates on what we’re building (and shipping!) at Chalk