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
We currently support regex-guided generation, so that to return a date in the Python datetime format you would do:
import outlines.generate as generate model = ... result = generate.regex(model, "r'\s+(?=\d{2}(?:\d{2})?-\d{1,2}-\d{1,2}\b)'")
Instead we would like to be able to pass Python types:
from typing import List import datetime import outlines.generate as generate model = ... result = generate.type(model, datetime.datetime) result = generate.type(model, List[str]) result = generate.type(model, int)
The text was updated successfully, but these errors were encountered:
text.generate.format
Successfully merging a pull request may close this issue.
We currently support regex-guided generation, so that to return a date in the Python datetime format you would do:
Instead we would like to be able to pass Python types:
The text was updated successfully, but these errors were encountered: