milvus
copied
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 7 months ago
ann-insert
ANN Insert Operator: Milvus
author: shiyu
Desription
Insert data into Milvus collections. Please make sure you have created Milvus Collection before loading the data.
Code Example
Example
Write the pipeline in simplified style:
import towhee
towhee.dc(your_embeddings) \
.ann_insert.milvus(uri='tcp://<milvus-host>:<milvus-port>/<collection-name>')
Write a same pipeline with explicit inputs/outputs name specifications:
import towhee
towhee.dc['vec'](your_embeddings) \
.ann_insert.milvus['vec', 'results'](uri='tcp://<milvus-host>:<milvus-port>/<collection-name>') \
.show()

Load Collection
Please load the Collection after inserted data.
collection.load()
Factory Constructor
Create the operator via the following factory method:
ann_insert.milvus(collection)
Parameters:
uri: str
The uri for Milvus Collection, such as tcp://<milvus-host>:<milvus-port>/<collection-name>
.
Interface
Parameters:
data: list
The embedding data to be inserted.
Returns: mr
Return milvus results with milvus.insert
.
More Resources
- Introducing Milvus 2.3.4 - Zilliz blog: Introducing Milvus 2.3.4 with the support for Access Logs, Parquet File imports, expanded collections/partitions, and more!
- Milvus vs Pgvector | Zilliz: Compare Milvus vs. Pgvector by the following set of capabilities. We want you to choose the best database for you, even if itâs not us.
- Optimizing Data Communication: Milvus Embraces NATS Messaging - Zilliz blog: Introducing the integration of NATS and Milvus, exploring its features, setup and migration process, and performance testing results.
- Milvus | Open-source Vector Databse created by Zilliz: Milvus, built by the Zilliz team, is a high-performance open-source vector database designed to handle billions of vectors for AI applications.
- An Engineering Perspective: Why Milvus is Compelling for Your Apps? - Zilliz blog: Explore Milvus 2.3 from three crucial angles: database selection, development experience, and system reliability.
- Spring AI and Milvus: Using Milvus as a Spring AI Vector Store - Zilliz blog: A comprehensive guide on how to use Milvus as a Spring AI vector store
| 11 Commits | ||
---|---|---|---|
|
1.1 KiB
|
3 years ago | |
|
2.8 KiB
|
7 months ago | |
|
91 B
|
3 years ago | |
|
1.9 KiB
|
3 years ago | |
|
22 B
|
3 years ago | |
|
99 KiB
|
3 years ago |