Boundary

HomeBlogPodcastTeam
DocsStar on GitHub
2,107

BAML Thoughts

Insights, tutorials, and updates from the BAML team. Stay ahead with the latest in AI development.

Get the latest posts delivered to your inbox

Browse by category

BAML Background
Research9 min read

Prompting vs JSON Mode vs Function Calling vs Constrained Generation vs SAP

A technical explanation of every way to extract structed data from an LLM

Vaibhav Gupta
By Vaibhav Guptaabout 1 year ago
Read More
BAML Background
Engineering8 min read

How to write a Zed extension for a made up language

Exploring the fascinating world of Wasm, Zed extensions and LSP

Egor Lukiyanov

Egor Lukiyanov

about 2 months ago

Read
BAML Background
Engineering2 min read

The curious case of environment variables

Environment variables in BAML are not as simple as they seem. It's tricky to pass and read them from the generated languages runtime. This post talks about how we solved this problem by lazily loading them!

Rahul Tiwari

Rahul Tiwari

about 2 months ago

Read
BAML Background
Announcements5 min read

Tech Preview: Workflows

Specify complex workflows directly in BAML

Greg Hale

Greg Hale

about 2 months ago

Read
BAML Background
Research8 min read

Lambda the Ultimate AI Agent

A new take on Agentic frameworks

Greg Hale

Greg Hale

3 months ago

Read
BAML Background
Tutorials12 min read

Tutorial - An Agentic AI App with Streaming

An end-to-end agentic chatbot tutorial for React devs

Greg Hale

Greg Hale

3 months ago

Read
BAML Background
Tutorials1 min read

Tool use with Llama API (and reasoning)

How to do tool-calling or function-calling with Llama API (with reasoning)

Vaibhav Gupta

Vaibhav Gupta

3 months ago

Read
BAML Background
Tutorials1 min read

Structured outputs with Llama 4

How to do tool-calling or function-calling with Llama 4

Vaibhav Gupta

Vaibhav Gupta

4 months ago

Read
BAML Background
Tutorials1 min read

Structured outputs with QwQ 32B

How to use QwQ 32B to do function calling or tool calls

Aaron Villalpando

Aaron Villalpando

5 months ago

Read
BAML Background
Tutorials1 min read

Full stack BAML with React/Next.js

Auto generated React hooks for your BAML functions

Chris Watts

Chris Watts

6 months ago

Read
BAML Background
Tutorials1 min read

Structured outputs with Gemini 2.0

How to do tool-calling or function-calling with Gemini 2.0

Aaron Villalpando

Aaron Villalpando

6 months ago

Read
BAML Background
Tutorials1 min read

Structured outputs with o3-mini

How to do tool-calling or function-calling with o3-mini

Vaibhav Gupta

Vaibhav Gupta

6 months ago

Read
BAML Background
Launch Week4 min read

BAML Launch Week Day 5

Roadmap to BAML 1.0

Vaibhav Gupta

Vaibhav Gupta

6 months ago

Read
BAML Background
Launch Week5 min read

BAML Launch Week Day 4

Semantic Streaming

Greg Hale

Greg Hale

6 months ago

Read
BAML Background
Launch Week3 min read

BAML Launch Week Day 3

Type System

Antonio Sarosi

Antonio Sarosi

6 months ago

Read
BAML Background
Launch Week1 min read

BAML Launch Week Day 2

BAML Chat

Sam Lijin

Sam Lijin

6 months ago

Read
BAML Background
Launch Week2 min read

BAML Launch Week Day 1

VS Code LLM Playground 2.0

Aaron Villalpando

Aaron Villalpando

6 months ago

Read
BAML Background
Research6 min read

AI Agents Need a New Syntax

A proposal for a new way to build AI applications and agents

Vaibhav Gupta

Vaibhav Gupta

6 months ago

Read
BAML Background
Launch Week1 min read

BAML Launch Week Announcement

Join us on January 27-31

Vaibhav Gupta

Vaibhav Gupta

7 months ago

Read
BAML Background
Tutorials1 min read

Structured outputs with Deepseek R1

How to do tool-calling or function-calling with Deepseek R1

Vaibhav Gupta

Vaibhav Gupta

7 months ago

Read
BAML Background
Announcements1 min read

Cursor support for BAML

BAML is now supported in Cursor

Sam Lijin

Sam Lijin

8 months ago

Read
BAML Background
Tutorials1 min read

Structured outputs with Open AI O1

How to use Open AI O1 to do function calling or tool calls

Vaibhav Gupta

Vaibhav Gupta

8 months ago

Read
BAML Background
Announcements1 min read

A new trick for generating code in JSON

BAML now supports parsing triple-backtick code blocks in LLM outputs

Sam Lijin

Sam Lijin

8 months ago

Read
BAML Background
Announcements2 min read

Announcing LLM Eval Support for Python, Ruby, Typescript, Go, and more.

Use BAML to evaluate your LLM applications regardless of the language you use to call them

Greg Hale

Greg Hale

8 months ago

Read
BAML Background
Tutorials3 min read

Generating Structured Output from a Dynamic JSON schema

Modify LLM response models at runtime.

Aaron Villalpando

Aaron Villalpando

8 months ago

Read
BAML Background
Research7 min read

Every Way To Get Structured Output From LLMs

A survey of every framework for extracting structured output from LLMs, and how they compare.

Sam Lijin

Sam Lijin

8 months ago

Read
BAML Background
Engineering3 min read

Semantic Streaming vs Token-based Streaming

A new technique for streaming structured output from LLMs

Aaron Villalpando

Aaron Villalpando

9 months ago

Read
BAML Background
Announcements2 min read

Bringing Structured Outputs and Schema-Aligned Parsing to Golang, Java, PHP, Ruby, Rust, and More

BAML now integrates with OpenAPI, allowing you to call BAML functions from any language.

Sam Lijin

Sam Lijin

11 months ago

Read
BAML Background
Tutorials2 min read

Structured Output with Ollama

Getting structured output out of Ollama, using novel parsing techniques.

Sam Lijin

Sam Lijin

12 months ago

Read
BAML Background
Research3 min read

Beating OpenAI's structured outputs on cost, accuracy and speed — An interactive deep-dive

We leveraged a novel technique, schema-aligned parsing, to achieve SOTA on BFCL with every LLM.

Vaibhav Gupta

Vaibhav Gupta

12 months ago

Read
BAML Background
Engineering1 min read

Transparency as a Tenet

Exposing the inner workings of BAML

Anish Palakurthi

Anish Palakurthi

about 1 year ago

Read
BAML Background
Engineering6 min read

Building a New Programming Language in 2024, pt. 1

An overview of the work that goes into building a new programming language.

Sam Lijin

Sam Lijin

about 1 year ago

Read
BAML Background
Announcements2 min read

Use Audio with your LLMs!

Capturing Non-Text Information and Richer Context with LLMs

Anish Palakurthi

Anish Palakurthi

about 1 year ago

Read
BAML Background
Announcements1 min read

Announcing Gemini Support!

Applying structure to Gemini output with BAML

Anish Palakurthi

Anish Palakurthi

about 1 year ago

Read
BAML Background
Tutorials4 min read

Building RAG in Ruby, using BAML, with streaming!

How to do RAG with Ruby streaming AI APIs

Sam Lijin

Sam Lijin

about 1 year ago

Read
BAML Background
Tutorials4 min read

Build RAG with citations in NextJS (with streaming!)

How to do RAG with NextJS streaming AI APIs

Aaron Villalpando

Aaron Villalpando

about 1 year ago

Read
BAML Background
Research8 min read

Your prompts are using 4x more tokens than you need

A deep-dive into how to use type-definitions instead of json schemas in prompt engineering to improve accuracy and reduce costs

Aaron Villalpando

Aaron Villalpando

over 1 year ago

Read
BAML Background
Announcements1 min read

Announcing BAML - The typesafe interface to LLMs, with built-in testing, guardrails and observability

BAML is a lightweight programming language to help perform structured prompting in a typesafe way.

Vaibhav Gupta

Vaibhav Gupta

over 1 year ago

Read

Boundary

Open source toolkit for AI development. Build type-safe AI applications with your team - all with confidence and reliability.

  • Company
  • About Us
  • Why BAML?
  • Privacy Policy
  • Terms of Service
  • Resources
  • Changelog
  • Docs
  • Social
  • GitHub
  • Twitter
  • Discord
  • LinkedIn
  • YouTube