milvus 0.10.3 → 0.10.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -1
- data/Gemfile.lock +1 -1
- data/README.md +10 -2
- data/lib/milvus/entities.rb +9 -2
- data/lib/milvus/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3a102d183738bf441d38553fc3943694001a7ecb982eb901f29ee79c4469c2ee
|
4
|
+
data.tar.gz: cb74c717b5a8e3139008898f49564a1310d31dd769f6a7d46df1d0ffa2319c2e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a7a999cfca2e7e1b4b07409d3d84cca940feb6a7a18d1648f780414c5d9f5d1c9cdf9fd199c93daddae7986b923cfafc0add8e7ca325dc69c94310115de19bc4
|
7
|
+
data.tar.gz: 97cb86b1f045c9cb19cad3a42d827bd1eafff9e7036970c2b6ce3cc6e457fba519afbb1ba68bf4c7f40b90d4e64c0a41e0bd75a8954dd87dd59603f5cad33c89
|
data/CHANGELOG.md
CHANGED
@@ -1,7 +1,10 @@
|
|
1
1
|
## [Unreleased]
|
2
2
|
|
3
|
+
## [0.10.4] - 2024-11-14
|
4
|
+
- `client.entities.search()` now accepts `search_params: {}`
|
5
|
+
|
3
6
|
## [0.10.3] - 2024-10-01
|
4
|
-
-
|
7
|
+
- Milvus::Client constructor accepts customer logger: to be passed in
|
5
8
|
- Added Alias management
|
6
9
|
|
7
10
|
## [0.10.2] - 2024-07-28
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -129,7 +129,7 @@ client.entities.insert(
|
|
129
129
|
# Delete the entities with the boolean expression you created
|
130
130
|
client.entities.delete(
|
131
131
|
collection_name: "example_collection",
|
132
|
-
|
132
|
+
filter: "book_id in [0,1]"
|
133
133
|
)
|
134
134
|
```
|
135
135
|
```ruby
|
@@ -187,7 +187,15 @@ client.entities.search(
|
|
187
187
|
collection_name: "example_collection",
|
188
188
|
anns_field: "vectors",
|
189
189
|
data: [embedding],
|
190
|
-
filter: "id in [450847466900987454]"
|
190
|
+
# filter: "id in [450847466900987454]",
|
191
|
+
search_params: {
|
192
|
+
# Other accepted values: "COSINE" or "IP"
|
193
|
+
# NOTE: metric_type must be the same as metric type used when index was created
|
194
|
+
metric_type: "L2",
|
195
|
+
params: {
|
196
|
+
radius: 0.1, range_filter: 0.8
|
197
|
+
}
|
198
|
+
},
|
191
199
|
)
|
192
200
|
```
|
193
201
|
```ruby
|
data/lib/milvus/entities.rb
CHANGED
@@ -123,10 +123,13 @@ module Milvus
|
|
123
123
|
collection_name:,
|
124
124
|
data:,
|
125
125
|
anns_field:,
|
126
|
+
filter: nil,
|
126
127
|
limit: nil,
|
127
|
-
output_fields: [],
|
128
128
|
offset: nil,
|
129
|
-
|
129
|
+
grouping_field: nil,
|
130
|
+
output_fields: [],
|
131
|
+
search_params: {},
|
132
|
+
partition_names: []
|
130
133
|
)
|
131
134
|
response = client.connection.post("#{PATH}/search") do |req|
|
132
135
|
params = {
|
@@ -138,6 +141,10 @@ module Milvus
|
|
138
141
|
params[:outputFields] = output_fields if output_fields.any?
|
139
142
|
params[:offset] = offset if offset
|
140
143
|
params[:filter] = filter if filter
|
144
|
+
params[:searchParams] = search_params if search_params.any?
|
145
|
+
params[:partitionNames] = partition_names if partition_names.any?
|
146
|
+
params[:groupingField] = groupingField if grouping_field
|
147
|
+
|
141
148
|
req.body = params
|
142
149
|
end
|
143
150
|
response.body.empty? ? true : response.body
|
data/lib/milvus/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: milvus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.10.
|
4
|
+
version: 0.10.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrei Bondarev
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-11-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pry-byebug
|