Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Structured JSON output with Pydantic integration #1565

Open
cebtenzzre opened this issue Oct 24, 2023 · 0 comments
Open

Structured JSON output with Pydantic integration #1565

cebtenzzre opened this issue Oct 24, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@cebtenzzre
Copy link
Member

Feature request

We could leverage the grammar-based sampling work introduced in ggerganov/llama.cpp#1773 to provide reliable JSON output via the python bindings.

Motivation

This would make the python bindings much more useful as a tool that can be used in a predictable manner for all kinds of tasks.

Your contribution

I intend to submit a PR implementing this feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants
@manyoso @cebtenzzre and others