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

Few fixes before 2.2.8 cherrypick #1408

Merged
merged 1 commit into from
May 10, 2023

Conversation

filip-halt
Copy link
Contributor

For the release notes here is a snipped example:

from pymilvus import MilvusClient

client = MilvusClient(
    collection_name="qux",
    uri="http://localhost:19530",
    vector_field="float_vector",
    overwrite=True,
)

data = [
    {
        "float_vector": [1,2,3],
        "id": 1,
        "text": "foo"
    },
    {
        "float_vector": [4,5,6],
        "id": 2,
        "text": "bar"
    },
    {
        "float_vector": [7,8,9],
        "id": 3,
        "text": "baz"
    }
]
client.insert_data(data)

res = client.search_data(
    data = [1,3,5],
    top_k = 2,
    filter_expression= "id > 1"
)

# Result:
# [
#    [
#       {'data': {'id': 2, 'internal_pk_0373': 441112070275989578, 'text': 'bar'}, 'score': 14.0},
#       {'data': {'id': 3, 'internal_pk_0373': 441112070275989579, 'text': 'baz'},'score': 77.0}
#    ]
# ]

Signed-off-by: Filip Haltmayer <[email protected]>
@czs007
Copy link
Contributor

czs007 commented May 10, 2023

/approve
/lgtm

@sre-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: czs007, filip-halt

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 a5c79ba into milvus-io:master May 10, 2023
XuanYang-cn added a commit to XuanYang-cn/pymilvus that referenced this pull request May 23, 2023
- Unify num_shards and mark shards_num as deprecated (milvus-io#1412)
- adding distance metric selection (milvus-io#1428)
- Fix None user/password (milvus-io#1443)
- deduce secure from user/pass (milvus-io#1445)
- last few fixes (milvus-io#1408)

See also: milvus-io/milvus#23853

Co-Authored-by: Filip Haltmayer <[email protected]>
Signed-off-by: yangxuan <[email protected]>
XuanYang-cn added a commit to XuanYang-cn/pymilvus that referenced this pull request May 23, 2023
- Unify num_shards and mark shards_num as deprecated (milvus-io#1412)
- adding distance metric selection (milvus-io#1428)
- Fix None user/password (milvus-io#1443)
- deduce secure from user/pass (milvus-io#1445)
- last few fixes (milvus-io#1408)

See also: milvus-io/milvus#23853

Co-Authored-by: Filip Haltmayer <[email protected]>
Signed-off-by: yangxuan <[email protected]>
sre-ci-robot pushed a commit that referenced this pull request May 23, 2023
- Unify num_shards and mark shards_num as deprecated (#1412)
- adding distance metric selection (#1428)
- Fix None user/password (#1443)
- deduce secure from user/pass (#1445)
- last few fixes (#1408)

See also: milvus-io/milvus#23853

Signed-off-by: yangxuan <[email protected]>
Co-authored-by: Filip Haltmayer <[email protected]>
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.

4 participants