weaviate-ruby 0.8.6 → 0.8.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/weaviate/query.rb +5 -1
- data/lib/weaviate/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: 99e3674e3c6effbe5a72aa01140cc69062638ba75b725130c60f5a3b06deeb84
|
4
|
+
data.tar.gz: 430cb2635b7dd15dc2084a6ca33bec14bb1cfaa6dd76a84b89b1b6ac44420438
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: be17c6860196fdb4d55c45397960cf4617502e9231f677d0a4ae6ddeb6198c1555d04e4c6ba51b262ba2874638203185d852e2b3039602e9daa4f04ef445cc8c
|
7
|
+
data.tar.gz: 2266ffaf964a2d65de2f15961e57e14b7cc557c686e02b4d6e5657cf266d553f01ca7ab6747e87eb386b965c918ba262c69b7cd75c4d9c0700b42a2689a77a73
|
data/Gemfile.lock
CHANGED
data/lib/weaviate/query.rb
CHANGED
@@ -48,6 +48,7 @@ module Weaviate
|
|
48
48
|
def aggs(
|
49
49
|
class_name:,
|
50
50
|
fields: nil,
|
51
|
+
where: nil,
|
51
52
|
object_limit: nil,
|
52
53
|
near_text: nil,
|
53
54
|
near_vector: nil,
|
@@ -59,6 +60,7 @@ module Weaviate
|
|
59
60
|
aggs_query(
|
60
61
|
class_name: class_name,
|
61
62
|
fields: fields,
|
63
|
+
where: where,
|
62
64
|
near_text: near_text,
|
63
65
|
near_vector: near_vector,
|
64
66
|
near_image: near_image,
|
@@ -183,6 +185,7 @@ module Weaviate
|
|
183
185
|
def aggs_query(
|
184
186
|
class_name:,
|
185
187
|
fields:,
|
188
|
+
where: nil,
|
186
189
|
near_text: nil,
|
187
190
|
near_vector: nil,
|
188
191
|
near_image: nil,
|
@@ -200,7 +203,8 @@ module Weaviate
|
|
200
203
|
#{near_text.present? ? "nearText: #{near_text}" : ""},
|
201
204
|
#{near_vector.present? ? "nearVector: #{near_vector}" : ""},
|
202
205
|
#{near_image.present? ? "nearImage: #{near_image}" : ""},
|
203
|
-
#{near_object.present? ? "nearObject: #{near_object}" : ""}
|
206
|
+
#{near_object.present? ? "nearObject: #{near_object}" : ""},
|
207
|
+
#{where.present? ? "where: #{where}" : ""}
|
204
208
|
) {
|
205
209
|
#{fields}
|
206
210
|
}
|
data/lib/weaviate/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: weaviate-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrei Bondarev
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-09-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|