Skip to content

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

Notifications You must be signed in to change notification settings

tomsquest/llm_extract_books

Repository files navigation

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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages