Skip to content

Latest commit

 

History

History
13 lines (8 loc) · 514 Bytes

README.md

File metadata and controls

13 lines (8 loc) · 514 Bytes

Source for article "Get structured output from a Language Model using BAML"

This repository showcases the usage of BAML to parse and validate the output of an LLM.

My blog post is at: https://www.tomsquest.com/blog/2024/08/get-structured-output-from-llm-using-baml/

Happy coding! 🚀

Setup

  • poetry install
  • Copy .env.template to .env and fill the variables (eg. ANTHROPIC_API_KEY=your-apikey...)
  • If using Direnv, add dotenv and layout poetry to .envrc