The Data Exchange with Ben Lorica cover image

The Data Exchange with Ben Lorica

Prompts as Functions: The BAML Revolution in AI Engineering

Apr 3, 2025
David Hughes, a Principal Data & AI Solution Architect at Enterprise Knowledge, shares insights on BAML, a revolutionary framework that turns prompts into structured functions for AI applications. He discusses the flexibility of treating prompts as functions, which enhances developer productivity and reduces costs. The conversation also explores the capabilities of BAML in agentic AI development, advancements in multimodal retrieval, and the dynamic construction of knowledge graphs, all aimed at improving accuracy and explainability in language models.
38:49

Episode guests

Podcast summary created with Snipd AI

Quick takeaways

  • BAML revolutionizes AI engineering by treating prompts as structured functions, enhancing determinism and maintainability in application development.
  • The schema-based approach of BAML enables efficient iteration and flexibility, facilitating rapid adaptation to evolving AI model landscapes.

Deep dives

Aha Moment and Introduction to BAML

The guest shares an impactful realization about BAML during a morning run while listening to a podcast interview with the CEO of Boundary ML. Prior to discovering BAML, he struggled with traditional frameworks that required extensive refactoring with any changes in input or models, leading to a brittle development process. His 'aha moment' came when he learned that BAML treats prompts as structured functions, allowing for a more rigorous and comprehensive interaction with language models. Consequently, he found that he would not need to rely on other frameworks anymore after testing BAML, marking a significant shift in his approach to prompt engineering.

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode