llama-stack/llama_stack/distribution
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
..
routers Add support for Structured Output / Guided decoding (#281) 2024-10-22 12:53:34 -07:00
server fix sse_generator async 2024-10-21 14:03:42 -07:00
utils Add an introspection "Api.inspect" API 2024-10-02 15:41:14 -07:00
__init__.py API Updates (#73) 2024-09-17 19:51:35 -07:00
build.py Kill a derpy import 2024-10-03 11:25:58 -07:00
build_conda_env.sh fix prompt guard (#177) 2024-10-03 11:07:53 -07:00
build_container.sh add more distro templates (#279) 2024-10-21 18:15:08 -07:00
common.sh API Updates (#73) 2024-09-17 19:51:35 -07:00
configure.py Remove "routing_table" and "routing_key" concepts for the user (#201) 2024-10-10 10:24:13 -07:00
configure_container.sh docker: Check for selinux before using --security-opt (#167) 2024-10-02 10:37:41 -07:00
datatypes.py Remove "routing_table" and "routing_key" concepts for the user (#201) 2024-10-10 10:24:13 -07:00
distribution.py A bit cleanup to avoid breakages 2024-10-02 21:31:09 -07:00
inspect.py Remove "routing_table" and "routing_key" concepts for the user (#201) 2024-10-10 10:24:13 -07:00
request_headers.py provider_id => provider_type, adapter_id => adapter_type 2024-10-02 14:05:59 -07:00
resolver.py Small rename 2024-10-18 14:41:38 -07:00
start_conda_env.sh API Updates (#73) 2024-09-17 19:51:35 -07:00
start_container.sh docker: Check for selinux before using --security-opt (#167) 2024-10-02 10:37:41 -07:00