marella / chatdocs

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

Changes to add so that directory is constantly watched #42

Closed skye-repos closed 1 year ago

skye-repos commented 1 year ago

Hi Marella!

I've made some initial changes to incorporate watchdog so that the add app command keeps watching the directory for new documents and adds them to the database.

I'm not really a programmer, so I would appreciate so advice on how to improve this.

When I try to build and install I get errors saying pydantic module is missing. Any suggestions?

Best, Skye

skye-repos commented 1 year ago

Ok, it's working now.

Should I add it as a separate app command instead of modifying add directly?

We should modify the server to refresh if the database updates. I'll try to work on it.

I'll also try to figure out how to have it run in the background.

Best,

Skye