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

feat: Add sparse float vector support to PyMilvus #1902

Merged
merged 1 commit into from
Mar 14, 2024

Conversation

zhengbuqian
Copy link
Collaborator

@zhengbuqian zhengbuqian commented Jan 29, 2024

This PR adds the basic sparse float vector support to pymilvus.

The following types of input are supported:

  • any of the scipy.sparse matrix/array class family
  • list of dicts: [{0: 0.3, 20: 0.5}, {4: 0.4}, ...]
  • list of lists of tuples: [[(0, 0.3), (20, 0.5)], [(4, 0.4)], ...]

Sparse float vector support tracking issue: milvus-io/milvus#29419

@sre-ci-robot
Copy link

Welcome @zhengbuqian! It looks like this is your first PR to milvus-io/pymilvus 🎉

@mergify mergify bot added the dco-passed label Jan 29, 2024
@zhengbuqian zhengbuqian changed the title feat: Add basic sparse float vector support to PyMilvus feat: Add sparse float vector support to PyMilvus Mar 6, 2024
@zhengbuqian zhengbuqian force-pushed the sparse-vector branch 2 times, most recently from 24b1b15 to 124b9af Compare March 8, 2024 08:36
@buqian-zilliz buqian-zilliz force-pushed the sparse-vector branch 2 times, most recently from bfafae2 to ca6712c Compare March 11, 2024 07:51
@buqian-zilliz buqian-zilliz force-pushed the sparse-vector branch 2 times, most recently from 6a57c9a to 929a266 Compare March 11, 2024 09:00
@mergify mergify bot added the ci-passed label Mar 11, 2024
@zhengbuqian
Copy link
Collaborator Author

/hold

reviewer please review, but I'll wait until all milvus PRs(expecting by Wednesday) before merging this one.

@@ -456,11 +456,11 @@ def _pre_batch_check(
fields_info: Any,
):
for entity in entities:
if (
not entity.get("name", None)
or not entity.get("values", None)
Copy link
Contributor

Choose a reason for hiding this comment

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

or entity.get("values", None) is None

@czs007
Copy link
Contributor

czs007 commented Mar 11, 2024

/approve
/lgtm

@XuanYang-cn
Copy link
Contributor

hold until milvus PR is merged

@zhengbuqian
Copy link
Collaborator Author

/unhold

all required milvus PRs are merged

…rts various sparse matrix representations

also supported row based insertion so sparse is also supported in milvus
client

Signed-off-by: Buqian Zheng <zhengbuqian@gmail.com>
@XuanYang-cn
Copy link
Contributor

/lgtm
/approve

@sre-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: czs007, XuanYang-cn, zhengbuqian

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@sre-ci-robot sre-ci-robot merged commit 818f290 into milvus-io:master Mar 14, 2024
9 checks passed
@zhengbuqian zhengbuqian deleted the sparse-vector branch March 14, 2024 07:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants