Skip to main content
Whether you need Brussle depends on what you use today, and what Brussle gives you beyond it. If you call the Decisions API or Jev directly, start with the Decisions API and System One API mapping. If you would otherwise build an AI column in your own database, a materialized view or AI functions in a data warehouse, read the comparison with each one. Your AI column and Brussle’s hold the same kind of value, and Brussle keeps its columns current, versioned and calibrated. In Brussle, an AI column is a judgment, a document is your copy of one record, and the engine is the model that fills the column.

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 p is that number. Once your outcomes fit a correction that beats it on held-out outcomes, each answer also carries calibrated (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_version and its engine_version.

An AI column in your own database

Your own database can already keep an AI column:
  1. A trigger runs when a record changes.
  2. A worker sends the record to a model, for example through the Decisions API.
  3. The worker writes the answer back to the column.
If the column is computed once and read as it is, and never needs to stay current, versioned or corrected, this column is enough, and each answer costs less than in Brussle. Brussle still adds three things for such a column: question versions that do not mix, outcomes that measure the answers, and events when a record enters or leaves a result. If you need none of them, use 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 its SELECT 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.
The fit is strongest for teams that serve many customers of their own, and that do not have the people to build this system. Give each customer its own namespace, since a namespace that Brussle does not judge in a billing period costs only its storage. See multi-tenant platforms. Brussle is not for these cases:
  • 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’s id to a column.

1. Turn the prompt into a judgment

Most prompts match one of the judgment types: Then do these steps:
  1. Move the prompt’s instructions into question and criteria.
  2. Move the fields of the record that the prompt reads into a context recipe.
  3. 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.
If your prompts sent the same record for several questions, make one judgment for each question with one shared recipe, since Brussle answers judgments that share a recipe together. In one request the first question counts in full, and each question after the first costs a quarter of a row, plus a quarter more for each further 500 tokens of question text. The engine cannot answer “none”, so each 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 an on_read judgment 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:
The estimate shows the duration next to the cost, since engine rate limits can make a large backfill take days.
  1. Read the estimate.
  2. Set a namespace budget.
  3. Send the backfill again with confirm=True.

4. Compare the two columns side by side

  1. Run your AI column and Brussle side by side on live traffic.
  2. Find the payments where the two answers disagree.
  3. Open some of these payments in the dashboard to see the exact context that the engine read (the invoices included) and its raw output.
  4. 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.
  5. Change the thresholds before you change the question.
With 100 or more outcomes (20 of each kind), the threshold recommender picks a threshold for a precision or recall target, on the Team plan and above. You decide from your outcomes whether the answers are good enough on your data.

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, since wait_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:
  1. Activate the new version, and Brussle starts a shadow report that compares the two versions on a sample of documents.
  2. Confirm once the report looks right.
  3. Run a backfill to judge the documents again. The backfill shows its cost before you confirm it.
A document’s answer from the old version reads stale, with the reason older_version, until Brussle judges the document again, so a query with answers: "fresh_only" leaves it out. See versions.