marella / chatdocs

Chat with your documents offline using AI.
MIT License
684 stars 99 forks source link

Document does not import after db folder has been deleted. #20

Closed PinataPost closed 1 year ago

PinataPost commented 1 year ago

I am attempting to use chatdocs in different folders, so that each folder refrences a different data set. I wanted to clear data set A and start over again, so I removed the db folder. When I added a document to data set A using "chatdocs add /path/to/file" I get the following error message -

Loading new documents: 0it [00:00, ?it/s]
No new documents to load

I attempted to uninstall chatdocs via pip, and reinstall, but I'm still getting the same error message.

When attempting to launch chatdocs from the folder (which no longer has a db) it crashes after being asked a question.

Index not found, please create an instance before querying
PinataPost commented 1 year ago

I'm an idiot. I was attempting to add teh document itself using

chatdocs add /path/to/pdf/document.pdf

But chat docs needs to be pointed at a folder, not a document....

PinataPost commented 1 year ago

See above