Members-Only
Recent Talks & Demos are for members only
You must be an AI Tinkerers active member to view these talks and demos.
BAML: Rust algorithm guarantees JSON
Learn how BAML uses a Rust‑based algorithm to automatically fix LLM‑generated JSON, enforce the schema, and handle markdown, missing commas, without extra calls.
When using an LLM, its important to be able to parse the response reliably, many times JSON.parse doesn’t work due to missing quotes, new lines, or when it does work, the exact schema may not be followed. You could have wanted an array of numbers, but gotten just 1.
Using knowledge of your schema, BAML fixes those errors for you and provide a layer of guarantee, it will either be your schema or an exception will be raised. (0 additional LLM calls, runs locally in the package, built in rust)
During the talk we’ll see:
- a few examples of BAML fixing the errors
- walkthrough parts of the algorithm
- Talk about edge cases like markdown and missing commas and how we address them
BAML engineers type-safe, multi-language LLM prompts with reliable tool-calling via Rust.
BAML: expressive language for reliable structured LLM output generation.