Skip to main content

Evals from your own traffic

A Proof is only as good as the questions it asks. Public benchmarks say little about your support tickets, your routing rules, or your extraction jobs. A task set from your own traffic does: it holds requests you really served, each with the answer you know is right, and every Proof grades the current setup and each candidate against those answers. You build it on your own machine from files you already have. InferCrane reads nothing until you choose to register the set’s manifest (names, counts, digests, licence, dates) or upload the set.

What stays where

InferCrane’s own traffic recording keeps the shape of each request only (token counts and timing), never its text. The requests file comes from your own logs. The build’s messages name a line in your files, never its text, so they are safe to keep in a terminal or CI log.

1. Export your requests

One request a line, as you sent it to your model: a prompt (with an optional system), or the messages of a conversation that ends with the user’s turn. Give each one an id, and a time on every line or on none (then the file’s order is the order of time).
Other fields on a line, such as the answer your model gave, are ignored and never written anywhere. A task set grades answer text, so a request that uses tools is never an item: a graded one stops the build, and one before the split is left out of the training side. Each file must be UTF-8, and the requests file at most 256 MiB.

2. Grade a few

Pick requests from the end of the window and write down the right final answer: a number, a letter from A to D, or one of up to four labels.
Two graded requests make a set; a migration Proof needs at least 30, and more items narrow the interval every verdict rests on. A set holds at most 1,000.

3. Build the set

The build:
  • Turns each graded request into an item. It adds one line asking the model to end with Answer: <number> or Answer: <letter>, so the check can read the answer. With --choices, the labels are offered as A to D and your label becomes its letter. Use --no-instruction when your prompts already ask for that line. A graded request with the same text and answer as an earlier one is merged into it, and the output names both lines. One that reads the same but is graded differently stays an item, with a note; the same request graded two ways stops the build.
  • Holds the graded requests out. Everything from the first graded request on is the held-out side. Only requests from before it may train a model, for example when you right-size a model.
  • Checks for overlap. It compares what the user sees: the prompt and the conversation’s turns, not the system prompt, so a system prompt that every request shares never counts. Case, spacing, and plain punctuation are ignored; symbols such as + or < count as words. A request before the split is removed from the training side when it has the same words as an item, shares a run of 13 words with one, or holds a whole item of 4 to 12 words. When most requests go because your prompts share a long template, the output says so: send the template as the system prompt. --train-location writes that side too (NAME.train.jsonl and its manifest).
  • Checks the result. The set must pass the same decoder the answer check uses, and its manifest the Data rules: your licence, an expiry (90 days by default, at most 365 with --expires-days; InferCrane refuses a set dated after its own clock), and evaluation only.
It writes support-tasks.task-set.json and support-tasks.task-set.manifest.json to --out, readable only by you, and never overwrites a file.

4. Use it in a Proof

The check grades the current setup and each candidate against your answers (task sets): a setup whose share of right answers falls by a measurable amount is blocked.

Keep track of your sets

data list shows each set’s kind, size, where you keep it, when it expires, and whether InferCrane also stores its text because you uploaded it. Deleting a registration leaves your files alone: they are yours to delete where they live. Registering a set again after rebuilding it from the same files the same day returns its first registration, and that registration’s expiry stands; the output says so. A rebuild on another day is a new set with a new digest, because the version defaults to the build’s date (--version sets it). Deleting a registration and registering the set again starts a new retention window, counted from the new registration. A registered set past its expiry is refused when a plan or run names it (quality_eval_set_expired). This includes sets that had already expired before a control plane with this check was deployed: from that deploy on, new runs naming them are refused, while runs made earlier keep reading. To use such a set again, delete its registration and register it again with a new expiry; registering it again alone keeps the first expiry.

What a result can and cannot say

  • The set says whether answers stay right on the requests you graded. Requests you did not grade are not checked.
  • The overlap check does not find an item asked again in other words, an item of 3 words or fewer inside a longer request, a short request that is only part of a longer item, or an item’s text inside another request’s system prompt. A model trained on the earlier requests may have seen those.
  • Few items give a wide interval: a Proof then reports not settled rather than a pass.
  • A set ages with your traffic. Build a new one when your traffic changes, and let the old one expire.