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

support cosine in diskann #98

Merged
merged 9 commits into from
Nov 16, 2024
Merged

support cosine in diskann #98

merged 9 commits into from
Nov 16, 2024

Conversation

inabao
Copy link
Collaborator

@inabao inabao commented Oct 28, 2024

#99

jinjiabao.jjb added 4 commits October 26, 2024 21:46
Signed-off-by: jinjiabao.jjb <jinjiabao.jjb@antgroup.com>
Signed-off-by: jinjiabao.jjb <jinjiabao.jjb@antgroup.com>
Signed-off-by: jinjiabao.jjb <jinjiabao.jjb@antgroup.com>
Signed-off-by: jinjiabao.jjb <jinjiabao.jjb@antgroup.com>
@inabao inabao mentioned this pull request Oct 28, 2024
@inabao inabao self-assigned this Oct 28, 2024
jinjiabao.jjb added 2 commits October 28, 2024 23:41
Signed-off-by: jinjiabao.jjb <jinjiabao.jjb@antgroup.com>
extern/diskann/DiskANN/src/disk_utils.cpp Show resolved Hide resolved
@@ -258,6 +264,11 @@ template <typename data_t> void InMemDataStore<data_t>::get_vector(location_t lo
{
loc = _loc_to_memory_index[loc];
memcpy(dest, _data + loc * this->_dim, this->_dim * sizeof(data_t));
if (_compute_norms)
for (int i = 0; i < this->_dim; ++i)
Copy link
Collaborator

Choose a reason for hiding this comment

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

indent, add {} to if clause

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

done

jinjiabao.jjb added 2 commits October 29, 2024 23:46
Signed-off-by: jinjiabao.jjb <jinjiabao.jjb@antgroup.com>
Signed-off-by: jinjiabao.jjb <jinjiabao.jjb@antgroup.com>
@inabao inabao requested a review from LHT129 October 31, 2024 07:29
@wxyucs wxyucs added the kind/hold don't merge, need more discussion label Oct 31, 2024
Copy link
Collaborator

@wxyucs wxyucs left a comment

Choose a reason for hiding this comment

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

lgtm

@wxyucs wxyucs added kind/feature New feature or request and removed kind/hold don't merge, need more discussion labels Nov 15, 2024
Copy link
Collaborator

@jiaweizone jiaweizone left a comment

Choose a reason for hiding this comment

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

LGTM

@inabao inabao merged commit d93ee32 into main Nov 16, 2024
2 checks passed
@inabao inabao deleted the diskann-cosine branch November 16, 2024 07:49
inabao added a commit that referenced this pull request Dec 13, 2024
Signed-off-by: jinjiabao.jjb <jinjiabao.jjb@antgroup.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature New feature or request size/L
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants