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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 914040de2cf35a3985d67dbd19de618e00d82262b61220df8bbf517cee40f72f
4
- data.tar.gz: d88ca74f1a6674cefadd0d790b3a3c828da1f2e585a2cd9b4d3fa9dca492115a
3
+ metadata.gz: 3a102d183738bf441d38553fc3943694001a7ecb982eb901f29ee79c4469c2ee
4
+ data.tar.gz: cb74c717b5a8e3139008898f49564a1310d31dd769f6a7d46df1d0ffa2319c2e
5
5
  SHA512:
6
- metadata.gz: 5092e0ec3696ce6d8e8a7a9d8df199f32f9ef4172f3aa65e0d415312da019c47763beef7df1e4714e3adee53f806f0bfd79f35e99884d8df8abb5745755f73a1
7
- data.tar.gz: 9580e92290a0a3f132b39629ff4bc25ef759b7b2d608cf744218bd529e9e54ac328194584db757af76b56f03790793468e9e6b6bebadc173301403fb17fc52bc
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
- - Weaviate::Client constructor accepts customer logger: to be passed in
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
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- milvus (0.10.3)
4
+ milvus (0.10.4)
5
5
  faraday (>= 2.0.1, < 3)
6
6
 
7
7
  GEM
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
- expression: "book_id in [0,1]"
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
@@ -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
- filter: nil
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Milvus
4
- VERSION = "0.10.3"
4
+ VERSION = "0.10.4"
5
5
  end
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.3
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-10-01 00:00:00.000000000 Z
11
+ date: 2024-11-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry-byebug