llama-stack/llama_stack
Ashwin Bharambe c06718fbd5
Add support for Structured Output / Guided decoding (#281)
Added support for structured output in the API and added a reference implementation for meta-reference.

A few notes:

* Two formats are specified in the API: Json schema and EBNF based grammar
* Implementation only supports Json for now
We use lm-format-enhancer to provide the implementation right now but may change this especially because BNF grammars aren't supported by that library.
Fireworks has support for structured output and Together has limited supported for it too. Subsequent PRs will add these changes. We would like all our inference providers to provide structured output for llama models since it is an extremely important and highly sought-after need by the developers.
2024-10-22 12:53:34 -07:00
..
apis Add support for Structured Output / Guided decoding (#281) 2024-10-22 12:53:34 -07:00
cli llama stack distributions / templates / docker refactor (#266) 2024-10-21 11:17:53 -07:00
distribution Add support for Structured Output / Guided decoding (#281) 2024-10-22 12:53:34 -07:00
providers Add support for Structured Output / Guided decoding (#281) 2024-10-22 12:53:34 -07:00
scripts Add a test for CLI, but not fully done so disabled 2024-09-19 13:27:07 -07:00
__init__.py API Updates (#73) 2024-09-17 19:51:35 -07:00