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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/weaviate/query.rb +22 -22
- data/lib/weaviate/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8289cf9c5b37631db1c1d0607f0e2820477e8edb637b34a3efbef8bc80af80bf
|
4
|
+
data.tar.gz: 7423bff81c02baad908512e0818abc43fbbcc3d0204b4ada1c2f978493349737
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4887f5222fbb592df702fbc2a6907f5513285143c4b3bb838486120045de58a2d866554d340ed098a9c3edb6a090e96e941f879e27c3bfa9654aa39ed5afcc78
|
7
|
+
data.tar.gz: a708d38650a8e83e94bd660b2a34860488e0e123eb3e69c6afc868b832e69a6c352468d30d1b101b0ed757d855420a40651d16bc7da08e8adac151fbd6690f7c
|
data/Gemfile.lock
CHANGED
data/lib/weaviate/query.rb
CHANGED
@@ -124,12 +124,12 @@ module Weaviate
|
|
124
124
|
Explore (
|
125
125
|
limit: $limit,
|
126
126
|
offset: $offset,
|
127
|
-
#{near_text.
|
128
|
-
#{near_vector.
|
129
|
-
#{near_image.
|
130
|
-
#{near_object.
|
131
|
-
#{where.
|
132
|
-
#{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.
|
167
|
-
#{tenant.
|
168
|
-
#{near_text.
|
169
|
-
#{near_vector.
|
170
|
-
#{near_image.
|
171
|
-
#{near_object.
|
172
|
-
#{with_hybrid.
|
173
|
-
#{bm25.
|
174
|
-
#{ask.
|
175
|
-
#{where.
|
176
|
-
#{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.
|
204
|
-
#{near_vector.
|
205
|
-
#{near_image.
|
206
|
-
#{near_object.
|
207
|
-
#{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
|
}
|
data/lib/weaviate/version.rb
CHANGED