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 abool 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
questionto the engine.questionsays 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 compositechoiceorscorejudgments.
Features
A composite can take numbers asfeatures 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 singlepfrom 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.
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 ahorizon, 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.countcounts the customer’s invoices that were paid late in the last year. The engine does not read it. questionsays what the combinedpmeans, and Brussle does not send it to the engine.horizonsays that an outcome counts against an answer for 30 days after it, so you posttruewhen the invoice goes overdue (see outcomes with a horizon).
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 refusesactivate: 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.
- Post labelled examples for the judgment, at least 50 labelled documents with at least 10 of each answer.
- Activate the version with
POST /namespaces/{ns}/judgments/clickbait/activate:
- Wait for the shadow job. Activation always returns
202with ashadowjob inawaiting_confirm, even withforce: true, because a composite cannot answer without a combiner and so has nothing to skip to. - Read the job’s
report. - Confirm or cancel the job.
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.
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).
compositeandbaselinegive the accuracy on held-out labels, with its 95% interval, and the ROC AUC.baseline.thresholdis the cut-off fitted for the baseline.differenceis the composite’s accuracy minus the baseline’s, with its 95% interval over the same documents.verdictisbetteronly when the composite beats the baseline by more than that interval. Otherwise it isnot_better, and the threshold recommender on the baseline is the cheaper fix.partsgives the weight of each part in the combiner fitted on all the documents, andfeaturesthe weight of each feature. All weights are on one scale, so you can compare their sizes. A negative weight means that a yes points tofalse, and a part with a weight near 0 adds cost and gives almost nothing.recomputeestimates a backfill of each document under the new version, priced as what a composite costs says.
type, so "type" in report tells it apart from the report of an ordinary version change:
POST /jobs/{id}/confirmactivates the version with the combiner fitted on all the labelled documents, whatever theverdict. 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’srecompute. The first version of a composite starts no backfill (see the backfill that a confirm starts).POST /jobs/{id}/cancelkeeps the active version as it is.
Read an answer
A composite’s answer hasp (the combined probability) and parts (the engine’s own p for each part):
combinertells wherepcame from:outcomes, the number of labelled documents the combiner was fitted on, andfrom_previous_epoch.- The combiner is the composite’s correction. Brussle applies no correction on top of it, so the answer has no
calibratedobject, nofitand nointerval. Because the combiner is fitted on your outcomes, the combinedpis 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.
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
pat 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, andGETon the judgment shows nofit_changedwarning 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
pfor each epoch. For a composite,stage,fitted_at,calibrated,fit_source,bandandliftarenull. - On a template, all tenants share one combiner (see per-customer corrections).
Filter and rank on the combined p
Everything that readsp reads the combined p:
- thresholds
- filters, such as
["answers.clickbait.p", "Gte", 0.8] rank_by- threshold recommendations
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 withforbidden.
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
questionandcriteriaof 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.exampleslists exactly which documents it saw. - It never creates a version. Review the parts, edit or remove them, then post a new version with them (
partshas the same shape as a definition’sparts). - 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) indetails.limitand the next midnight UTC indetails.resets_at. - When the model is unavailable, the call returns
engine_unavailable. When the model is busy, the response has aRetry-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.