The three largest tradeoffs
- If a column is computed once and read as it is, a column in your own database is cheaper. A trigger and a direct call to the model are enough for that column. Brussle is for answers that must skip unchanged inputs, keep versions apart, say whether they are current, read other documents, or be measured and corrected against your outcomes. See when your own database is enough.
- Each answer costs more than calling the model directly. You pay for the work around the call: Brussle fits and tests a correction on your outcomes, finds the documents that a write affects, keeps each answer current, and records the versions and the inputs. See pricing.
- The engine reads what the recipe shows. It does not forecast. The engine answers a question about the text that the recipe shows it, and about the images if the engine reads images.
- Ask a narrow question about one document, with the right related document beside it.
- Do not ask one broad question over many related documents, since a narrow question for each document, with counts kept as
featureson abooljudgment, is the stronger pattern. - For a question about what will happen, keep the counts as
featuresand let the fit on your outcomes weigh them. The calibration report’sfeatures_onlyshows what the engine adds. See context recipes.
Speed and limits
The latency and freshness numbers on this page are targets, which Brussle does not guarantee.
-
A write returns only once it is durable, since Brussle durably commits each batch of writes before it acknowledges the batch.
- Brussle acknowledges the writes to one namespace in order, so when a batch is slow to store, the next writes to the namespace wait for it.
- Brussle does not replace your transactional database. If a write that waits for its commit is too slow for your use case, Brussle is not the right fit for that use case.
- Answers lag writes by seconds while the engine is healthy and keeps up with your writes. A burst of writes waits its turn (see the freshness lag below), and you can always see the freshness of an answer.
-
Brussle is not for the request path. A new answer takes seconds, so Brussle fits work that runs beside your product (triage queues, moderation and risk flags, for example) and not a new answer that a user’s request waits for.
wait_formakes a write wait for its answers, so usewait_forfor scripts and tests, not to serve a user.- Answers that already exist are fast to read, since reading one makes no engine call.
-
A document can stay
faileduntil you write it again, in two cases:- The document fails for a reason of its own (the engine refuses the document, for example, or cannot read it).
- Server errors or timeouts for the document continue on a retry 24 hours after the document last changed.
failed. Brussle holds thempendingand judges them when the engine recovers. A backfill judges the documents that stayfailedagain, without a new write. See evaluations. -
Cold queries are slower than warm ones. A query is cold the first time after a namespace was idle.
- On a 1M-document namespace, the warm p90 target is less than 10 ms for
eventualreads, and the cold p90 target is less than 500 ms. strongreads are the default. Astrongread sees the newest writes, so its warm time is longer.- Pinning keeps a namespace warm at a price, while warming loads a namespace before a session for free.
- Some judgments read the document that each judged document points at (see referenced document). On a namespace where many referenced documents changed, a query on such a judgment can take longer the first time after a while, although later queries are not slower.
- On a 1M-document namespace, the warm p90 target is less than 10 ms for
- A namespace holds at most 100,000,000 documents or 256 GB. Brussle refuses a write past either limit. A judgment reads related documents only in the judged document’s namespace, so the documents that one judgment reads together must fit in one namespace. Split larger data by tenant, or by period, before you import it. See namespace limits.
-
A filter on an answer is fast when the judged documents were written together, and slower when they are spread thinly across a large namespace.
- Some filters let through only a document that has an answer (for example
answers.settles.thresholds.unmatched Eq true,answers.settles.freshness Eq freshandanswers: "fresh_only"), so they skip the documents without that answer. - These filters are fastest when the judged documents have ids that are near each other, because you wrote the documents together or their ids share a prefix.
- When the judged documents are spread thinly across a large namespace, the query reads most of the namespace.
- Some filters let through a document without an answer:
NotEq,Notandfreshness Eq pending. These filters read every document, because documents without an answer are results of the query. A ranking by an answer without a filter of the first kind also reads every document.
- Some filters let through only a document that has an answer (for example
-
For
on_changejudgments, the freshness lag target is less than 5 s at p90, while the engine is healthy and keeps up with your writes.- Brussle judges a burst as fast as the engine’s rate limit allows, and writes beyond that rate wait in line.
-
Answers that read related documents lag the related documents. The lag is the debounce (
debounce_ms), and at most the ceiling (max_wait_ms).- The debounce is 0 by default, and 10 minutes by default for a judgment with features.
- This lag is the price of judging an account once for each burst of tickets instead of once for each ticket, so a question about a single event (a fraudulent payment, for example) must stay a judgment of that document.
- The cost of a judgment with related documents follows how often the related documents change. When you create such a judgment, Brussle replays your writes of the last 30 days to get the cost, and shows the monthly cost before you confirm.
-
A judgment that reads the document each judged document points at has a fan-out. When the referenced document changes, Brussle judges again each judged document in the judgment’s re-judge scope, and this step is the fan-out. Its cost is the number of changes × the number of documents in scope, and these controls limit it:
- Only a change to what the relation shows counts.
- Bands hide a move inside a band.
- By default, the re-judge scope is the documents created in the last 30 days.
- Brussle debounces a burst of changes to one fan-out.
- If changes never stop, Brussle still does a fan-out at least once for each ceiling (one hour by default), for as long as the changes continue.
-
A fan-out runs behind ordinary judging. A fan-out uses at most half of your namespace’s engine requests by default, so a large fan-out takes hours.
- A fan-out has no job, but the judgment’s
fanout_windowshows how much of the judgment’s rolling limit the fan-outs used. - Answers outside the re-judge scope keep the version of the referenced document that they read, and their
watermarksays which version that is. These answers readstaleuntil Brussle judges their own document again.
- A fan-out has no job, but the judgment’s
-
Large backfills can take days, and each backfill estimate shows the duration before you confirm, since each engine judges at its own rate.
- A backfill’s job judges and counts only the documents that its judgment applies to, so its progress shows the documents judged out of the documents in the estimate.
Answers and their numbers
- Probabilities come from the engine until your outcomes correct them. Each answer shows which of its numbers are corrected.
- Answers carry a
calibratedobject beside the engine’s numbers once a fit beats those numbers on outcomes that it did not use, from 50 outcomes with 15 of each kind. On a judgment with features, the answer’s own numbers are the corrected ones, from 100 outcomes. See which number your thresholds and queries read. - Brussle fits each judgment version and engine epoch again every day, but a new fit replaces the current one only when it is clearly better on the outcomes since. See when a new fit replaces the current one.
- Answers carry a
- Composite judgments need labels. Their parts share one request, so the first part costs one row and each other part costs a quarter or more. A composite judgment needs at least 50 of your labels, with at least 10 of each answer, before it can answer.
- Suggested sub-questions come from a third-party model provider, which sees a sample of your labelled examples. The response lists them. They stay off until an org admin turns on Suggestions (see where your data goes).
- An engine’s answers can vary from call to call. Jev’s probabilities vary when it gets the same question about the same text again, and OpenAI does not promise that gpt-6-luna’s stay the same:
- A document whose probability is close to a threshold can land on either side of the threshold each time Brussle judges the document.
- This variation also applies when Brussle judges a document again after a change that does not affect the question.
- For documents that close to a threshold, treat the threshold as a band rather than a line.
- A stored answer does not change on its own. Brussle never judges an unchanged context again, with four exceptions:
- A periodic judgment judges each document again at its interval, changed or not.
- The combined
pof a composite changes when a calibration run fits its combiner again, each night. - A
calibratedvalue changes when the fit it reads changes: a clearly better fit, a withdrawal, a pin or a promote, or a new engine epoch. The engine’s numbers beside it do not change. - On a judgment with features, the answer’s own numbers change when its fit changes, and on a
choicethe pick can change with them.
- The engines cannot answer “none”. Brussle adds an escape option,
none_of_the_above, to eachchoicejudgment, and shows its probability asescape_p. Forbooljudgments, a probability near 0.5 is the only signal. gpt-6-luna can decline a question. That evaluation then fails, and the answer readsfailed. - You cannot ask a question once, without a judgment. Define the judgment, then query it.
- An engine version that is not pinned has no versions for us to retire. Such a version (Jev
current, for example) uses whatever its provider serves, and each change in its behaviour that Brussle detects starts a new epoch, which theengine_versionof each answer records. When a provider announces a retirement, the judgment gets an event 30 days ahead, and from the date its changed documents readstalewithengine_retired, since we never move the judgment to a different version silently. A retirement that a provider did not announce fails each document withengine_version_unavailable. - Your system of record stays yours. You keep documents in sync with the write API, since CDC connectors are not available yet.
Consistency, stated separately
Brussle has two consistency models: one for documents and one for answers.- Documents: strong. A strong query sees the new revision and its attributes once Brussle acknowledges a write.
- An eventual query can lag by up to about 60 seconds, and when you query a namespace steadily the lag is often that long.
- Answers: eventually judged, with explicit freshness. The answer for a revision arrives seconds after Brussle acknowledges its write, while the engine is healthy and keeps up with your writes.
- The answer has
freshness: pendingorstaleuntil the new answer arrives, and names the revision it was judged for. - A query can send
answers: "fresh_only"to leave out each document whose included answers are notfresh. - A write can send
wait_for: ["settles"]to wait for the answer for its revision or a later revision, up to its timeout (wait_timeout_ms). If the answer is not ready by then, the write returns it aspending.
- The answer has