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
boolorscorejudgment 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
Setescape_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.
- The judgment gets a warning.
GETon the judgment liststaxonomy_driftinwarnings, 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_drifteach 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
nullturns 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 refusesdiscover 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, innew_providers.
Run discovery
SendPOST /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.
202 with a discover job, which does three steps:
- 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 whoseescape_pis at or above the lowest named threshold onnone_of_the_aboveis 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. - 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
countnew options, each with a description and the sampled documents it covers. - 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.
- 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 indetails.limitand the next midnight UTC indetails.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
Adone job’s proposal holds the options of a new version, the current options first:
escape_documentsis the number of documents in the window that got the escape option.sampledis the number of those documents that the job read.absorbsis the number of sampled documents that the proposed version answered with that option.sample_idsare the documents that the provider said the option covers, so open some of them to see what the option really means.unlabelledis the number of sampled documents that the proposed version still answerednone_of_the_above. A large number means that the escape holds more than one new thing, or things that no option should cover.
count, or none when the documents in the escape share nothing new, and that job is still done:
proposedis empty.optionsare your current options.unlabelledcounts the sampled documents in the escape.
When a job fails
A job fails only when it got no options to check, and thenproposal 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
unlabelledand in the sampled documents.
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, withstale_reasonolder_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.
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.