Skip to main content

Investigate with Loop

You’ve seen Loop work through Patterns. You can also talk directly to Loop, Braintrust’s agent, to investigate logs, compare experiments, or create datasets, scorers, and dashboards. Start with a question about your project:
Run in Loop Start a Loop thread to explore your data and review the changes it proposes.

Compare prompts and models in playgrounds

Use a playground to try a different prompt or model against your dataset without editing application code. Compare outputs and scores side by side, then share the playground with teammates to review the tradeoffs. Create a playground to test your next idea interactively.

Bring human judgment into your evals

Automated scores don’t capture every aspect of quality. Have subject matter experts or teammates review traces, record scores, and correct expected outputs. Their feedback can help you check whether your scorers agree with human judgment and choose examples for your evaluation datasets. Set up human review to define what reviewers should assess, then assign and track review work.

Track quality, cost, and latency together

A fix can improve quality while increasing cost or latency. Dashboards let you track these metrics together over time and filter or group them to see which parts of your traffic behave differently. Start with your project’s built-in Cost and quality dashboard, then add charts for the metrics your team cares about. Explore dashboards to follow trends across your logs and experiments.

Run evals before changes merge

The eval you ran for your first fix can become a check on future changes. Run it on pull requests, report scores to reviewers, and configure merge gates so regressions are caught before deployment. Run evals in CI to make evaluation part of your development process.

Use saved prompts in your application

Once you’ve tested a prompt in a playground, you can call it from your application. Saving prompts in Braintrust lets your team manage prompt changes separately from application code, with versions you can reference explicitly. Use prompts in code to connect a saved prompt to your app.