1.1.12 • Published 3 years ago
milvus-test-nodes v1.1.12
Milvus2-sdk-node
This is node sdk for Milvushttps://github.com/milvus-io/milvus.
Dependencies
Milvus: v2+
Node: v12+
Installation
npm install @zilliz/milvus2-sdk-node
API
Name | Async | Description |
---|---|---|
createCollection | false | Create collection in milvus |
hasCollection | false | Check collection exist or not |
showCollections | false | List all collections |
describeCollection | false | Get collection detail, like name ,schema |
getCollectionStatistics | false | Get collection statistics like row count |
loadCollection | true | Load data into cache |
releaseCollection | true | Release data from cache |
dropCollection | false | Drop collection from milvus |
createPartition | false | Create partition in one collection |
hasPartition | false | Check partition exist or not |
showPartitions | false | List all partitions for one collection |
getPartitionStatistics | false | Get partition statistics like row_count |
loadPartitions | true | Load data into cache |
releasePartitions | true | Release data from cache |
dropPartition | false | Drop partition from milvus |
createIndex | true | Creat index on vector field |
describeIndex | false | Get index info |
getIndexState | false | Get index build state |
getIndexBuildProgress | false | Get index building progress |
dropIndex | true | Drop index |
insert | false | Insert data into milvus |
search | false | Vector similarity search |
flush | false | Flush Data |
getDataByExpr | false | Get data by expr |
Example
- How to operate collectionhttps://github.com/milvus-io/milvus-sdk-node/blob/main/example/Collection.ts
- How to insert datahttps://github.com/milvus-io/milvus-sdk-node/blob/main/example/Insert.ts
- Vector similarity search on float fieldhttps://github.com/milvus-io/milvus-sdk-node/blob/main/example/Search.ts
- Vector similarity search on binary field https://github.com/milvus-io/milvus-sdk-node/blob/main/example/BinarySearch.ts