khoj-ai / khoj

Your AI second brain. Self-hostable. Get answers from the web or your docs. Build custom agents, schedule automations, do deep research. Turn any online or local LLM into your personal, autonomous AI (e.g gpt, claude, gemini, llama, qwen, mistral).
https://khoj.dev
GNU Affero General Public License v3.0
14.22k stars 705 forks source link

[Bug] Cannot Use Khoj in Obsidian #581

Closed tuan3w closed 10 months ago

tuan3w commented 11 months ago

After update to new version, it seems like I cannot use Khoj anymore in Obsidian. I use khoj with anonymous mode:

khoj --anonymous-mode 

When I try to reindex data in Obsidian, I got bad request. It seems like the API has changed. I have already set API token.

Thanks.

sabaimran commented 10 months ago

@tuan3w , have you updated the version of your Khoj plugin in Obsidian? We have changed the API scheme in between, so it's best to make sure that your server version and client version are the same.

Just tried indexing myself and I was able to. Another thing to note is that you should not need to supply an API token in the Obsidian client if you're running in anonymous mode. It shouldn't be an issue, but just not necessary.

If you're still running into this issue after updating, please let me know.

tuan3w commented 10 months ago

@sabaimran

Yes. I'm using the latest version. I dig a little into the problem. It seems like the problem is that there is default 1000 files limit in starlette 0.25.0.

Issue is reported here in FastAPI: https://github.com/tiangolo/fastapi/discussions/9634

So this problem is related https://github.com/khoj-ai/khoj/issues/573

debanjum commented 10 months ago

Thanks for the investigation and update @tuan3w! I'll close this issue and we can track the 1000 file limit issue separately.