Skip to main content
A composite judgment is a bool decision column that builds one yes-or-no number from several narrow questions, and before it answers anything it shows on your own labels whether the split beats the single question. You write the narrow questions (the parts), the engine answers each one, and Brussle combines the answers with weights it fits on your outcomes. “Is this post clickbait?” is an unclear question, so a composite asks two narrow parts instead: “Does the post hold back the key fact?” and “Does the post state a specific news fact?”. The fit on your outcomes decides how much each part counts.

When splitting helps

Parts help when an unclear question holds different things that the engine can judge separately. When each part asks the same thing as the question, the composite only costs more for each document. Nobody can know in advance which case you are in, so Brussle compares the composite on your labels with the single question and a fitted threshold before the composite answers.

Try the threshold recommender first

A fitted threshold is cheaper than a composite, since it costs nothing for each document, needs no new version and takes one call. If your judgment has outcomes, pick a threshold with the recommender first, and use a composite when a good threshold still gets too many documents wrong.

Define the parts

A composite is a bool judgment with parts, and you post it as any other definition (on an existing name, it is version n+1):
  • 2 to 8 parts, or 1 to 8 with features. Each part is a narrow yes-or-no question, with a name that is unique in the judgment.
  • Parts share the judgment’s context recipe and engine. The engine answers them in one request with the judgment’s other questions, so each part counts toward the 32 questions in each request.
  • Brussle does not send question to the engine. question says what the combination means, and the engine gets the parts.
  • Parts are part of the version. A change to a part makes a new version, as each change to the definition does.
  • One level only. A part is a question, never another judgment, so composites never nest.
  • Only bool. There are no composite choice or score judgments.
Good parts are narrow and different from each other. Include a part that points the other way, where a yes means no.

Features

A composite can take numbers as features beside its parts: the aggregates of the related documents that its recipe reads (such as ["paid_late.count", "open_invoices.sum(state.amount)"]), and the document’s own values and ages (such as state.amount or age(attributes.signed_at)).
  • Up to 12 features (see what a feature can read). A composite cannot use previous.p, because its answer has no single p from the engine.
  • With features, one part is enough, as in questions about what will happen.
  • Features add no questions, so Brussle never bills them.
  • The answer shows the value of each feature in features, and the activation’s report gives the weight of each feature next to the weights of the parts.
Any bool can declare features, with or without parts. Brussle records them next to each answer, and you can put thresholds and filters on them (see add your own numbers to the fit).

Questions about what will happen

The engine does not forecast. For a question about what will happen, you ask one narrow part about what the document shows now, keep the counts as features, and give the judgment a horizon, so the weights fitted on your outcomes weigh the part and the counts. “Will this invoice go overdue in the next 30 days?” is a question about what will happen. This composite asks one part about the customer’s messages, and keeps one count as a feature:
  • The part asks what the messages say now, and the engine answers it.
  • The feature paid_late.count counts the customer’s invoices that were paid late in the last year. The engine does not read it.
  • question says what the combined p means, and Brussle does not send it to the engine.
  • horizon says that an outcome counts against an answer for 30 days after it, so you post true when the invoice goes overdue (see outcomes with a horizon).
The activation’s report gives the weight of the part next to the weight of the feature. A part with a weight near 0 adds nothing to your counts. Read that report with care. The shadow job that measures a composite judges each labelled document as it is when the job runs, and compares the answer with the document’s latest outcome. A document can already show the event that its outcome records (a message that says the payment is late, for example), so the report can look better than the answers will be. Once you activate the composite, the calibration report measures each answer against the outcome in its horizon. A bool without parts can do the same, since its correction weighs its features and the engine’s answer together from 100 outcomes (see add your own numbers to the fit).

Activate it, measured on your labels

A composite version is never active when you create it, even as a judgment’s first version, and Brussle refuses activate: true with invalid_request. A composite cannot answer until Brussle fits its combiner (the set of weights that combines the parts and features) on your labels.
  1. Post labelled examples for the judgment, at least 50 labelled documents with at least 10 of each answer.
  2. Activate the version with POST /namespaces/{ns}/judgments/clickbait/activate:
  1. Wait for the shadow job. Activation always returns 202 with a shadow job in awaiting_confirm, even with force: true, because a composite cannot answer without a combiner and so has nothing to skip to.
  2. Read the job’s report.
  3. Confirm or cancel the job.
With fewer labels than step 1 names, the job fails (status is failed, and error starts with insufficient_labels), so post more labels and activate again. The shadow job judges your labelled documents with each part, then measures the composite on held-out labels against a fair baseline:
  • For a new version of an existing judgment, the baseline is the active version.
  • For a first version, the baseline is the composite’s question, asked alone.
The baseline has its own fitted threshold, never 0.5, so the parts get no credit for what a fitted threshold alone would give. When the job is done, report compares the composite and the baseline. This report is for the two-part first version of clickbait, and its values are illustrative (they show the format, not a result to expect).
  • composite and baseline give the accuracy on held-out labels, with its 95% interval, and the ROC AUC. baseline.threshold is the cut-off fitted for the baseline.
  • difference is the composite’s accuracy minus the baseline’s, with its 95% interval over the same documents.
  • verdict is better only when the composite beats the baseline by more than that interval. Otherwise it is not_better, and the threshold recommender on the baseline is the cheaper fix.
  • parts gives the weight of each part in the combiner fitted on all the documents, and features the weight of each feature. All weights are on one scale, so you can compare their sizes. A negative weight means that a yes points to false, and a part with a weight near 0 adds cost and gives almost nothing.
  • recompute estimates a backfill of each document under the new version, priced as what a composite costs says.
Only a composite report has type, so "type" in report tells it apart from the report of an ordinary version change:
Then decide:
  • POST /jobs/{id}/confirm activates the version with the combiner fitted on all the labelled documents, whatever the verdict. When the version replaces a version that asks differently, the confirm also starts a backfill of the old answers at the cost of the report’s recompute. The first version of a composite starts no backfill (see the backfill that a confirm starts).
  • POST /jobs/{id}/cancel keeps the active version as it is.
The shadow job is free.

Read an answer

A composite’s answer has p (the combined probability) and parts (the engine’s own p for each part):
  • combiner tells where p came from: outcomes, the number of labelled documents the combiner was fitted on, and from_previous_epoch.
  • The combiner is the composite’s correction. Brussle applies no correction on top of it, so the answer has no calibrated object, no fit and no interval. Because the combiner is fitted on your outcomes, the combined p is usually close to what happens on documents like your labels. With few labels, or with labels from a reviewed sample, it can be too high or too low. Check the reliability curve in the calibration report.
The evaluation behind an answer stores the engine’s p for each part, and Brussle combines them when you read the answer. To see what the engine returned and how long it took, read the evaluation by its id:

When the combiner changes

Brussle fits a combiner for each version and each engine epoch.
  • Each calibration run fits it again, every night, once the version’s own answers in the epoch have joined 50 outcomes with 10 of each answer. Until then, the combiner that the shadow job fitted stays. A new combiner moves p at once, and with it thresholds, filters, ranking and subscriptions. The rule for when a new fit replaces the current one does not apply to a combiner, and GET on the judgment shows no fit_changed warning for it.
  • After the engine changes by itself, answers under the new epoch use the previous epoch’s combiner, marked "from_previous_epoch": true, until the new epoch has 50 outcomes of its own with 10 of each answer and the next run has fitted it. Brussle does not replay outcomes for a composite, so the new epoch waits for outcomes you post (see when the engine changes).
  • The calibration report measures the combined p for each epoch. For a composite, stage, fitted_at, calibrated, fit_source, band and lift are null.
  • On a template, all tenants share one combiner (see per-customer corrections).

Filter and rank on the combined p

Everything that reads p reads the combined p:
  • thresholds
  • filters, such as ["answers.clickbait.p", "Gte", 0.8]
  • rank_by
  • threshold recommendations
You can read a part’s p in the answer, but you cannot filter or rank on it.

Suggested parts

Brussle can ask a third-party model provider to propose parts from your labelled examples. A suggestion is only a start and no sign that a composite will help, so read each set of parts and look for the question that it does not ask. Suggestions are off by default, because they send your labelled examples to that provider (one of the subprocessors that the data processing agreement lists). An organization admin turns them on with Suggestions in the organization’s settings in the dashboard, and until then Brussle refuses the call with forbidden. Send POST /namespaces/{ns}/judgments/{name}/suggest_parts with the number of parts to propose, 2 to 8:
  • What the model sees. It sees the question and criteria of the judgment’s newest version, and a sample of the namespace’s labelled examples for the judgment, compiled with the judgment’s context recipe. It gets each image that the recipe names as its reference and never the image itself, so on a judgment about images you write the parts yourself from what the images show. examples lists exactly which documents it saw.
  • It never creates a version. Review the parts, edit or remove them, then post a new version with them (parts has the same shape as a definition’s parts).
  • It needs labels. With fewer than 10 labelled examples of each answer, Brussle refuses it with insufficient_labels.
  • Long documents are cut to fit.
  • It is free, with a daily limit of 20 calls for each judgment and 50 for each organization. Past the limit, the call returns rate_limited, with the limit you reached (20 or 50) in details.limit and the next midnight UTC in details.resets_at.
  • When the model is unavailable, the call returns engine_unavailable. When the model is busy, the response has a Retry-After, and the SDKs wait for it and try again. A call that fails before the model ran does not count toward the day’s calls, but a call that timed out, or failed after the model replied, counts.

What a composite costs

Each part counts as a row over the context and that part’s own question. The parts go to the engine in one request, so the first part counts in full, and each other part costs a quarter of a row, plus a quarter for each further 500 tokens of its question text. Brussle multiplies the request’s total by the engine’s multiple. Take a composite with five parts whose questions are short, where each part’s context and question come to at most 2,000 tokens. On jev, whose multiple is 2, the composite counts as (1 + 4 × 0.25) × 2 = 4 rows for each document, where a single question counts as 2. On gpt-6-luna, whose multiple is 5, the same composite counts as 2 × 5 = 10. A part whose context and question are larger counts by its own size class. Features cost nothing, and neither do suggestions or the shadow job that measures a composite (every shadow job is free).