jupyterlab / jupyter-ai

A generative AI extension for JupyterLab
https://jupyter-ai.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
3.23k stars 331 forks source link

Add meaningful errors in the chat interface #238

Open 3coins opened 1 year ago

3coins commented 1 year ago

Summary

If an error occurs during a chat session for any reason, an error related to the indexing is always returned to the user, along with the exception stack trace. This not useful for the user to identify and correct the problem.

Sorry, something went wrong and I wasn't able to index that path.

Solution

Identify common issues, for example incorrect api key, timeout etc. and return a meaningful error to the user. In case where errors are not known, a generic error should be returned without the full stacktrace.

JasonWeill commented 1 year ago

398 rewrites "index that path" to "process that message"