Writing a first set: judy synthesize
No judgements yet? judy synthesize has a model write queries for your own documents. It builds a judgement set in which each document is the
grade-3 answer to the queries written for it.
judy synthesize corpus.ndjson --id url --title title --text body --max-docs 200
corpus.ndjson is one JSON document per line. --id, --title and --text name the fields, and --text can be repeated.
For each sampled document, the model sees its title and text, clipped to 3,000 characters. It writes queries in two styles. A keyword query has one to four words, as people type them. A question query is a natural sentence. The model must not copy the document's wording.
Each query is tagged style:keyword or style:question. The scorecard then has a group for each, and you see which kind your search handles better.
Count the cost first with --dry-run, which says how many calls it would make and sends nothing.
A synthetic set is a fast way to a first scorecard, to compare two configurations, or to smoke-test a pipeline before real
judgements exist. It flatters retrieval: the queries come from the documents' own words, and the document that produced a
query is its only judged answer. Other documents that are equally relevant count as misses until judy judge labels
them. Replace it with real judgements, from users or from reviewers, for decisions that matter.
| Option | Meaning |
|---|---|
--per-doc <n> |
how many queries to ask for per document (default 2) |
--max-docs <n> |
how many documents to use (default 50), sampled by a hash of the id so the same ones are chosen every time |
--name, --output |
the set's name and file |
--k |
the depth the set measures at |
--dry-run |
say how many calls it would make, and send nothing |
--provider, --model, --config |
the model; see providers |