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

Replace raise with proper handling once the retries failed #1657

Open
faresmalik opened this issue Mar 4, 2025 · 1 comment
Open

Replace raise with proper handling once the retries failed #1657

faresmalik opened this issue Mar 4, 2025 · 1 comment
Labels
enhancement New feature or request

Comments

@faresmalik
Copy link

System Info

pandasai 12b

🐛 Describe the bug

Currently, once the retries fail, we reach to raise statement. Such behaviour results in clearing the memory and start as if its the first time!

Cant we modify the logic to handle such behavior and return a static messages indicating inability to generate a code? with this, we will keep the history running (better than just a raise)

@gdcsinaptik
Copy link
Collaborator

@faresmalik I would not say this is bug but rather an idea of enhancement. Labeling it as such. However, not sure it would be better not to raise an error when retries fails. Local logs keep all history and memory also.

P.S.Ensure to use the latest version, 3.0 b14, as error handling and code generation was improved significantly

@gdcsinaptik gdcsinaptik added the enhancement New feature or request label Mar 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants