@zilliz/milvus2-sdk-node 2.5.8 → 2.5.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/dist/milvus/MilvusLiteClient.d.ts +5 -0
  2. package/dist/milvus/MilvusLiteClient.js +40 -0
  3. package/dist/milvus/MilvusLiteClient.js.map +1 -0
  4. package/dist/milvus/const/milvus.d.ts +4 -0
  5. package/dist/milvus/const/milvus.js +6 -1
  6. package/dist/milvus/const/milvus.js.map +1 -1
  7. package/dist/milvus/grpc/BaseClient.d.ts +0 -4
  8. package/dist/milvus/grpc/BaseClient.js +11 -20
  9. package/dist/milvus/grpc/BaseClient.js.map +1 -1
  10. package/dist/milvus/grpc/Data.js +7 -1
  11. package/dist/milvus/grpc/Data.js.map +1 -1
  12. package/dist/milvus/grpc/GrpcClient.d.ts +7 -1
  13. package/dist/milvus/grpc/GrpcClient.js +15 -1
  14. package/dist/milvus/grpc/GrpcClient.js.map +1 -1
  15. package/dist/milvus/index.d.ts +1 -0
  16. package/dist/milvus/index.js +1 -0
  17. package/dist/milvus/index.js.map +1 -1
  18. package/dist/milvus/lite/MilvusLiteServer.d.ts +11 -0
  19. package/dist/milvus/lite/MilvusLiteServer.js +201 -0
  20. package/dist/milvus/lite/MilvusLiteServer.js.map +1 -0
  21. package/dist/milvus/lite/start.py +66 -0
  22. package/dist/milvus/proto-json/milvus.base.d.ts +7092 -0
  23. package/dist/milvus/proto-json/milvus.base.js +7208 -0
  24. package/dist/milvus/proto-json/milvus.base.js.map +1 -0
  25. package/dist/milvus/proto-json/milvus.d.ts +7092 -0
  26. package/dist/milvus/proto-json/milvus.js +7208 -0
  27. package/dist/milvus/proto-json/milvus.js.map +1 -0
  28. package/dist/milvus/proto-json/schema.base.d.ts +2029 -0
  29. package/dist/milvus/proto-json/schema.base.js +2132 -0
  30. package/dist/milvus/proto-json/schema.base.js.map +1 -0
  31. package/dist/milvus/types/Client.d.ts +23 -4
  32. package/dist/milvus/types/Collection.d.ts +1 -0
  33. package/dist/milvus/types/Data.d.ts +1 -0
  34. package/dist/milvus/types/Http.d.ts +1 -0
  35. package/dist/milvus/types/Partition.d.ts +2 -0
  36. package/dist/milvus/utils/Grpc.d.ts +0 -1
  37. package/dist/milvus/utils/Grpc.js +3 -5
  38. package/dist/milvus/utils/Grpc.js.map +1 -1
  39. package/dist/sdk.json +1 -1
  40. package/package.json +8 -5
  41. package/dist/proto/proto/common.proto +0 -511
  42. package/dist/proto/proto/feder.proto +0 -40
  43. package/dist/proto/proto/google/protobuf/descriptor.proto +0 -1417
  44. package/dist/proto/proto/milvus.proto +0 -2106
  45. package/dist/proto/proto/msg.proto +0 -133
  46. package/dist/proto/proto/rg.proto +0 -35
  47. package/dist/proto/proto/schema.proto +0 -257
@@ -1,133 +0,0 @@
1
- syntax = "proto3";
2
- package milvus.proto.msg;
3
- option go_package = "github.com/milvus-io/milvus-proto/go-api/v2/msgpb";
4
-
5
- import "common.proto";
6
- import "schema.proto";
7
-
8
- enum InsertDataVersion {
9
- // 0 must refer to row-based format, since it's the first version in Milvus.
10
- RowBased = 0;
11
- ColumnBased = 1;
12
- }
13
-
14
- message InsertRequest {
15
- common.MsgBase base = 1;
16
- string shardName = 2;
17
- string db_name = 3;
18
- string collection_name = 4;
19
- string partition_name = 5;
20
- int64 dbID = 6;
21
- int64 collectionID = 7;
22
- int64 partitionID = 8;
23
- int64 segmentID = 9;
24
- repeated uint64 timestamps = 10;
25
- repeated int64 rowIDs = 11;
26
- // row_data was reserved for compatibility
27
- repeated common.Blob row_data = 12;
28
- repeated schema.FieldData fields_data = 13;
29
- uint64 num_rows = 14;
30
- InsertDataVersion version = 15;
31
- }
32
-
33
- message DeleteRequest {
34
- common.MsgBase base = 1;
35
- string shardName = 2;
36
- string db_name = 3;
37
- string collection_name = 4;
38
- string partition_name = 5;
39
- int64 dbID = 6;
40
- int64 collectionID = 7;
41
- int64 partitionID = 8;
42
- repeated int64 int64_primary_keys = 9; // deprecated
43
- repeated uint64 timestamps = 10;
44
- int64 num_rows = 11;
45
- schema.IDs primary_keys = 12;
46
- int64 segment_id = 13;
47
- }
48
-
49
- message MsgPosition {
50
- string channel_name = 1;
51
- bytes msgID = 2;
52
- string msgGroup = 3;
53
- uint64 timestamp = 4;
54
- }
55
-
56
- message CreateCollectionRequest {
57
- common.MsgBase base = 1;
58
- string db_name = 2;
59
- string collectionName = 3;
60
- string partitionName = 4;
61
- // `schema` is the serialized `schema.CollectionSchema`
62
- int64 dbID = 5;
63
- int64 collectionID = 6;
64
- int64 partitionID = 7; // deprecated
65
- bytes schema = 8;
66
- repeated string virtualChannelNames = 9;
67
- repeated string physicalChannelNames = 10;
68
- repeated int64 partitionIDs = 11;
69
- }
70
-
71
- message DropCollectionRequest {
72
- common.MsgBase base = 1;
73
- string db_name = 2;
74
- string collectionName = 3;
75
- int64 dbID = 4;
76
- int64 collectionID = 5;
77
- }
78
-
79
- message CreatePartitionRequest {
80
- common.MsgBase base = 1;
81
- string db_name = 2;
82
- string collection_name = 3;
83
- string partition_name = 4;
84
- int64 dbID = 5;
85
- int64 collectionID = 6;
86
- int64 partitionID = 7;
87
- }
88
-
89
- message DropPartitionRequest {
90
- common.MsgBase base = 1;
91
- string db_name = 2;
92
- string collection_name = 3;
93
- string partition_name = 4;
94
- int64 dbID = 5;
95
- int64 collectionID = 6;
96
- int64 partitionID = 7;
97
- }
98
-
99
- message TimeTickMsg {
100
- common.MsgBase base = 1;
101
- }
102
-
103
- message DataNodeTtMsg {
104
- common.MsgBase base =1;
105
- string channel_name = 2;
106
- uint64 timestamp = 3;
107
- repeated common.SegmentStats segments_stats = 4;
108
- }
109
-
110
- message ReplicateMsg {
111
- common.MsgBase base = 1;
112
- bool is_end = 2;
113
- bool is_cluster = 3;
114
- string database = 4;
115
- string collection = 5;
116
- }
117
-
118
- message ImportFile {
119
- int64 id = 1;
120
- // A singular row-based file or multiple column-based files.
121
- repeated string paths = 2;
122
- }
123
- message ImportMsg {
124
- common.MsgBase base = 1;
125
- string db_name = 2;
126
- string collection_name = 3;
127
- int64 collectionID = 4;
128
- repeated int64 partitionIDs = 5;
129
- map<string, string> options = 6;
130
- repeated ImportFile files = 7;
131
- schema.CollectionSchema schema = 8;
132
- int64 jobID = 9;
133
- }
@@ -1,35 +0,0 @@
1
- syntax = "proto3";
2
- package milvus.proto.rg;
3
-
4
- option go_package = "github.com/milvus-io/milvus-proto/go-api/v2/rgpb";
5
-
6
- option java_multiple_files = true;
7
- option java_package = "io.milvus.grpc";
8
- option java_outer_classname = "ResourceGroupProto";
9
- option java_generate_equals_and_hash = true;
10
-
11
- option csharp_namespace = "Milvus.Client.Grpc";
12
-
13
- import "common.proto";
14
-
15
- message ResourceGroupLimit {
16
- int32 node_num = 1;
17
- // preserve for other limit.
18
- }
19
-
20
- message ResourceGroupTransfer {
21
- string resource_group = 1; // resource groups can be transfered with current resource group.
22
- // preserve for other option, such as weight, priority or affinity setup.
23
- }
24
-
25
- message ResourceGroupNodeFilter {
26
- repeated common.KeyValuePair node_labels = 1; // node in resource group must match node labels requirements
27
- }
28
-
29
- message ResourceGroupConfig {
30
- ResourceGroupLimit requests = 1; // requests node num in resource group, if node num is less than requests.nodeNum, it will be transfer from other resource group.
31
- ResourceGroupLimit limits = 2; // limited node num in resource group, if node num is more than limits.nodeNum, it will be transfer to other resource group.
32
- repeated ResourceGroupTransfer transfer_from = 3; // missing node should be transfer from given resource group at high priority in repeated list.
33
- repeated ResourceGroupTransfer transfer_to = 4; // redundant node should be transfer to given resource group at high priority in repeated list.
34
- ResourceGroupNodeFilter node_filter = 5; // node in resource group must match node filters
35
- }
@@ -1,257 +0,0 @@
1
- syntax = "proto3";
2
- package milvus.proto.schema;
3
-
4
- option go_package = "github.com/milvus-io/milvus-proto/go-api/v2/schemapb";
5
-
6
- option java_multiple_files = true;
7
- option java_package = "io.milvus.grpc";
8
- option java_outer_classname = "SchemaProto";
9
- option java_generate_equals_and_hash = true;
10
-
11
- option csharp_namespace = "Milvus.Client.Grpc";
12
-
13
- import "common.proto";
14
- import "google/protobuf/descriptor.proto";
15
-
16
- /**
17
- * @brief Field data type
18
- */
19
- enum DataType {
20
- None = 0;
21
- Bool = 1;
22
- Int8 = 2;
23
- Int16 = 3;
24
- Int32 = 4;
25
- Int64 = 5;
26
-
27
- Float = 10;
28
- Double = 11;
29
-
30
- String = 20;
31
- VarChar = 21; // variable-length strings with a specified maximum length
32
- Array = 22;
33
- JSON = 23;
34
- Geometry = 24;
35
-
36
- BinaryVector = 100;
37
- FloatVector = 101;
38
- Float16Vector = 102;
39
- BFloat16Vector = 103;
40
- SparseFloatVector = 104;
41
- }
42
-
43
- enum FunctionType{
44
- Unknown =0;
45
- BM25 =1;
46
- TextEmbedding =2;
47
- }
48
-
49
- enum FieldState {
50
- FieldCreated = 0;
51
- FieldCreating = 1;
52
- FieldDropping = 2;
53
- FieldDropped = 3;
54
- }
55
-
56
- /**
57
- * @brief Field schema
58
- */
59
- message FieldSchema {
60
- int64 fieldID = 1;
61
- string name = 2;
62
- bool is_primary_key = 3;
63
- string description = 4;
64
- DataType data_type = 5;
65
- repeated common.KeyValuePair type_params = 6;
66
- repeated common.KeyValuePair index_params = 7;
67
- bool autoID = 8;
68
- FieldState state = 9; // To keep compatible with older version, the default
69
- // state is `Created`.
70
- DataType element_type = 10; // For array type, the element type is stored here
71
- ValueField default_value = 11; // default_value only support scalars except array and json for now
72
- bool is_dynamic = 12; // mark whether this field is the dynamic field
73
- bool is_partition_key = 13; // enable logic partitions
74
- bool is_clustering_key = 14;
75
- bool nullable = 15; // enable set null as field value
76
- bool is_function_output =16;
77
- }
78
-
79
- message FunctionSchema {
80
- string name = 1;
81
- int64 id =2;
82
- string description = 3;
83
- FunctionType type = 4;
84
- repeated string input_field_names = 5;
85
- repeated int64 input_field_ids = 6;
86
- repeated string output_field_names = 7;
87
- repeated int64 output_field_ids = 8;
88
- repeated common.KeyValuePair params = 9;
89
- }
90
-
91
- /**
92
- * @brief Collection schema
93
- */
94
- message CollectionSchema {
95
- string name = 1;
96
- string description = 2;
97
- bool autoID = 3 [deprecated=true]; // deprecated later, keep compatible with c++ part now
98
- repeated FieldSchema fields = 4;
99
- bool enable_dynamic_field = 5; // mark whether this table has the dynamic field function enabled.
100
- repeated common.KeyValuePair properties = 6;
101
- repeated FunctionSchema functions = 7;
102
- string dbName = 8;
103
- }
104
-
105
- message BoolArray { repeated bool data = 1; }
106
-
107
- message IntArray { repeated int32 data = 1; }
108
-
109
- message LongArray { repeated int64 data = 1; }
110
-
111
- message FloatArray { repeated float data = 1; }
112
-
113
- message DoubleArray { repeated double data = 1; }
114
-
115
- // For special fields such as bigdecimal, array...
116
- message BytesArray { repeated bytes data = 1; }
117
-
118
- message StringArray { repeated string data = 1; }
119
-
120
- message ArrayArray {
121
- repeated ScalarField data = 1;
122
- DataType element_type = 2;
123
- }
124
-
125
- message JSONArray { repeated bytes data = 1; }
126
-
127
- message GeometryArray { repeated bytes data = 1; }
128
-
129
- message ValueField {
130
- oneof data {
131
- bool bool_data = 1;
132
- int32 int_data = 2;
133
- int64 long_data = 3;
134
- float float_data = 4;
135
- double double_data = 5;
136
- string string_data = 6;
137
- bytes bytes_data = 7;
138
- }
139
- }
140
-
141
- message ScalarField {
142
- oneof data {
143
- BoolArray bool_data = 1;
144
- IntArray int_data = 2;
145
- LongArray long_data = 3;
146
- FloatArray float_data = 4;
147
- DoubleArray double_data = 5;
148
- StringArray string_data = 6;
149
- BytesArray bytes_data = 7;
150
- ArrayArray array_data = 8;
151
- JSONArray json_data = 9;
152
- GeometryArray geometry_data = 10;
153
- }
154
- }
155
-
156
- // beta, api may change
157
- message SparseFloatArray {
158
- repeated bytes contents = 1;
159
- // dim is the max dimension of the current batch of vectors
160
- int64 dim = 2;
161
- }
162
-
163
- message VectorField {
164
- // For sparse vector, dim is the max dimension of the current batch of vectors
165
- int64 dim = 1;
166
- oneof data {
167
- FloatArray float_vector = 2;
168
- bytes binary_vector = 3;
169
- bytes float16_vector = 4;
170
- bytes bfloat16_vector = 5;
171
- SparseFloatArray sparse_float_vector = 6;
172
- }
173
- }
174
-
175
- message FieldData {
176
- DataType type = 1;
177
- string field_name = 2;
178
- oneof field {
179
- ScalarField scalars = 3;
180
- VectorField vectors = 4;
181
- }
182
- int64 field_id = 5;
183
- bool is_dynamic = 6;
184
- repeated bool valid_data = 7;
185
- }
186
-
187
- message IDs {
188
- oneof id_field {
189
- LongArray int_id = 1;
190
- StringArray str_id = 2;
191
- }
192
- }
193
-
194
- message SearchIteratorV2Results {
195
- string token = 1;
196
- float last_bound = 2;
197
- }
198
-
199
- message SearchResultData {
200
- int64 num_queries = 1;
201
- int64 top_k = 2;
202
- repeated FieldData fields_data = 3;
203
- repeated float scores = 4;
204
- IDs ids = 5;
205
- repeated int64 topks = 6;
206
- repeated string output_fields = 7;
207
- FieldData group_by_field_value = 8;
208
- int64 all_search_count = 9;
209
- repeated float distances = 10;
210
- optional SearchIteratorV2Results search_iterator_v2_results = 11;
211
- repeated float recalls = 12;
212
- string primary_field_name = 13;
213
- }
214
-
215
- // vector field clustering info
216
- message VectorClusteringInfo {
217
- // for multi vectors
218
- string field = 1;
219
- schema.VectorField centroid = 2;
220
- }
221
-
222
- // Scalar field clustering info
223
- // todo more definitions: min/max, etc
224
- message ScalarClusteringInfo {
225
- string field = 1;
226
- }
227
-
228
- // clustering distribution info of a certain data unit, it can be segment, partition, etc.
229
- message ClusteringInfo {
230
- repeated VectorClusteringInfo vector_clustering_infos = 1;
231
- repeated ScalarClusteringInfo scalar_clustering_infos = 2;
232
- }
233
-
234
- message TemplateValue {
235
- oneof val {
236
- bool bool_val = 1;
237
- int64 int64_val = 2;
238
- double float_val = 3;
239
- string string_val = 4;
240
- TemplateArrayValue array_val = 5;
241
- };
242
- }
243
-
244
- message TemplateArrayValue {
245
- oneof data {
246
- BoolArray bool_data = 1;
247
- LongArray long_data = 2;
248
- DoubleArray double_data = 3;
249
- StringArray string_data = 4;
250
- TemplateArrayValueArray array_data = 5;
251
- JSONArray json_data = 6;
252
- }
253
- }
254
-
255
- message TemplateArrayValueArray {
256
- repeated TemplateArrayValue data = 1;
257
- }