Skip to content

feat: support milvus #1681

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

Merged
merged 16 commits into from
Jul 19, 2023
Merged

feat: support milvus #1681

merged 16 commits into from
Jul 19, 2023

Conversation

jupyterjazz
Copy link
Contributor

@jupyterjazz jupyterjazz commented Jul 2, 2023

Taking over from here #1666

  • Find (vector search)
  • Filter
  • Get/Del
  • Hybrid Search (find+filter)
  • Subindex
  • Tests

Functionality-wise everything's ready, only thing left is to make the execution faster (milvus job takes 13 mins on CI)

Docs will be done in a separate PR

Note:
I had to bump protobuf and tensorflow versions

jupyterjazz and others added 2 commits July 2, 2023 23:16
Signed-off-by: jupyterjazz <[email protected]>
Signed-off-by: maxwelljin2 <[email protected]>
Co-authored-by: Saba Sturua <[email protected]>
@github-actions
Copy link

github-actions bot commented Jul 2, 2023

This PR exceeds the recommended size of 1000 lines. Please make sure you are NOT addressing multiple issues with one PR. Note this PR might be rejected due to its size.

Signed-off-by: jupyterjazz <[email protected]>
Signed-off-by: jupyterjazz <[email protected]>
@github-actions
Copy link

This PR exceeds the recommended size of 1000 lines. Please make sure you are NOT addressing multiple issues with one PR. Note this PR might be rejected due to its size.

@codecov
Copy link

codecov bot commented Jul 13, 2023

Codecov Report

Patch coverage: 90.70% and project coverage change: +0.17 🎉

Comparison is base (b306c80) 85.51% compared to head (059a8f4) 85.68%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1681      +/-   ##
==========================================
+ Coverage   85.51%   85.68%   +0.17%     
==========================================
  Files         132      133       +1     
  Lines        8303     8566     +263     
==========================================
+ Hits         7100     7340     +240     
- Misses       1203     1226      +23     
Flag Coverage Δ
docarray 85.68% <90.70%> (+0.17%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
docarray/index/backends/redis.py 88.93% <ø> (+0.23%) ⬆️
docarray/utils/_internal/misc.py 65.57% <ø> (ø)
docarray/index/__init__.py 82.50% <80.00%> (+4.72%) ⬆️
docarray/index/backends/milvus.py 90.76% <90.76%> (ø)
docarray/index/backends/hnswlib.py 95.33% <100.00%> (+0.05%) ⬆️

... and 1 file with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

Signed-off-by: jupyterjazz <[email protected]>
@github-actions
Copy link

This PR exceeds the recommended size of 1000 lines. Please make sure you are NOT addressing multiple issues with one PR. Note this PR might be rejected due to its size.

Signed-off-by: jupyterjazz <[email protected]>
@github-actions
Copy link

This PR exceeds the recommended size of 1000 lines. Please make sure you are NOT addressing multiple issues with one PR. Note this PR might be rejected due to its size.

Signed-off-by: jupyterjazz <[email protected]>
@github-actions
Copy link

This PR exceeds the recommended size of 1000 lines. Please make sure you are NOT addressing multiple issues with one PR. Note this PR might be rejected due to its size.

Signed-off-by: jupyterjazz <[email protected]>
@github-actions
Copy link

This PR exceeds the recommended size of 1000 lines. Please make sure you are NOT addressing multiple issues with one PR. Note this PR might be rejected due to its size.

Signed-off-by: jupyterjazz <[email protected]>
@github-actions
Copy link

This PR exceeds the recommended size of 1000 lines. Please make sure you are NOT addressing multiple issues with one PR. Note this PR might be rejected due to its size.

Signed-off-by: jupyterjazz <[email protected]>
@github-actions
Copy link

This PR exceeds the recommended size of 1000 lines. Please make sure you are NOT addressing multiple issues with one PR. Note this PR might be rejected due to its size.

Signed-off-by: jupyterjazz <[email protected]>
@github-actions
Copy link

This PR exceeds the recommended size of 1000 lines. Please make sure you are NOT addressing multiple issues with one PR. Note this PR might be rejected due to its size.

Signed-off-by: jupyterjazz <[email protected]>
@github-actions
Copy link

This PR exceeds the recommended size of 1000 lines. Please make sure you are NOT addressing multiple issues with one PR. Note this PR might be rejected due to its size.

Signed-off-by: jupyterjazz <[email protected]>
@github-actions
Copy link

This PR exceeds the recommended size of 1000 lines. Please make sure you are NOT addressing multiple issues with one PR. Note this PR might be rejected due to its size.

Signed-off-by: jupyterjazz <[email protected]>
@github-actions
Copy link

This PR exceeds the recommended size of 1000 lines. Please make sure you are NOT addressing multiple issues with one PR. Note this PR might be rejected due to its size.

@jupyterjazz jupyterjazz marked this pull request as ready for review July 14, 2023 19:00
@github-actions
Copy link

This PR exceeds the recommended size of 1000 lines. Please make sure you are NOT addressing multiple issues with one PR. Note this PR might be rejected due to its size.

Comment on lines +183 to +192
type_map = {
int: DataType.INT64,
float: DataType.FLOAT,
str: DataType.VARCHAR,
bytes: DataType.VARCHAR,
np.ndarray: DataType.FLOAT_VECTOR,
list: DataType.FLOAT_VECTOR,
AnyTensor: DataType.FLOAT_VECTOR,
AbstractTensor: DataType.FLOAT_VECTOR,
}
Copy link
Member

Choose a reason for hiding this comment

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

We can move this dict away from the function imo

Copy link
Contributor Author

Choose a reason for hiding this comment

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

hmm but all other backends have it inside

Copy link
Member

@samsja samsja left a comment

Choose a reason for hiding this comment

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

added one minor comments

Signed-off-by: jupyterjazz <[email protected]>
@github-actions
Copy link

This PR exceeds the recommended size of 1000 lines. Please make sure you are NOT addressing multiple issues with one PR. Note this PR might be rejected due to its size.

@github-actions
Copy link

📝 Docs are deployed on https://ft-feat-support-milvus--jina-docs.netlify.app 🎉

@@ -198,7 +198,7 @@ jobs:
python -m pip install --upgrade pip
python -m pip install poetry
poetry install --all-extras
poetry run pip install protobuf==3.19.0 # we check that we support 3.19
poetry run pip install protobuf==3.20.0 # we check that we support 3.19
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
poetry run pip install protobuf==3.20.0 # we check that we support 3.19
poetry run pip install protobuf==3.20.0 # we check that we support 3.20

@JoanFM JoanFM merged commit 007f113 into main Jul 19, 2023
@JoanFM JoanFM deleted the feat-support-milvus branch July 19, 2023 11:22
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.

Feature: please add milvus as storage backend to docarray v2
4 participants