Encyclopedia Evalica / Datasets / flush()

flush() illustration

flush()

/fluhsh/An SDK method that forces all buffered dataset records or trace spans to be written to Braintrust immediately. This is useful in short-lived jobs (like serverless) where buffered data might not be sent before the process exits. (verb)

We call flush() at the end of the job to guarantee traces are exported.

Related Datasets terms

From the docs

Get started with Evals

Braintrust is the AI observability and eval platform for production AI. By connecting evals and observability in one workflow, teams at Notion, Stripe, Zapier, Vercel, and Ramp ship quality AI products at scale.

Start building