Coming from the Decisions API or Jev
OpenAI’s Decisions API (gpt-6-luna) and TypeSafe’s System One API (Jev) answer typed questions about an input. Brussle runs both models as engines, and its decision columns ask the same questions (bool, choice and score). Each API answers once, when you call it, whereas a judgment keeps its answer for each document and judges the document again when what it reads changes.
Some things that you do around these APIs are part of Brussle:
- What a probability means for you. Each API returns the model’s own probability, and in Brussle
pis that number. Once your outcomes fit a correction that beats it on held-out outcomes, each answer also carriescalibrated(the corrected number, its 95% interval, and the fit and run that made it). See how sure a corrected number is. - Thresholds. The Decisions API guide tells you to set thresholds from labelled examples. In Brussle you post outcomes instead, and the threshold recommender picks a threshold for a precision or recall target, on the Team plan and above.
- Answers that depend on other answers. With the APIs you send a separate request for each step, while in Brussle a roll-up reads the answers of other judgments and stays current when they change.
- Which question and model made an answer. With the APIs you store this yourself, while in Brussle each answer records its
judgment_versionand itsengine_version.
An AI column in your own database
Your own database can already keep an AI column:- A trigger runs when a record changes.
- A worker sends the record to a model, for example through the Decisions API.
- The worker writes the answer back to the column.
Where that column breaks
Your database assumes that a computed value is instant, free and always the same. A value that a model computes takes seconds, costs money each time, and changes when the model changes, so an AI column in your own database breaks on four problems, in the order teams usually meet them:
You can build the four solutions yourself. The problem of other records alone needs a map of which records read which other records, a queue, a debounce for bursts of writes, a check that skips unchanged inputs, and a cap on cost.
A materialized view
A materialized view stores the result of a query, so that you can read it fast. A judgment is similar, since Brussle computes each answer from your data and stores it, and queries read the stored answer. The two differ in these ways:AI functions in a data warehouse
Data warehouses have AI functions that call a model from SQL: Snowflake Cortex AI functions, BigQuery AI functions and Databricks AI Functions. They are the right tool for analysis over a table: classify a batch of rows, summarize text, or filter rows in a query. A warehouse can also keep their results. A Snowflake dynamic table can hold a Cortex AI function in itsSELECT and refresh it incrementally, but its target lag cannot go below 60 seconds, and staleness runs past the target when refreshes run long (Snowflake: target lag). A BigQuery materialized view cannot refresh a generative AI function incrementally, and a non-incremental view is refreshed in its entirety (BigQuery: materialized views).
Brussle keeps an answer on each document for your product to read, and records whether that answer is still current:
For a one-time analysis of a table, use the AI functions of your warehouse.
Who Brussle is for
Brussle is for teams whose AI columns must stay correct, most of all where a value depends on more than one record. For example:- matching records to each other, such as a payment to the open invoice that it settles;
- checking a record against the records that it must agree with;
- detecting what changed, such as a contract section against its earlier revision;
- keeping counts current that your process depends on.
- one-off batch jobs, such as an analysis of a table in your data warehouse;
- columns computed once and read as they are;
- teams that will build this system themselves.
What it costs
Each answer costs more than calling the model directly, since you pay for the work around the call: the skipped inputs, the versions, the freshness and the relations, and the outcomes and the fit. If your column does not have these four problems, call the model directly. See pricing.Move a column across
You can move an AI column whose answer reads other records into Brussle. Take, for example, a worker that sends each new payment to a model, with the open invoices of the same customer. The model names the invoice that the payment settles, and the worker writes the invoice’sid to a column.
1. Turn the prompt into a judgment
Most prompts match one of the judgment types:
Then do these steps:
- Move the prompt’s instructions into
questionandcriteria. - Move the fields of the record that the prompt reads into a context recipe.
- Move the records that your worker fetched into a relation. For the payment, a blocking relation reads the open invoices that share the payment’s key. See match one record to another.
choice judgment gets an extra option, none_of_the_above, with its probability in escape_p. Use this option where your prompt said “otherwise, answer none”.
2. Mirror your writes
Send each create, update and delete from your system of record to the write API. Send the payments and the invoices to the same namespace, since a relation reads only one namespace. After each change, upsert the whole record, as in keep your data in sync. Writes are idempotent, so your sync can retry a write at any time. Your database stays your system of record, and Brussle holds a copy. To load the records that you already have, see import existing data. Choose the freshness policy of each judgment:- If you filter on the answers, or a new invoice must change a payment’s answer, use
on_change. - If you show the answer only on a detail page, you can use
on_read, since anon_readjudgment costs nothing until someone reads the answer.
3. Backfill with the estimate in front of you
Your existing payments have no answers yet, so a backfill judges them. Ask for the estimate of the backfill first:- Read the estimate.
- Set a namespace budget.
- Send the backfill again with
confirm=True.
4. Compare the two columns side by side
- Run your AI column and Brussle side by side on live traffic.
- Find the payments where the two answers disagree.
- Open some of these payments in the dashboard to see the exact context that the engine read (the invoices included) and its raw output.
- Post the match that your team confirms for each payment as an outcome. On the Team plan and above, an outcome rule can make these outcomes from your own writes.
- Change the thresholds before you change the question.
5. Cut over, then keep versions apart
To cut over, read answers from queries or from a get of the document. Do not make a user’s request wait for a new answer, sincewait_for on a write is for scripts and tests (see tradeoffs).
Then turn off the old column. From then on, each answer records its judgment_version and its engine_version, and Brussle keeps each answer with the context that made it.
When you change the question later, create a new version of the judgment:
- Activate the new version, and Brussle starts a shadow report that compares the two versions on a sample of documents.
- Confirm once the report looks right.
- Run a backfill to judge the documents again. The backfill shows its cost before you confirm it.
stale, with the reason older_version, until Brussle judges the document again, so a query with answers: "fresh_only" leaves it out.
See versions.