Skip to content

Commit

Permalink
Merge pull request #78 from milvus-io/nameczz/dev
Browse files Browse the repository at this point in the history
update readme and version
  • Loading branch information
shanghaikid authored Jan 25, 2022
2 parents 66b83be + b16d2ec commit ea707cf
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 8 deletions.
24 changes: 18 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@

This is node sdk for [Milvus](https://github.com/milvus-io/milvus).

## Compatibility

The following collection shows Milvus versions and recommended @zilliz/milvus2-sdk-node versions:

| Milvus version | Recommended @zilliz/milvus2-sdk-node version |
| :------------: | :------------------------------------------: |
| 2.0.0 | 2.0.0 |

## Dependencies

Milvus: v2+
Expand All @@ -19,7 +27,7 @@ Node: v12+
npm install @zilliz/milvus2-sdk-node
```

## API
## API Support

| Name | Async | Description |
| :---------------------- | :---- | :--------------------------------------: |
Expand All @@ -45,12 +53,16 @@ Node: v12+
| dropIndex | true | Drop index |
| insert | false | Insert data into milvus |
| search | false | Vector similarity search |
| flush | false | Flush Data |
| flush | true | Flush Data |
| flushSync | false | Flush Data Sync |
| query | false | Get data by expr |
| compact | true | Do compaction for the collection |
| getCompactionState | true | Get compaction states by compact id |

## Example

1. [How to operate collection](https://github.com/milvus-io/milvus-sdk-node/blob/main/example/Collection.ts)
2. [How to insert data](https://github.com/milvus-io/milvus-sdk-node/blob/main/example/Insert.ts)
3. [Vector similarity search on float field](https://github.com/milvus-io/milvus-sdk-node/blob/main/example/Search.ts)
4. [Vector similarity search on binary field](https://github.com/milvus-io/milvus-sdk-node/blob/main/example/BinarySearch.ts)
1. [Hello World](https://github.com/milvus-io/milvus-sdk-node/blob/main/example/HelloMilvus.ts)
2. [How to operate collection](https://github.com/milvus-io/milvus-sdk-node/blob/main/example/Collection.ts)
3. [How to insert data](https://github.com/milvus-io/milvus-sdk-node/blob/main/example/Insert.ts)
4. [Vector similarity search on float field](https://github.com/milvus-io/milvus-sdk-node/blob/main/example/Search.ts)
5. [Vector similarity search on binary field](https://github.com/milvus-io/milvus-sdk-node/blob/main/example/BinarySearch.ts)
4 changes: 4 additions & 0 deletions milvus/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,11 @@ export type {
CalcDistanceResponse,
GetFlushStateResponse,
GetQuerySegmentInfoResponse,
GetCompactionStateResponse,
GetCompactionPlansResponse,
CompactionResponse,
} from "./types/Response";

export type {
SearchRes,
SearchReq,
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "@zilliz/milvus2-sdk-node",
"author": "ued@zilliz.com",
"version": "1.1.0",
"milvusVersion": "v2.0.0-pre-ga",
"version": "2.0.0",
"milvusVersion": "v2.0.0",
"main": "dist/milvus",
"files": [
"dist"
Expand Down

0 comments on commit ea707cf

Please # to comment.