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

Is it supposed to always redo the embeddings? #21

Open
avataraustin opened this issue Jul 13, 2024 · 6 comments
Open

Is it supposed to always redo the embeddings? #21

avataraustin opened this issue Jul 13, 2024 · 6 comments

Comments

@avataraustin
Copy link

I just updated to the newest version of SC just to be sure everything was up to date.
It went through the usual of popping up the dialogue of "Embeddings smart_notes..."
It then did the "are you ready to begin embedding smart_blocks?" and it did start and finish that.

My question is whether this should happen every single time I open Obsidian? Just to check I immediately closed and reopened Obsidian without changing anything at all. It then went through the same process of "Embedding the smart_notes" again and also once again went through the process of Asking me to embed the smart blocks which I once again completed. Just to be sure I went through this process again and closed/reopened obsidian without doing anything in Obsidian at all. It once again went through the process of embedding smart_notes and then asking to embed smart_blocks. The numbers were even the same.
I remember when SC used to want to sometimes embed ALL my notes again when I would reopen Obsidian so admittedly this is something I feel I can live with but it seemed like something I should mention.

@brianpetro
Copy link
Owner

Hey @avataraustin

No, it's not supposed to re-embed every time you restart Obsidian.

There should be error logs either

A) when loading the embeddings or

B) when saving the embeddings

If you can find some errors at either of those points then I can see what might be causing the issue.

Thanks for bringing this to my attention
🌴

@avataraustin
Copy link
Author

Screenshot 2024-07-15 at 7 47 39 AM
Screenshot 2024-07-15 at 7 46 43 AM

@brianpetro
Copy link
Owner

Hey @avataraustin

It looks like it loaded correctly that time.

Did it re-embed everything that time?

🌴

@avataraustin
Copy link
Author

yes, it reliably starts embedding smart notes and then asks to embed smart blocks every time I open Obsidian. I wouldn't say it re-embeds everything but there is definitely a certain number that it always wants to embed every time, 467 smart blocks last time.

Screenshot 2024-07-15 at 12 50 49 PM

@brianpetro
Copy link
Owner

Good to know.

Do any errors occur when embedding the blocks?

In the .smart-env/multi/ folder you should be able to see which 86 notes are being re-embedded by sorting the files by "last modified" time. Do these recently changed files have anything in common?

Thanks for your help in solving this
🌴

@avataraustin
Copy link
Author

I didn't notice anything. I also checked the .smart-connections/multi folder folder and when sorted by last modified they are the same order as when left alphabetical. I also did not notice anything about those notes in particular that stood out in any way. Here is the dev con pre and post running the block embeddings.

Screenshot 2024-07-16 at 8 28 29 AM
Screenshot 2024-07-16 at 8 29 33 AM

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