-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Closed
Description
Is your feature request related to a problem? Please describe.
Output of valid JSON, YAML, or alikes from a model is challenging. Models hallucinates, prompts needs to be fine-tuned, and there is no guarantee it spits valid output format.
Describe the solution you'd like
A way to constrain the output with a grammar. Ideally, would be great to have here as an endpoint this https://twitter.com/GrantSlatton/status/1660348210605596672 - grantslatton/llama.cpp@007e26a .
Describe alternatives you've considered
N/A
Additional context
Metadata
Metadata
Assignees
Labels
No labels