-
Notifications
You must be signed in to change notification settings - Fork 659
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
Pydantic error when parsing context #747
Comments
The error you're encountering is due to Pydantic expecting an integer for the To fix this issue, you have a couple of options:
If you choose the first option, ensure that any part of your code that assigns a score to the |
How can I ensure my score values are integer ? Should I modify paperqa code ? |
To ensure your score values are integers without modifying the PaperQA code, you can use the The function parses the text to find score values and converts them to integers, ensuring that the scores are within a reasonable range (e.g., converting scores out of 100 to scores out of 10). You can use this function directly in your code to process text and extract integer scores [1]. |
Hello @Snikch63200 this is a case of an LLM not listening to us. It's supposed to give an integer score in 1-10, but here we see it gave a score of 7.5. I took two actions here:
|
Hello, sometimes i have this error while using paper-qa :
Seems it's ralated to pydantic while parsing context.
How can I fix this ?
@dosu.
The text was updated successfully, but these errors were encountered: