weaviate-ruby 0.8.8 → 0.8.9

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: '01249ffefb68c85c00bf6b6cc01d507d3147225ed76b79f3aa9ba4a74c9b058f'
4
- data.tar.gz: 5c5d95f7c8fd7652ae8d2cfd233c8b3482b24a19872cb57cc9ec9dfdee7d3c79
3
+ metadata.gz: 8289cf9c5b37631db1c1d0607f0e2820477e8edb637b34a3efbef8bc80af80bf
4
+ data.tar.gz: 7423bff81c02baad908512e0818abc43fbbcc3d0204b4ada1c2f978493349737
5
5
  SHA512:
6
- metadata.gz: e6bf05842b380bba4c0416d037e25a714b5135247a08ad8b586aed4bf9f81029e6cd76c937c2033af651d11f2588eec93c1fcdaa15badfd745e06d2f5fa5b427
7
- data.tar.gz: 1e02020ac29461a2ecd9b80f0cdcaa61887dfea43ad5175796243520af1c35e4fbded69fe68faa24da4342f7705d9b8a9d1e1f0d70e722b1cf3136bcb19bd689
6
+ metadata.gz: 4887f5222fbb592df702fbc2a6907f5513285143c4b3bb838486120045de58a2d866554d340ed098a9c3edb6a090e96e941f879e27c3bfa9654aa39ed5afcc78
7
+ data.tar.gz: a708d38650a8e83e94bd660b2a34860488e0e123eb3e69c6afc868b832e69a6c352468d30d1b101b0ed757d855420a40651d16bc7da08e8adac151fbd6690f7c
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- weaviate-ruby (0.8.8)
4
+ weaviate-ruby (0.8.9)
5
5
  faraday (>= 2.0.1, < 3.0)
6
6
  graphlient (~> 0.7.0)
7
7
 
@@ -124,12 +124,12 @@ module Weaviate
124
124
  Explore (
125
125
  limit: $limit,
126
126
  offset: $offset,
127
- #{near_text.present? ? "nearText: #{near_text}" : ""},
128
- #{near_vector.present? ? "nearVector: #{near_vector}" : ""},
129
- #{near_image.present? ? "nearImage: #{near_image}" : ""},
130
- #{near_object.present? ? "nearObject: #{near_object}" : ""},
131
- #{where.present? ? "where: #{where}" : ""},
132
- #{sort.present? ? "sort: #{sort}" : ""}
127
+ #{(!near_text.nil?) ? "nearText: #{near_text}" : ""},
128
+ #{(!near_vector.nil?) ? "nearVector: #{near_vector}" : ""},
129
+ #{(!near_image.nil?) ? "nearImage: #{near_image}" : ""},
130
+ #{(!near_object.nil?) ? "nearObject: #{near_object}" : ""},
131
+ #{(!where.nil?) ? "where: #{where}" : ""},
132
+ #{(!sort.nil?) ? "sort: #{sort}" : ""}
133
133
  ) {
134
134
  #{fields}
135
135
  }
@@ -163,17 +163,17 @@ module Weaviate
163
163
  after: $after,
164
164
  limit: $limit,
165
165
  offset: $offset,
166
- #{autocut.present? ? "autocut: #{autocut}" : ""},
167
- #{tenant.present? ? "tenant: #{tenant}" : ""},
168
- #{near_text.present? ? "nearText: #{near_text}" : ""},
169
- #{near_vector.present? ? "nearVector: #{near_vector}" : ""},
170
- #{near_image.present? ? "nearImage: #{near_image}" : ""},
171
- #{near_object.present? ? "nearObject: #{near_object}" : ""},
172
- #{with_hybrid.present? ? "hybrid: #{with_hybrid}" : ""},
173
- #{bm25.present? ? "bm25: #{bm25}" : ""},
174
- #{ask.present? ? "ask: #{ask}" : ""},
175
- #{where.present? ? "where: #{where}" : ""},
176
- #{sort.present? ? "sort: #{sort}" : ""}
166
+ #{(!autocut.nil?) ? "autocut: #{autocut}" : ""},
167
+ #{(!tenant.nil?) ? "tenant: #{tenant}" : ""},
168
+ #{(!near_text.nil?) ? "nearText: #{near_text}" : ""},
169
+ #{(!near_vector.nil?) ? "nearVector: #{near_vector}" : ""},
170
+ #{(!near_image.nil?) ? "nearImage: #{near_image}" : ""},
171
+ #{(!near_object.nil?) ? "nearObject: #{near_object}" : ""},
172
+ #{(!with_hybrid.nil?) ? "hybrid: #{with_hybrid}" : ""},
173
+ #{(!bm25.nil?) ? "bm25: #{bm25}" : ""},
174
+ #{(!ask.nil?) ? "ask: #{ask}" : ""},
175
+ #{(!where.nil?) ? "where: #{where}" : ""},
176
+ #{(!sort.nil?) ? "sort: #{sort}" : ""}
177
177
  ) {
178
178
  #{fields}
179
179
  }
@@ -200,11 +200,11 @@ module Weaviate
200
200
  #{class_name}(
201
201
  objectLimit: $object_limit,
202
202
  groupBy: $group_by,
203
- #{near_text.present? ? "nearText: #{near_text}" : ""},
204
- #{near_vector.present? ? "nearVector: #{near_vector}" : ""},
205
- #{near_image.present? ? "nearImage: #{near_image}" : ""},
206
- #{near_object.present? ? "nearObject: #{near_object}" : ""},
207
- #{where.present? ? "where: #{where}" : ""}
203
+ #{(!near_text.nil?) ? "nearText: #{near_text}" : ""},
204
+ #{(!near_vector.nil?) ? "nearVector: #{near_vector}" : ""},
205
+ #{(!near_image.nil?) ? "nearImage: #{near_image}" : ""},
206
+ #{(!near_object.nil?) ? "nearObject: #{near_object}" : ""},
207
+ #{(!where.nil?) ? "where: #{where}" : ""}
208
208
  ) {
209
209
  #{fields}
210
210
  }
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Weaviate
4
- VERSION = "0.8.8"
4
+ VERSION = "0.8.9"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: weaviate-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.8
4
+ version: 0.8.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrei Bondarev