marella / chatdocs

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

Cannot delete DB #24

Open WorldSpiritOnHorseback opened 1 year ago

WorldSpiritOnHorseback commented 1 year ago

There are duplicate entries in my DB which I would like to delete.

Where is the DB stored on Windows 10? The documentation says that "The processed documents will be stored in db directory by default" and "Note: When you change the embeddings model, delete the db directory and add documents again."

But where is the DB directory stored? I have tried endless googling and searching for every directory in my computer named "db" and I still cannot find it.

Uninstalling chatdocs / chromadb and reinstalling does nothing, the duplicate entries in chatdocs remain.

marella commented 1 year ago

The db directory will be created in the same location from where you ran the chatdocs add command. So you can run rmdir db from where you previously ran the chatdocs add command. For example, if you ran chatdocs add in C:\Users\YOURUSERNAME directory, it will be located at C:\Users\YOURUSERNAME\db.

gboxxx commented 1 year ago

I have done the db deletion process and re-added my docs, but I can no longer get answers out of the re-added documents. I'm getting general answers about Microsoft Excel (nothing to do with my documents) and no citations. I've also tried re-adding multiple times, creating a newly-named folder for the docs, as well as restarting the web server to make sure it is isn't somehow tied to "old data."

p.s. thanks for your work on this, awesome project!