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

[BUG] Allow TextClassification to generate text without structured generation #991

Closed
plaguss opened this issue Sep 19, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@plaguss
Copy link
Contributor

plaguss commented Sep 19, 2024

Describe the bug
TextClassification only generates structured text, which can result on errors hard to get.

To Reproduce
Code to reproduce

Expected behaviour
Work as any other task

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • Package version:
  • Python version:

Additional context
Add any other context about the problem here.

@plaguss
Copy link
Contributor Author

plaguss commented Oct 7, 2024

One can just pass the use_default_structured_output and use the default parser, the prompt would not change, and it should work if the model follows the instruction (but while testing, the results are almost always better using the structured output by default

@plaguss plaguss closed this as completed Oct 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant