What is baml_src?
baml_src is where you keep all your BAML files, and where all the prompt-related code lives. It must be named baml_src
for our tooling to pick it up, but it can live wherever you want.
It helps keep your project organized, and makes it easy to separate prompt engineering from the rest of your code.
Some things to note:
- All declarations within this directory are accessible across all files contained in the
baml_src
folder. - You can have multiple files, and even nest subdirectories.
You don’t need to worry about including this directory when deploying your code. See: Deploying