IMO the thing you’re doing is gonna be better than dumping raw json
Vaibhav (BAML 🐑)
08/28/2025, 2:39 PM
Mostly cause json will have a bunch of noise you don’t care about (like “ and , that the LLM could otherwise ignore)
Vaibhav (BAML 🐑)
08/28/2025, 2:39 PM
That said with AI it’s really hard to know for sure what is the right thing so the best you can do is just try
r
rjurney
08/29/2025, 12:43 AM
Why aren’t you using a BAML schema with descriptions and optional fields and instructing the prompt to leave out null values on input and output unless a field is required? That would work way better, I think. Convert to your XML format in local software, it’s one format change per prompt, right?