Giter Club home page Giter Club logo

Comments (15)

flowingblaze avatar flowingblaze commented on June 4, 2024 1

I got the api key from app.khoj.dev, I have windows 10 and I did the steps in the docs.

from khoj.

debanjum avatar debanjum commented on June 4, 2024 1

Thank you for the clarification. The reason I encountered the error is because I was trying to work around an error in Obsidian.

However, the top of the window says, "Disconnected from Khoj backend. Ensure Khoj backend is running and Khoj URL is correctly set"

I see. This error is a bit lagging/confusing. If you still see the error on restarting obsidian then it means it's an actual issue connection to the Khoj backend. I'm working on a fix for the confusion on my end as well

from khoj.

edbock avatar edbock commented on June 4, 2024 1

Restarting Obsidian: Hmm, why are some of the easiest things so hard to remember?

Now the error in the settings dialog is gone, replaced by the message "Connected to Khoj backend." That's a good sign.

Unfortunately I'm still getting the 400 errors. Here's my most recent logs:

Khoj: Updating Khoj content index...
app.khoj.dev/api/v1/index/update?force=true&client=obsidian:1 Failed to load resource: the server responded with a status of 400 ()
plugin:khoj:4436 Khoj: Updating Khoj content index...
plugin:khoj:4455 POST https://app.khoj.dev/api/v1/index/update?force=true&client=obsidian 400
updateContentIndex @ plugin:khoj:4455
await in updateContentIndex (async)
eval @ plugin:khoj:4562
(anonymous) @ app.js:1

Thank you very much for the incredibly responsive support. This is a fantastic service, well worth doing some troubleshooting to get working.

from khoj.

debanjum avatar debanjum commented on June 4, 2024 1

Restarting Obsidian: Hmm, why are some of the easiest things so hard to remember?

Now the error in the settings dialog is gone, replaced by the message "Connected to Khoj backend." That's a good sign.

Great to hear that plugin is showing connected to the Khoj server after restart!

Unfortunately I'm still getting the 400 errors. Here's my most recent logs:

  • Do you have more than 1000 files in your Vault by any chance? I have a PR out to fix indexing knowledge bases with a large number of files
  • We're also hitting memory limits on the Khoj cloud service which seem to be causing these indexing issue. Saba PR and increasing our cloud server capacity should help mitigate that.

Thank you very much for the incredibly responsive support. This is a fantastic service, well worth doing some troubleshooting to get working.

Thanks for the kind words!

from khoj.

debanjum avatar debanjum commented on June 4, 2024 1

Thanks a ton for helping investigate this issue. This issue was affecting folks using Khoj from Obsidian with the Dataview plugin installed. It's been fixed in #619. So you should be able to use Khoj chat from Obsidian (even with the dataview plugin enabled) by the next release of Khoj, which should be out today

from khoj.

flowingblaze avatar flowingblaze commented on June 4, 2024

It only responds with that emoji, thats the core issue

from khoj.

debanjum avatar debanjum commented on June 4, 2024

That's unfortunate! It'd be great if you can share more details on how you setup Khoj in Obsidian.

The emoji is a placeholder, which you see while waiting to get a response from the Khoj server. It should ideally be replaced by the actual response by Khoj.
It disappears as it's a temporary placeholder for the response. The actual chat query and response shouldn't disappear on reopening the Khoj Chat modal.

from khoj.

flowingblaze avatar flowingblaze commented on June 4, 2024

I looked at my Files section on khoj and I saw "No documents synced with Khoj" even after a whole night trying to force sync with khoj-I think this is the issue

from khoj.

edbock avatar edbock commented on June 4, 2024

The link you provided does not currently give any information about how to set up the Khoj backend. I did find information here which OP may not yet be aware of.

from khoj.

debanjum avatar debanjum commented on June 4, 2024

Hey @edbock, the instructions you saw in that Obsidian forum post I made is for self-hosting the Khoj server but those self-hosting instructions are now stale/incomplete. These docs have the latest instructions for self-hosting. OP is trying to use the Khoj Obsidian plugin with the Khoj cloud service. For that the self-hosting steps are not required

from khoj.

debanjum avatar debanjum commented on June 4, 2024

@flowingblaze, What do you see when you open Developer Tools in your Obsidian and then try Khoj chat? Any Khoj related errors in the console logs there may provide more clues.

To open Developer Tools: Go to the "View" menubar and Click "Toggle Developer Tools" in your Obsidian (or try Ctrl-Shift-I or Win-Shift-I keyboard shortcuts to open it)

I looked at my Files section on khoj and I saw "No documents synced with Khoj" even after a whole night trying to force sync with khoj-I think this is the issue

Yeah, I think the main issue is that you aren't able to connect to Khoj cloud from your Obsidian plugin for some reason. This is why files are not getting syncing either. Files don't necessarily need to be synced to chat with Khoj as it can work as a generic chatbot as well without context about your files, if required.

from khoj.

edbock avatar edbock commented on June 4, 2024

Thank you for the clarification. The reason I encountered the error is because I was trying to work around an error in Obsidian.

In settings I have https://app.khoj.dev as the "Khoj backend," and I used the API key I created at https://app.khoj.dev/config.

However, the top of the window says, "Disconnected from Khoj backend. Ensure Khoj backend is running and Khoj URL is correctly set"

from khoj.

edbock avatar edbock commented on June 4, 2024

I found this page and assumed I needed to follow those directions in order to get the backend working.

BTW Here are my relevant Developer Tools Console logs:

Khoj: Updating Khoj content index...
app.khoj.dev/api/v1/index/update?force=true&client=obsidian:1 Failed to load resource: the server responded with a status of 400 ()
plugin:khoj:4436 Khoj: Updating Khoj content index...
plugin:khoj:4455 Uncaught (in promise) TypeError: Failed to fetch
at updateContentIndex (plugin:khoj:4455:26)
at async eval (plugin:khoj:6274:41)

from khoj.

debanjum avatar debanjum commented on June 4, 2024

BTW Here are my relevant Developer Tools Console logs:

Khoj: Updating Khoj content index... app.khoj.dev/api/v1/index/update?force=true&client=obsidian:1 Failed to load resource: the server responded with a status of 400 () plugin:khoj:4436 Khoj: Updating Khoj content index... plugin:khoj:4455 Uncaught (in promise) TypeError: Failed to fetch at updateContentIndex (plugin:khoj:4455:26) at async eval (plugin:khoj:6274:41)

Thanks for sharing the error logs. Let me try reproduce the issue on my end. (I haven't been able to trigger this error for myself yet)

from khoj.

edbock avatar edbock commented on June 4, 2024

Yes, I do have many 1000s of files. I would be happy to help with testing this in any way I can.

The inference endpoints option sounds exciting.

from khoj.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.