-
-
Notifications
You must be signed in to change notification settings - Fork 188
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
Inefficient #33
Comments
The plugin is designed to be efficient. While there are plenty of ways it can be improved further, you must be encountering a bug somewhere if you are using a million tokens each startup. Are you using Linux? It sounds like your Embeddings may not be being saved to the disk. And there have been reports of this happening on Linux systems. If not, check out this comment for more information #32 (comment) |
Thank you for the response. First, I have to apologise and thank you for the plug-in. It’s thanks to you that I have this function and perhaps will have something else. Second, no I don’t use Linux and have maybe 1000 notes. Not too long. When I check the embeddings.Json in the folder it doesn’t have anything in it. Not sure if that’s the issue but equally not sure why the embedding file is not getting saved. I host on Dropbox and have all files available offline too. |
No apologies are necessary! But thank you anyway. I know it's frustrating when software doesn't work, and I appreciate you taking the time to help me solve this issue. It helps both me and others who aren't willing to report the issues they encounter like this. I might enable another storage method, IndexedDB, and make it a toggleable option in the settings. This might help with persisting on one device, but I'm not sure about the syncing between devices. Not sure about the ETA for this, though. In the meantime, if you see any errors on the console log, please take a screenshot of the error so I can look into it. This may or may not be occurring. It depends on where the error is regarding clearing the file contents. For example, dropbox may be "updating" the file with the blank version for some reason, which wouldn't throw an error. I'll be thinking about this. Thanks for your help in figuring this out! |
I have 2000 notes, I think I may be having a similar issue as I managed to burn through my $20 API budget before I switch to paths only |
@Mearman That amount seems too high unless you average >15 pages per note. So you must be encountering a bug somewhere. The Also, check that your PS- thanks for #39 |
Unsure why but my .smart connections/embeddings.json is 1kb and empty inside. |
@jasmeetchadha so that's the bug. If the Embeddings aren't saving then they re-embed every time you open Obsidian. Which operating system are you using? |
Windows 11 |
@jasmeetchadha are you using any syncing between devices? Thanks for helping me figure this out. |
It’s hosted on Dropbox but I mostly use it from the same device |
Since you mostly use it from the same device, can you try to exclude the This way we can see if that's what's preventing the file from saving correctly. |
Just did that and running smart connections again. Let’s see how this goes |
The openai requests were sent, I can see some connections being made, but the embeddings.json file remains 1kb and empty. Also I notice... nothing got written at embeddings.json (since 1407hrs) even though I ran the sync at 1425. Somehow the plugin isnt writing on that file |
@jasmeetchadha thank you for the detailed report. I'm going to have to think about this. There are some other storage options, to start, IndexedDB, that may be accessible, but I haven't tested any of them on the scale of an entire vault. But I've been thinking about adding this alternative storage as a setting for people in your situation where the file isn't saving. Thanks again for your help in solving this issue and hopefully we will have everything up and running for you soon! |
I'm closing this since it's a duplicate of #45 Since version |
Thank you. I will test again and open a new issue if there is any error appreciate your help |
It uses a million tokens everytime it connects to OpenAI.... can you do something about this?
Either reduce the token request payload for updates? or give us a control for setting it to update once a month or so... ?
Thanks
The text was updated successfully, but these errors were encountered: