chatdocs icon indicating copy to clipboard operation
chatdocs copied to clipboard

Cannot delete DB

Open WorldSpiritOnHorseback opened this issue 2 years ago • 2 comments

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.

WorldSpiritOnHorseback avatar Jun 18 '23 20:06 WorldSpiritOnHorseback

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.

marella avatar Jun 18 '23 21:06 marella

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!

gboxxx avatar Jul 28 '23 14:07 gboxxx