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
16.2k stars 796 forks source link

[FIX] Files/folders not uploading from Desktop app #839

Open samteezy opened 4 months ago

samteezy commented 4 months ago

Describe the bug

Files and folders don't seem to be uploading from the desktop app.

To Reproduce

  1. Self-host Khoj
  2. Self-host llama 3 on different machine
  3. Download and run appimage desktop app
  4. Confirm can connect to server and process chats. Attempt to upload files. Click save.
  5. Wait a while?
  6. Querying for said data doesn't appear to retrieve anything, nothing shows in Files on the web server, and nothing shows in "Entrys" in the admin.

Screenshots

Platform

If self-hosted

Server and desktop are running both 1.15 versions

Additional context

Not really sure what to look for in the server logs or if I can get any sort of debug log from the appimage.

sabaimran commented 2 months ago

hey @samteezy. What are you seeing in the backend when you click save on the desktop application? You should typically see some log lines indicating that a new indexing job is started.

Potentially there may be a rate limit being applied to your uploads. You can check the developer console on your desktop application to see what the network response is to the content indexing API.

saccohuo commented 2 weeks ago

Same problem, I am using pip to install khoj. When I add folder on Desktop version, the sever has no reaction.

sabaimran commented 2 weeks ago

@saccohuo , which server URL are you using?

saccohuo commented 2 weeks ago

@saccohuo , which server URL are you using?@saccohuo,你正在使用哪个服务器网址?

http://127.0.0.1:42110