What the model sees, and what it costs

Every call to a model sends text to wherever the model runs. This page lists exactly what is sent, what is never sent, and how to cap what a run spends.

Command Sent
judy judge per query: the query text, the intent when the set has one, and for each unjudged document its title and text, clipped to 1,500 characters
judy synthesize per document: its title and text, clipped to 3,000 characters
judy diagnose, judy suggest per worst query: the query, its intent, its score, the request judy sent, the top results with their grades and text (clipped to 400 characters), and the judged-relevant documents that were not returned (at most ten per query). Once: a condensed summary of the index mapping and settings, and the request template. --no-index-info leaves the mapping and settings out
  • Credentials. Secrets are env: references, resolved only to authenticate the call itself.
  • The request, the scores or the ranks, to the judge. The judge is asked only whether a document is relevant to a query. See LLM as a judge.
  • Documents that were not asked about. Only the results a run needs to judge, diagnose or write queries for are sent. judy never uploads the index.
  • Cluster details beyond the mapping summary. The summary leaves out uuids, dates and versions, describes at most three indices and is cut at 8,000 characters.

Suppose a query or a document text must not leave your network. Use a model that runs inside it. Choose the Elastic Inference Service on your own cluster, or an OpenAI-compatible endpoint that you host.

  • Count first. --dry-run runs your target, counts what needs a label or a diagnosis, and says how many model calls that is. Nothing is sent.
  • Cap it. judy judge --max-calls 200 (the default) stops at that many calls. diagnose and suggest send a few of the worst queries (--max-queries, default 5 and 8).
  • Never pay twice. Labels are cached in {set}.llm.yaml, keyed by query and document. A document that has a label is not asked about again, so a second run only grades what is new.
  • Batches. batch_size (default 5) is how many documents are graded in one call.
  • LLM labels are kept apart from your judgements, in {set}.llm.yaml, with the model that wrote them.
  • --labels human scores with human ratings only, so you can always see both numbers.
  • judy review lets you approve or reject labels. An approved label becomes a human rating.
  • diagnose and suggest produce hypotheses. suggest measures each on queries the model never saw, and says "no gain" or "likely overfit" when it does not carry over. See Suggest.