Skip to content

Merge code#21

Open
hhy3 wants to merge 13 commits intozilliztech:mainfrom
hhy3:main
Open

Merge code#21
hhy3 wants to merge 13 commits intozilliztech:mainfrom
hhy3:main

Conversation

@hhy3
Copy link
Copy Markdown
Contributor

@hhy3 hhy3 commented Jul 13, 2025

No description provided.

@@ -0,0 +1,47 @@
#pragma once
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why this file's name is 'search_impl..hpp' ??

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@chasingegg fixed

if (m == Metric::L2) {
ret = std::make_unique<IVFSearcher<SQ2QuantizerUniform<Metric::L2>>>();
} else if (m == Metric::IP) {
ret = std::make_unique<IVFSearcher<SQ2QuantizerUniform<Metric::L2>>>();
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should use IP here

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it looks wierd, but it is intentional :)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why, please add more comments if it is intentional

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't remember the specific reason but you can see in GraphSearcher it's the same and it works. So I prefer not to modify it

Comment thread python/bindings.cc
if (centroids_dim != features) {
throw std::runtime_error("Centroids dimension mismatch");
}
if (n1 != 1 || n2 != rows) {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please check this validation is as expected

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it looks good. what's wrong with it

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