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.73k stars 181 forks source link

Plugin (turned off) and says "cannot load plugin" #521

Closed bbecausereasonss closed 6 months ago

bbecausereasonss commented 7 months ago

Just happened after turning Obsidian back on in the morning.

brianpetro commented 7 months ago

Is this on desktop or mobile?

I did recently disable mobile in v2.1 because of issues it was causing, and it wasn't ready anyway.

If on desktop, there should be something in the logs. If you can screenshot that it would be helpful.

🌴

bbecausereasonss commented 7 months ago

Dumb question, where do I find the logs? I'm so 'dependant' on this plugin now, lol you have no idea.

PS Dan Koe is working on "Kortex" a standalone app that is supposed to do something similar. *Not sure as to the details https://www.kortex.co/

brianpetro commented 7 months ago

The developer console logs.

bbecausereasonss commented 7 months ago

2app.js:1 Plugin failure: smart-connections SyntaxError: Invalid or unexpected token at eval () at app.js:1:2244346 at e. (app.js:1:2244447) at app.js:1:237056 at Object.next (app.js:1:237161) at a (app.js:1:235879) (anonymous) @ app.js:1

brianpetro commented 7 months ago

Can you take screenshots? And also make sure the "debug at startup time" setting is toggled on in the community plugins tab.

bbecausereasonss commented 7 months ago

image

brianpetro commented 7 months ago

Thanks.

If you click the little triangle/arrow next to "Plugin" in the logs, it should expand the error log to see more details.

bbecausereasonss commented 7 months ago

image

brianpetro commented 7 months ago

Unfortunately, nothing in that log was helpful.

Re-installing the plugin might fix it. A couple of notes about re-installing:

1) Before re-install, you can save your settings file located at .obsidian/plugins/smart-connections/data.json. It will be deleted when uninstalling, so you must replace it afterward.

2) If you're using v2.1 currently, make sure to upgrade again to v2.1 before starting any re-embedding processes. Otherwise, you will lose all the embeddings created in v2.1.

🌴

bbecausereasonss commented 7 months ago

Thanks. Will do.

Had to re-embed anyway. Oh well.

PS. In my embedding folder I keep getting a massive string of 'failed' files. And also keep getting "Dataview API not found" not sure if it's related to anything.

image

brianpetro commented 7 months ago

The failed files can be deleted. It's a protective mechanism to prevent overwriting existing embeddings when something goes wrong during the embedding process.

Dataview API not found is fine.

Following up about DK's Kortex, I'm sure he'll get many people to use it because of his influencer status and then toss the hot potato like he did with his Twitter scheduler software. But I doubt it will be a contender for the serious PKM crowd. And I say this as someone who likes DK's writing/ideas.

🌴

bbecausereasonss commented 7 months ago

Sorry unrelated error. Was trying to do a second query after I got a summary off a podcast. Gave me this API error.

image

bbecausereasonss commented 7 months ago

image

brianpetro commented 7 months ago

The errors there that are from Smart Connections have to do with context length.

Maximizing use of the available context is still under development in v2.1. So, I'll be working on making those errors occur less frequently.

Based on the logs, the error appears after you've already received multiple responses from the AI. The issue is likely because the prior chat history isn't properly accounted for. So, if you start a new chat and ask the same "based on my notes" question, it should work.

But this is something I am already working on improving.

blakejwc commented 7 months ago

I just had this happen today. Errors in the console don't look useful either. I'm going to try reinstalling.

image