Open AyeshaKhalidTST opened 2 months ago
Traceback (most recent call last):
File "/Users/akhalid/mambaforge/envs/chatbot/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 1971, in _exec_single_context
self.dialect.do_execute(
File "/Users/akhalid/mambaforge/envs/chatbot/lib/python3.12/site-packages/sqlalchemy/engine/default.py", line 919, in do_execute
cursor.execute(statement, parameters)
sqlite3.OperationalError: no such column: sources.content
This looks like the aftermath of #264 that was released with 0.2.0. Was the database you are using created by 0.1.x? The default location should be ~/.cache/ragna/ragna.db
. Deleting it should resolve your issue.
Thanks, that solved the issue. Should perhaps a cache invalidation be part of the first-time run when the schema changes?
Yeah, we should probably catch this error and throw a more descriptive one. Actually deleting anything is something that we can't do, because you can hook any database into Ragna, not just sqllite local ones. But even if we could, we shouldn't do destructive operations by default.
Bug description
Select all storages and both ChatGPT assistants, then
Try to add a PDF document and start a chat. I've tried many different documents, but they result in the same error.
ragna.log
How to reproduce the bug?
Try to add a PDF document and start a chat.
Versions and dependencies used
conda create -n chatbot python=3 && pip install 'ragna[all]'
Anything else?
No response