logo
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Readme
Files and versions

Updated 2 years ago

ann-insert

ANN Insert Operator: MilvusClient


Desription

Insert data into Milvus collections. Please make sure you have created Milvus Collection before loading the data.


Code Example

Example

import towhee

from towhee import ops

p = (
        towhee.pipe.input('vec')
        .map('vec', (), ops.ann_insert.milvus_client(host='127.0.0.1', port='19530', collection_name='test_collection'))
        .output()
        )

p(vec)

Load Collection

Please load the Collection after inserted data.

collection.load()


Factory Constructor

Create the operator via the following factory method:

ann_insert.milvus_client(collection)


Returns: None

junjie.jiang 024e938c87 support pymilvus 2.0.2 15 Commits
file-icon .gitattributes
1.1 KiB
download-icon
Initial commit 2 years ago
file-icon README.md
794 B
download-icon
support pymilvus 2.0.2 2 years ago
file-icon __init__.py
118 B
download-icon
update 2 years ago
file-icon milvus_client.py
1.8 KiB
download-icon
support pymilvus 2.0.2 2 years ago
file-icon requirements.txt
9 B
download-icon
update 2 years ago