The Data Exchange with Ben Lorica

Prompts as Functions: The BAML Revolution in AI Engineering

33 snips
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.
Ask episode
AI Snips
Chapters
Transcript
Episode notes
ANECDOTE

Aha Moment with BAML

  • David Hughes had an aha moment while listening to a podcast about BAML.
  • He immediately tested it and realized its potential to solve his prompt engineering challenges.
INSIGHT

Prompts as Functions

  • BAML shifts from string-based prompts to function-based prompts.
  • This allows developers to define structured inputs and outputs, improving maintainability.
ADVICE

Focus on Schema, Not Prompts

  • Focus on defining a clear schema for desired outputs instead of prompt wording.
  • Use BAML's playground for rapid iteration and testing within your IDE.
Get the Snipd Podcast app to discover more snips from this episode
Get the app