khoj-ai / khoj

Your AI second brain. Get answers to your questions, whether they be online or in your own notes. Use online AI models (e.g gpt4) or private, local LLMs (e.g llama3). Self-host locally or use our cloud instance. Access from Obsidian, Emacs, Desktop app, Web or Whatsapp.
https://khoj.dev
GNU Affero General Public License v3.0
12.63k stars 640 forks source link

Issue with running Obsidian plugin using local backend #615

Closed edbock closed 8 months ago

edbock commented 8 months ago

I'm super impressed by how quickly you are making improvements to this incredible app.

Does the 1,000-file issue affect the local backend as well? When I use http://127.0.0.1:42110 and the API key generated in the desktop app, I try syncing and get the following:

Khoj: Updating Khoj content index... plugin:khoj:4455 POST http://127.0.0.1:42110/api/v1/index/update?force=false&client=obsidian 400 (Bad Request) updateContentIndex @ plugin:khoj:4455 await in updateContentIndex (async) eval @ plugin:khoj:6274

I am working around this by using the add folders function to add subfolders in my vault one at a time, but this has obvious disadvantages.

debanjum commented 8 months ago

Hey @edbock yes, the 1000 file issue affects both self-hosted and cloud versions of Khoj server. This is why you're seeing the 400 (Bad request) error. The way you're indexing your vault is the best mitigation for now. We'll do a release in a day or so with the fix for this issue, at which point this annoyance should go away.

I'll close this issue as it's a duplicate of the 1000 file issue