We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Enum
To make the model choose between different options we currently use generate.choice. Here I suggest we also use Enums to represent multiple choices:
generate.choice
from enum import Enum class choices(Enum): a: str = "Choice A" b: str = "Choice B"
This will probably make more sense once the API has been refactored.
The text was updated successfully, but these errors were encountered:
rlouf
No branches or pull requests
Presentation of the new feature
To make the model choose between different options we currently use
generate.choice
. Here I suggest we also useEnum
s to represent multiple choices:Where does it fit in Outlines?
This will probably make more sense once the API has been refactored.
The text was updated successfully, but these errors were encountered: