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

Enable output parser for models not support json schema. #56

Open
vincilee2 opened this issue Apr 1, 2024 · 1 comment
Open

Enable output parser for models not support json schema. #56

vincilee2 opened this issue Apr 1, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@vincilee2
Copy link

Currently, not all output_schemas support customized output parsers.

For example in the classification output schemes, only json schemas are available, meaning this prompt only works well for the models which support json schema output.

To be compatible with other LLMs, a customized output parser is required.

@Eladlev Eladlev added enhancement New feature or request and removed enhancement New feature or request labels Apr 1, 2024
@Eladlev
Copy link
Owner

Eladlev commented Apr 1, 2024

We also support the 'completion' mode (for non-OpenAI models), this can be done by changing the meta prompts to meta_prompts_completion

Regarding supporting more methods to enforce the structure, we would like to integrate libraries such as LM Format Enforcer

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

2 participants