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

[logprob] to force llm to select from a list of options as output. #142

Open
liyin2015 opened this issue Jul 22, 2024 · 1 comment
Open
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@liyin2015
Copy link
Collaborator

For models, especially open source ones with logprob available, we can potentially force model to select from a set of options such as select(["apple", "orange"). this is very helpful for using genai to do classification tasks.

This can be a parser_completion function in the model_client where user can customize.

Guidance: https://github.com/guidance-ai/guidance/

@liyin2015 liyin2015 added enhancement New feature or request help wanted Extra attention is needed labels Jul 22, 2024
@liyin2015 liyin2015 changed the title [logprob] something similar to guidance select [logprob] to force llm to select from a list of options as output. Jul 22, 2024
@dasdebanna
Copy link

Hello @liyin2015 is this issue open or resolved. If it's not resolved I'm interested in working on this.

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

No branches or pull requests

2 participants