Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

smart-connections doesn't create new bindings to notes or blocks #822

Open
Txindoki666 opened this issue Oct 4, 2024 · 11 comments
Open

Comments

@Txindoki666
Copy link

Greetings, a few weeks ago I had a problem with smart-connections so I did a reinstall from 0. Finally the problem was in the GPU configuration, which was fixed thanks to the help I received here.
When I restored the vault I didn't include the smart-connections folder because I thought it might be corrupted and preferred that I did the whole process again. In any case I have the backup of the old folder.
However, I have noticed that the add-in is not creating new embeds, either related notes or note blocks. It says context is missing, but they are 400 to 7000 word notes. It pops up a message stating “Error in embedding search. See console for
details.”
I paste screenshots of the current configuration and console.
Thanks for your help.

SYSTEM INFO:
Obsidian version: v1.6.7
Installer version: v1.6.7
Operating system: Windows 10 Pro 10.0.19045
Login status: not logged in
Insider build toggle: off
Live preview: on
Base theme: dark
Community theme: none
Snippets enabled: 0
Restricted mode: off
Plugins installed: 25
Plugins enabled: 25
1: Smart Connections v2.2.81
2: Kobo Highlights Importer v2.0.0
3: Omnisearch v1.24.1
4: Recent Files v1.6.0
5: File Tree Alternative v2.6.0
6: Editing Toolbar v2.4.16
7: Tag Wrangler v0.6.1
8: Kanban v2.0.51
9: Advanced Canvas v3.1.0
10: LanguageTool Integration v0.3.7
11: Text Extractor v0.5.2
12: Markmind v3.0.4
13: Auto Link Title v1.5.4
14: Calibre v1.0.8
15: Copilot v2.6.11
16: Copy Block Link v1.0.4
17: Extract Highlights v0.0.18
18: Hover Editor v0.11.20
19: Link Exploder v0.3.0
20: PDF++ v0.40.11
21: Reference Map v1.8.1
22: Settings Search v1.3.10
23: Style Settings v1.0.9
24: AI image analyzer v0.1.10
25: Translate v1.4.9

imagen
imagen
imagen
imagen
imagen
imagen

@brianpetro
Copy link
Owner

Hi @Txindoki666

Have you restarted obsidian since turning on that "Legacy transformers" setting? Usually that turned on solves the errors in the screenshots.

🌴

@Txindoki666
Copy link
Author

Yes, of course. I understand that restoring means closing and opening obsidian. I paste screenshots of what the blocks look like from the last notes.

This is a note from a few hours ago:
imagen

This is a note from several months ago and you can see the missing blocks:
imagen

imagen
imagen
imagen

@brianpetro
Copy link
Owner

The error looks like it's trying to find connections for an unembedded note.

Try "Refresh All (prune + import)" button and then the "Force Refresh All" buttons

373336600-317d7725-9f85-4d4f-b907-6511f5c9a302

🌴

@Txindoki666
Copy link
Author

Done, I see that although it seems to have improved somewhat there are still quite a few blocks missing as shown in the screenshot.
Also the lack of context still appears in new notes like this one.

imagen

This is how the configuration panel looks like.

imagen

imagen

The console shows this:

imagen
imagen
imagen
imagen
imagen
imagen
imagen
imagen
imagen

Here is the structure of the folders, in case it is useful. I have not touched anything:
imagen
imagen

@brianpetro
Copy link
Owner

Thanks for the update and screenshots.

If it's still being problematic, it might be worth deleting the .smart-env folder so that it starts from scratch.

🌴

@Txindoki666
Copy link
Author

Txindoki666 commented Oct 7, 2024

Thank you. It has improved a little. However, there are a lot of missing blocks and they do not recover with refresh.
Also, note relationships appear that are inconsistent with each other.
Two questions does SC work in the background making the connections and blocks? Before I saw that when I made a note the connections and embeddings appeared immediately. Now, in some cases, I see that after a few hours some embeddings or relations appear that were wrong before and then they are coherent, should I wait a few hours to see if SC makes the missing connections?
Secondly, I understand that when you indicate delete .smart-env you mean delete the files inside the folder, not the folder itself, then, when I open Obsidian, SC would reindex all the notes automatically, without my intervention, is that so?
I paste screenshots for you to see how it is today.
Thanks for your attention and time.

imagen
imagen
imagen
imagen

@Txindoki666
Copy link
Author

Txindoki666 commented Oct 14, 2024

Greetings, I have let some time pass to test the changes. It keeps crashing, either it doesn't create new connections or they are wrong.
Today I deleted the contents of the .smart-env folder to make it start from 0, but it doesn't work. It does nothing.
Thanks for your help.
This is what it looks like:

imagen
imagen
imagen
imagen
imagen
imagen
imagen
imagen
imagen
imagen
imagen
imagen
imagen

@Txindoki666
Copy link
Author

Update:
As I said at the beginning of the post this problem occurs on 3 computers with relatively different hardware (although all 3 have 16gb ram and integrated gpu).
This pc is different from the previous one. Although it works better, you can see that there are several errors and inconsistencies in the relationships between notes.
I have noticed that the blocks of new notes are the ones that fail the most (for about a month and a half) presenting inconsistencies or messages of lack of context, even if they are notes of more than 3000 words.
Ignorant question: if one takes the smart-env folder from one computer and pastes it on another computer in the same SC path, would it recognize the embeddings?
Thanks for your help.

imagen
imagen
imagen
imagen
imagen
imagen
imagen
imagen

@brianpetro
Copy link
Owner

@Txindoki666 try toggling the "Legacy Transformers" setting off and then back on 🌴

@Txindoki666
Copy link
Author

Txindoki666 commented Oct 16, 2024

Hi, I just upgraded to v2.2.82 and it looks like the problem has been fixed. I have done a new indexing and created the embedded blocks. They now seem consistent with each other.
The only strange thing is that when I create new notes I get a message that something is missing and it doesn't generate anything. If I close and open Obsidian it creates the blocks for that note.
I leave screenshots of what it looks like in case you might find them useful. If there are problems on my other pc's I will let you know here.
Thank you very much for the update.

imagen
imagen
imagen
imagen
imagen

@Txindoki666
Copy link
Author

UPDATE: Hi, I have been testing the new configuration. It works half way. It has the following problems.
When I create a note it says: No entity found for key. I have to restart Obsidian and so it creates the new relationships and embeds. In the console it says context is missing, but many of the notes that give error have more than 2000 words.
The chat is not working.
The above is happening to me on all 3 pc's.
Obsidian and SC are updated to the latest version.
I hope the screenshots are useful.
Thanks for your time and work.

imagen
imagen
imagen
imagen
imagen
imagen
imagen
imagen
imagen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants