[GH-ISSUE #97] Feature request: Embeddings etc. #70

Closed
opened 2026-10-30 21:18:24 +00:00 by bsakaguchi · 4 comments
Owner

Originally created by @Flonixcorn on GitHub (Jan 1, 2023).
Original GitHub issue: https://github.com/DominikDoom/a1111-sd-webui-tagcomplete/issues/97

when autocompleting embeddings, show embedding version or sort by version, so 2.X vs 1.X and when then selecting the autocomplete delete the <> from front and back :), thanks great embed!

Originally created by @Flonixcorn on GitHub (Jan 1, 2023). Original GitHub issue: https://github.com/DominikDoom/a1111-sd-webui-tagcomplete/issues/97 when autocompleting embeddings, show embedding version or sort by version, so 2.X vs 1.X and when then selecting the autocomplete delete the <> from front and back :), thanks great embed!
Author
Owner

@DominikDoom commented on GitHub (Jan 1, 2023):

It was a bit hacky to get working, but I think it's functional now.
The default list includes both types since I can't test during completion which type of model the user currently uses, but you can prefix the search with v1/v2 to only show those types, as seen below:

https://user-images.githubusercontent.com/34448969/210187734-c2e2292c-7649-4df6-b787-2b2195ab3a29.mp4

I wait for the webui to load the embeddings to then get their version info, but if the model doesn't load any (e.g. a v2 model, but the user has no v2 embeddings, or the same with v1), I can't test what version they are and default to v1 since it's more common.
I could theoretically check them manually, but that would mean embeddings being loaded twice which would increase startup time, so I compromised here.

<!-- gh-comment-id:1368568124 --> @DominikDoom commented on GitHub (Jan 1, 2023): It was a bit hacky to get working, but I think it's functional now. The default list includes both types since I can't test during completion which type of model the user currently uses, but you can prefix the search with v1/v2 to only show those types, as seen below: https://user-images.githubusercontent.com/34448969/210187734-c2e2292c-7649-4df6-b787-2b2195ab3a29.mp4 I wait for the webui to load the embeddings to then get their version info, but if the model doesn't load any (e.g. a v2 model, but the user has no v2 embeddings, or the same with v1), I can't test what version they are and default to v1 since it's more common. I could theoretically check them manually, but that would mean embeddings being loaded twice which would increase startup time, so I compromised here.
Author
Owner

@Flonixcorn commented on GitHub (Jan 2, 2023):

This doesnt work for me somehow!

<!-- gh-comment-id:1369228953 --> @Flonixcorn commented on GitHub (Jan 2, 2023): This doesnt work for me somehow!
Author
Owner

@Flonixcorn commented on GitHub (Jan 2, 2023):

https://github.com/tkalayci71/embedding-inspector

here this guy here knows what version the embeddings are at all times!
if that helps somehow

<!-- gh-comment-id:1369232983 --> @Flonixcorn commented on GitHub (Jan 2, 2023): https://github.com/tkalayci71/embedding-inspector here this guy here knows what version the embeddings are at all times! if that helps somehow
Author
Owner

@DominikDoom commented on GitHub (Jan 2, 2023):

Your webui needs to be updated to use it since my method relies on info only introduced yesterday. I do the same as the other guy, load the embedding db and then compare the vector sizes. Only difference being that I wait for the webui to load them itself to prevent duplicate loading.

<!-- gh-comment-id:1369234903 --> @DominikDoom commented on GitHub (Jan 2, 2023): Your webui needs to be updated to use it since my method relies on info only introduced yesterday. I do the same as the other guy, load the embedding db and then compare the vector sizes. Only difference being that I wait for the webui to load them itself to prevent duplicate loading.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
DominikDoom/a1111-sd-webui-tagcomplete#70
No description provided.