https://www.boundaryml.com logo
🟡 baml output format/schema functionality inquiry
# questions
a
Some inference providers like [Groq](https://console.groq.com/docs/structured-outputs) allow you to provide fields like
json_object
or
json_schema
. Is there any functionality in baml to pass the output format/schema to these fields?
v
we allow passthrough parameters for most things like temperature etc. for structured outputs atm we don't technically support
json_object
or
json_schema
fields. you should be able to use the BAML type-system with
{{ ctx.output_format }}
to get similar quality (if not better) results. Is there something you were looking to express?
r
It is well established that structured outputs from LLMs sacrifice quality a great deal, right? I’ve seen papers asserting this, anyway. This is why you take the approach you do?
v
Yep exactly. We should make a video on this soon