brianpetro / obsidian-smart-connections

Chat with your notes & see links to related content with AI embeddings. Use local models or 100+ via APIs like Claude, Gemini, ChatGPT & Llama 3
https://smartconnections.app
GNU General Public License v3.0
2.49k stars 170 forks source link

Embedding hangs #710

Open catalinvasile92 opened 1 month ago

catalinvasile92 commented 1 month ago

After I installed the plugin, the embedding part hangs. It just stays there without anything statistics increasing after an hour.

Steps I did to setup:

  1. I installed the plugin from the community plugin store. It's version 2.1
  2. I've created Open Router and OpenAI accounts and have added 20$ to them.
  3. I've added OpenRouter and OpenAI API keys. After each installment, I received a notification that the keys are ok.
  4. I did a force refresh

These are my settings: image

This is the notification bar with the embedding process hanging: image

I checked the developers logs and this is are the latest logs: image

catalinvasile92 commented 1 month ago

I made it work.

Steps:

  1. Disable and reenable the plugin.
  2. It then blocks at 400 out 599.
  3. Pause embedding.
  4. Press "Refresh Notes".
  5. Press "force_refresh".
brianpetro commented 1 month ago

Hi @catalinvasile92

Thanks for letting me know about this. And thanks for following up with the workaround 😊

Today I published a new version, 2.1.87 that should address this issue. iirc, I encountered the same bug when I was testing the update. If so, it should be fixed.

Let me know if it keeps happening with the new version 🌴

jwhco commented 1 month ago

I believe I'm having the same problem. image

Token use is zero on embedding after the recent Smart Connect v1.2.5 update.

image Is a connection key required?

brianpetro commented 1 month ago

@jwhco a connection key is not required for improving the embeddings for the Obsidian Smart Connections plugin.

However, the email being input might be confusing things.

Try using the "Reset Settings" button and then clicking the button in the screenshot below. 🌴 Screenshot 2024-08-07 at 6 02 56 PM

jwhco commented 1 month ago

Thanks. I'm strictly a local model here. It doesn't seem to hang now.