https://www.boundaryml.com logo
🟡 Using Pydantic data model with BAML
# questions
m
Hello. I understand the purpose of BAML and the adavantages (at prompt level). I know BAML is converted to Pydantic objects that are instantiated using the JSON returned from the LLM. My question is the following: if I already have a data model defined as Pydantic objects, can I use those with BAML directly?
a
Unfortunately not yet, you have to create the same version of the model in Baml.
m
@Antonio Sarosi (BAML 🐑) is there a utility to convert Pydantic to BAML?
a
Try chat.boundaryml.com
But nothing automated yet
m
@aaronv (BAML) is this something you plan to support in automated way?
a
not anytime soon unfortunately
m
🙁
t
m
Thank you @thierrycaminel , I will have a look
4 Views