-
-
Notifications
You must be signed in to change notification settings - Fork 31
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
Additional options native embeddings #23
Additional options native embeddings #23
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @BernhardEisvogel, great idea! I just made couple suggestions for edits, otherwise looks great!
Sources/SimilaritySearchKit/Core/Embeddings/Models/NativeEmbeddings.swift
Outdated
Show resolved
Hide resolved
Sources/SimilaritySearchKit/Core/Embeddings/Models/NativeEmbeddings.swift
Outdated
Show resolved
Hide resolved
Sources/SimilaritySearchKit/Core/Embeddings/Models/NativeEmbeddings.swift
Show resolved
Hide resolved
…dings.swift Co-authored-by: Zach Nagengast <[email protected]>
…dings.swift Co-authored-by: Zach Nagengast <[email protected]>
Great! I will upload another commit later improving the performance of the search algorithm, currently it's ordering the complete list and then it takes "the best" k entries( in O(nlogn) ) but it's sufficient to use some topK algorithm ( in O(n) ) I will open another pull request for that to keep everything ordered. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Thanks @BernhardEisvogel
Hey everyone!
I want to use this repository in a language program that need the word embedding instead of the sentence embedding, so I changed a way to switch between those two modes in NativeEmbeddings.init.
Greetings Bernhard
P.s. I'm new to Github