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

Fix the servor 500 error and show error message to client #117

Merged
merged 3 commits into from
Feb 23, 2023

Conversation

unkwnownGriot
Copy link

create a bad_request function to handle errors during data processing

put the vectorstore setting , index loading, prompt template creating and answer fetching inside a `try/except block and returning the exception occured to the client

refactor the form submitting function to show an alert when an exception is raised from the backend

@dartpain
Copy link
Contributor

Great Job! thank you!

@dartpain dartpain merged commit 918e1b3 into arc53:main Feb 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants