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.84k stars 185 forks source link

"Loading Smart Connections" after upgrading to the latest version from 2.1.95 #797

Open deparko opened 2 months ago

deparko commented 2 months ago

Hi, Upgraded to the latest and getting "Loading Smart Connections". Dev Console says unable to load embedding model (see attached).

SCR-20240921-qyur SCR-20240921-qymg

2.1.95 was working ok!

please advise

Mark

brianpetro commented 2 months ago

Try toggling on the "legacy transformers" setting and setting the GPU batch size to 0 Screenshot 2024-09-02 at 6 57 32 AM 🌴

deparko commented 2 months ago

Updated settings, toggled legacy transformer and restarted Obsidian. Same issue, see attached.

SCR-20240922-iwgv SCR-20240922-iykx

I really appreciate you help and support,

Mark

deparko commented 2 months ago

p.s. I also disabled all plugins except SmartConnections. Here is the Dev Console log:

SCR-20240922-jcfa
brianpetro commented 2 months ago

Hi @deparko and thanks for the helpful screenshots ☺️

I think I see what's going on there. There's probably a file-type that's unexpected that's causing the issue. I fixed a similar issues recently, so make sure you are on the latest version. If it's still happening on the latest version, let me know and I'll make sure this gets fixed 🌴

deparko commented 2 months ago

Hi Brian,

Yes, I installed the latest version (2.2.76) and the problem occurred. I fell back to 2.1.95 and its working. I'll try again when you push out another release. Thanks again for your work!

jjthrash commented 2 months ago

Adding to this issue, since it really feels like a duplicate, though the symptoms are different:

I'm seeing it take a long time at a Smart Connections indexing phase. The dev console shows dataview taking 550s, but when I disable dataview the same behavior happens.

CleanShot 2024-09-23 at 08 49 26@2x

Happy to dig further, but I've disabled to plugin to get back to my work. Just let me know.

3e9b commented 2 months ago

I'm also seeing a lot of loading errors in latest versions. It's getting hung on embeddings. Screenshot 2024-09-26 at 1 00 19 PM

brianpetro commented 2 months ago

@3e9b a recent update unintentionally introduced a bug that doesn't allow non-markdown files to play nicely like they used to. This will be fixed the next version. In the meantime, you might try adding *.txt to the file exclusions settings (I haven't tested this, so let me know if it works) 🌴

jjthrash commented 2 months ago

@brianpetro I tried adding a bunch of extensions (everything but .md) to the exclusion list but I'm still seeing an FS timeout issue. I guess I'll wait for the next version.

brianpetro commented 2 months ago

@jjthrash thanks for letting me know 🌴

shanelindsay commented 2 months ago

This is the error I am getting: version 2.2.76

plugin:smart-connections:7710 Error during read: Error: UNKNOWN: unknown error, read at async readFileHandle (node:internal/origin…-fs/promises:552:24) at async SmartFsObsidianAdapter.read (plugin:smart-connections:9946:38) at async SmartFs.read (plugin:smart-connections:9751:23) at async MarkdownSourceAdapter._read (plugin:smart-connections:8255:12) at async MarkdownSourceAdapter.read (plugin:smart-connections:8244:19) at async SmartSource.read (plugin:smart-connections:7707:23) at async SmartSource.get_content (plugin:smart-connections:7772:12) at async SmartSource.get_embed_input (plugin:smart-connections:7495:19) at async Promise.all (index 0) at async SmartSources.process_embed_queue (plugin:smart-connections:7250:7) plugin:smart-connections:13401 Uncaught (in promise) Error: UNKNOWN: unknown error, read at async readFileHandle (node:internal/origin…-fs/promises:552:24)s:7250:7)