Skip to main content
Discovery tells you what the escape option of a choice judgment holds, and proposes the options that the judgment does not have yet, checked against a sample before you use them. You review the proposal and create the new version yourself, since discovery never changes the judgment. A choice judgment answers with one of its options, or with none_of_the_above (the escape option) when no option fits. A new kind of complaint, a new kind of abuse or a new product question can collect there, so discovery reads a sample of the documents in the escape and proposes options for what they share. The options you add make a new version, and each answer records the version that made it, so answers from the old and new options never mix without a sign. Discovery is for choice judgments with fixed options:
  • A bool or score judgment has no escape option, so look at its calibration report instead.
  • A choice that chooses among candidates has an escape option, but there it means “no candidate matches” rather than a missing option. Discovery does not apply to it.

Know when to look: the escape alert

Set escape_alert on a choice judgment to hear when the escape grows. The alert is a share, and Brussle tells you when more than this share of the judgment’s answers in the last 7 days were none_of_the_above. It is off until you set it, and a change to it makes no version.
When the share goes above the alert, three things happen, and nothing else:
  • The judgment gets a warning. GET on the judgment lists taxonomy_drift in warnings, with the share and the time it went up, and the dashboard shows it on the judgment’s page. The warning clears when the share goes back down.
  • One event. The events feed, and each webhook endpoint that asks for it, gets one judgment.taxonomy_drift each time the share goes up (never one for each answer), and Brussle sends nothing more while the share stays above the alert.
  • Nothing changes automatically. Your answers, options and bill stay the same, and you run discovery when you want to.
  • The share needs at least 20 answers in the 7 days before it can cause the warning, so the first escape of a judgment with few answers is not a drift.
  • The alert takes a number above 0 and at most 1, and null turns it off.
  • A namespace that inherits the judgment from a template uses the template’s alert, and gets its own warning and event from its own answers.

Turn on suggestions

Discovery sends a sample of your documents to a third-party model provider (the same one that suggests parts, and one of the subprocessors that the data processing agreement lists), so discovery is off by default. An org admin turns on Suggestions in the organization’s settings in the dashboard, and until then Brussle refuses discover with forbidden. The same setting turns on drafted wordings of a judgment’s question, which send only the question, the criteria and the options or levels to the same provider. Until it is on, Brussle refuses the drafts call with forbidden. The organization’s settings also have Automatic alternatives (alternatives_engines), which chooses the engines your outcomes score as alternatives without a name from you:
  • namespace (the default): the engines that the judgment’s own namespace uses, so a namespace’s labelled contexts go only to providers that already get its data.
  • organization: the engines that any namespace of the organization uses, so a namespace’s labelled contexts can go to a provider that only another namespace uses, and the quote of each run names such a provider first, in new_providers.
Only admins and owners change these settings.

Run discovery

Send POST /namespaces/{ns}/judgments/{name}/discover with two values:
  • window: how far back to look. The default is 7 days.
  • count: the maximum number of new options that you want. It is 1 to 10, and the default is 5.
Brussle responds 202 with a discover job, which does three steps:
  1. It samples the escape. It selects up to 200 documents at random from the escape. A document is in the escape when its latest answer was made within the window and is none_of_the_above. A document whose escape_p is at or above the lowest named threshold on none_of_the_above is in the escape too, when the judgment has such thresholds. Brussle leaves out a document that was deleted, or whose current answer is no longer in the escape.
  2. It asks for options. It compiles the sample with the judgment’s context recipe, as for judging, and sends it to the provider with your question and your current options. The provider gets each image that the recipe names as its reference and never the image itself, and proposes up to count new options, each with a description and the sampled documents it covers.
  3. It checks the options. It judges the sample in shadow with the proposed options beside the current ones, as a shadow report does for a new version. The check is free and changes no answer.
Discovery is free, with 10 calls a day for each organization, across all its namespaces and judgments.
  • These calls are separate from the daily calls of suggested parts, and neither uses the other’s.
  • After 10 calls, Brussle refuses with rate_limited, with 10 in details.limit and the next midnight UTC in details.resets_at.
  • The job uses a call when Brussle creates it. When the provider is busy, the job waits rather than fails.
  • Brussle gives the call back if a job fails before the provider did any work for it.

Read the proposal

A done job’s proposal holds the options of a new version, the current options first:
  • escape_documents is the number of documents in the window that got the escape option.
  • sampled is the number of those documents that the job read.
  • absorbs is the number of sampled documents that the proposed version answered with that option.
  • sample_ids are the documents that the provider said the option covers, so open some of them to see what the option really means.
  • unlabelled is the number of sampled documents that the proposed version still answered none_of_the_above. A large number means that the escape holds more than one new thing, or things that no option should cover.
The provider can propose fewer options than count, or none when the documents in the escape share nothing new, and that job is still done:
  • proposed is empty.
  • options are your current options.
  • unlabelled counts the sampled documents in the escape.

When a job fails

A job fails only when it got no options to check, and then proposal is null and error says why:

Review before you create the version

The proposal is a draft, so review it before you use it:
  • Some proposals are a narrower case of an option you have. Such a proposal, added as it is, takes documents from its parent option, so fold it into the parent option’s description or delete it.
  • A new option next to an old one does not take all of its documents. The old option keeps some, so write the two descriptions so that the line between them is clear, and read the shadow report when you activate.
  • A small new kind of document may not come back as its own option. Look for it in unlabelled and in the sampled documents.
Create the version with the options you chose, as you create any version. When you activate it, Brussle makes the usual shadow report over up to 1,000 of your documents. It shows what would change before anything changes, and you confirm once it looks right.

After you activate the new options

The new options are a new version, and old and new answers do not mix:
  • Each answer records its version in judgment_version.
  • An answer from the earlier version reads stale, with stale_reason older_version. answers: "fresh_only" leaves it out.
  • Brussle judges it again with the new options when the document changes, or when a backfill reaches it. Confirming the shadow report starts that backfill, at the cost the report shows.
  • To find the answers that the new options made, filter on answers.<judgment>.judgment_version.
The next discovery’s sample does not look at the version, so an earlier version’s answer that is still none_of_the_above can be in it. Let the backfill finish before you run discovery again, so that the sample shows what the new options leave in the escape. The judgment’s Discover tab in the dashboard shows the proposal as a list of options you can edit, with the change to the definition beside it, and creates the version from what you edited.

Limits