milvus 0.10.3 → 0.10.5

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 914040de2cf35a3985d67dbd19de618e00d82262b61220df8bbf517cee40f72f
4
- data.tar.gz: d88ca74f1a6674cefadd0d790b3a3c828da1f2e585a2cd9b4d3fa9dca492115a
3
+ metadata.gz: 9e2fb8ed144ed45cd78cae0fc353236c89501c40fed71763984916e10b66d2e5
4
+ data.tar.gz: 84d432bf9b597af140fb15d4977f388f4d23b756b0348b02f05eefc09841686a
5
5
  SHA512:
6
- metadata.gz: 5092e0ec3696ce6d8e8a7a9d8df199f32f9ef4172f3aa65e0d415312da019c47763beef7df1e4714e3adee53f806f0bfd79f35e99884d8df8abb5745755f73a1
7
- data.tar.gz: 9580e92290a0a3f132b39629ff4bc25ef759b7b2d608cf744218bd529e9e54ac328194584db757af76b56f03790793468e9e6b6bebadc173301403fb17fc52bc
6
+ metadata.gz: cfe5f76419427c5c955344bd10fffdc74626f5628de48334709a0fc1778946aa2bf751ba4340556e114383efe3d0ef2fc263c1d00e2e7bdcacf2001945d53372
7
+ data.tar.gz: 3ca15f1c647184382e8fa87e9d405fe9e8a4c7b52ad316ff6f3b72ad1675fe971a9d1e8d417d2ced9d6a18f621dd6938b7a9d5417919f9ddd3d776a2dcf77370
data/CHANGELOG.md CHANGED
@@ -1,7 +1,13 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.10.4] - 2025-03-31
4
+ - Add missing grouping params to search operation
5
+
6
+ ## [0.10.4] - 2024-11-14
7
+ - `client.entities.search()` now accepts `search_params: {}`
8
+
3
9
  ## [0.10.3] - 2024-10-01
4
- - Weaviate::Client constructor accepts customer logger: to be passed in
10
+ - Milvus::Client constructor accepts customer logger: to be passed in
5
11
  - Added Alias management
6
12
 
7
13
  ## [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.5)
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,15 @@ 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
+ group_size: nil,
131
+ strict_group_size: nil,
132
+ output_fields: [],
133
+ search_params: {},
134
+ partition_names: []
130
135
  )
131
136
  response = client.connection.post("#{PATH}/search") do |req|
132
137
  params = {
@@ -138,6 +143,12 @@ module Milvus
138
143
  params[:outputFields] = output_fields if output_fields.any?
139
144
  params[:offset] = offset if offset
140
145
  params[:filter] = filter if filter
146
+ params[:searchParams] = search_params if search_params.any?
147
+ params[:partitionNames] = partition_names if partition_names.any?
148
+ params[:groupingField] = grouping_field if grouping_field
149
+ params[:groupSize] = group_size if group_size
150
+ params[:strictGroupSize] = strict_group_size if strict_group_size
151
+
141
152
  req.body = params
142
153
  end
143
154
  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.5"
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.5
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: 2025-03-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry-byebug
@@ -97,7 +97,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
97
97
  - !ruby/object:Gem::Version
98
98
  version: '0'
99
99
  requirements: []
100
- rubygems_version: 3.5.20
100
+ rubygems_version: 3.5.3
101
101
  signing_key:
102
102
  specification_version: 4
103
103
  summary: Ruby wrapper for the Milvus vector search database API