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

Additional options native embeddings #23

Conversation

BernhardEisvogel
Copy link
Contributor

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

Copy link
Owner

@ZachNagengast ZachNagengast left a 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!

@BernhardEisvogel
Copy link
Contributor Author

BernhardEisvogel commented Nov 7, 2023

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.

Copy link
Owner

@ZachNagengast ZachNagengast left a 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

@ZachNagengast ZachNagengast merged commit 61a2e09 into ZachNagengast:main Nov 7, 2023
1 check passed
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

Successfully merging this pull request may close these issues.

2 participants