weaviate-ruby 0.8.5 → 0.8.7

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: ffbe97178df453d77bcd0071e405f77cdad6bea3278103ec23cd04250dbd5735
4
- data.tar.gz: '038c9ef137b6c3222ec1eabbd18b571dc3db71b29e734f0045241790a94f96c2'
3
+ metadata.gz: 99e3674e3c6effbe5a72aa01140cc69062638ba75b725130c60f5a3b06deeb84
4
+ data.tar.gz: 430cb2635b7dd15dc2084a6ca33bec14bb1cfaa6dd76a84b89b1b6ac44420438
5
5
  SHA512:
6
- metadata.gz: 48689c5b2005f63fa6b55b975778aa5c0da34a82c1caf62abe8224f4ad1d2722481177ebb7f684cf12fa3f7485f058ab433d1ac3b8a8b0a818ea666a9b8eef2b
7
- data.tar.gz: 3d06817dcab514c2e16ec68f8a870272635f0cfc19b5a6f6a12cc263f32fb99d18b7472c863c8f9144182dbec5550a3a1bbab4a3d3c925d42af120ab16f3db30
6
+ metadata.gz: be17c6860196fdb4d55c45397960cf4617502e9231f677d0a4ae6ddeb6198c1555d04e4c6ba51b262ba2874638203185d852e2b3039602e9daa4f04ef445cc8c
7
+ data.tar.gz: 2266ffaf964a2d65de2f15961e57e14b7cc557c686e02b4d6e5657cf266d553f01ca7ab6747e87eb386b965c918ba262c69b7cd75c4d9c0700b42a2689a77a73
data/Gemfile.lock CHANGED
@@ -1,10 +1,9 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- weaviate-ruby (0.8.5)
5
- faraday (~> 1)
6
- faraday_middleware (~> 1)
7
- graphlient (~> 0.6.0)
4
+ weaviate-ruby (0.8.7)
5
+ faraday (>= 2.0.1, < 3.0)
6
+ graphlient (~> 0.7.0)
8
7
 
9
8
  GEM
10
9
  remote: https://rubygems.org/
@@ -19,14 +18,12 @@ GEM
19
18
  coderay (1.1.3)
20
19
  concurrent-ruby (1.2.2)
21
20
  diff-lcs (1.5.0)
22
- faraday (1.2.0)
23
- multipart-post (>= 1.2, < 3)
24
- ruby2_keywords
25
- faraday_middleware (1.2.0)
26
- faraday (~> 1.0)
27
- graphlient (0.6.0)
28
- faraday (>= 1.0)
29
- faraday_middleware
21
+ faraday (2.7.10)
22
+ faraday-net_http (>= 2.0, < 3.1)
23
+ ruby2_keywords (>= 0.0.4)
24
+ faraday-net_http (3.0.2)
25
+ graphlient (0.7.0)
26
+ faraday (~> 2.0)
30
27
  graphql-client
31
28
  graphql (2.0.19)
32
29
  graphql-client (0.18.0)
@@ -38,7 +35,6 @@ GEM
38
35
  language_server-protocol (3.17.0.3)
39
36
  method_source (1.0.0)
40
37
  minitest (5.18.0)
41
- multipart-post (2.3.0)
42
38
  parallel (1.22.1)
43
39
  parser (3.2.1.1)
44
40
  ast (~> 2.4.1)
@@ -95,6 +91,7 @@ GEM
95
91
  PLATFORMS
96
92
  arm64-darwin-21
97
93
  x86_64-darwin-19
94
+ x86_64-darwin-21
98
95
  x86_64-linux
99
96
 
100
97
  DEPENDENCIES
@@ -8,6 +8,7 @@ module Weaviate
8
8
  after: nil,
9
9
  tenant: nil,
10
10
  limit: nil,
11
+ autocut: nil,
11
12
  offset: nil,
12
13
  sort: nil,
13
14
  where: nil,
@@ -24,6 +25,7 @@ module Weaviate
24
25
  class_name: class_name,
25
26
  tenant: tenant,
26
27
  fields: fields,
28
+ autocut: autocut,
27
29
  sort: sort,
28
30
  where: where,
29
31
  near_text: near_text,
@@ -46,6 +48,7 @@ module Weaviate
46
48
  def aggs(
47
49
  class_name:,
48
50
  fields: nil,
51
+ where: nil,
49
52
  object_limit: nil,
50
53
  near_text: nil,
51
54
  near_vector: nil,
@@ -57,6 +60,7 @@ module Weaviate
57
60
  aggs_query(
58
61
  class_name: class_name,
59
62
  fields: fields,
63
+ where: where,
60
64
  near_text: near_text,
61
65
  near_vector: near_vector,
62
66
  near_image: near_image,
@@ -85,6 +89,8 @@ module Weaviate
85
89
  response = client.graphql.execute(
86
90
  explore_query(
87
91
  fields: fields,
92
+ sort: sort,
93
+ where: where,
88
94
  near_text: near_text,
89
95
  near_vector: near_vector,
90
96
  near_image: near_image,
@@ -121,7 +127,7 @@ module Weaviate
121
127
  #{near_text.present? ? "nearText: #{near_text}" : ""},
122
128
  #{near_vector.present? ? "nearVector: #{near_vector}" : ""},
123
129
  #{near_image.present? ? "nearImage: #{near_image}" : ""},
124
- #{near_object.present? ? "nearObject: #{near_object}" : ""}
130
+ #{near_object.present? ? "nearObject: #{near_object}" : ""},
125
131
  #{where.present? ? "where: #{where}" : ""},
126
132
  #{sort.present? ? "sort: #{sort}" : ""}
127
133
  ) {
@@ -133,7 +139,9 @@ module Weaviate
133
139
 
134
140
  def get_query(
135
141
  class_name:,
136
- fields:, tenant: nil,
142
+ fields:,
143
+ autocut:,
144
+ tenant: nil,
137
145
  where: nil,
138
146
  near_text: nil,
139
147
  near_vector: nil,
@@ -155,7 +163,8 @@ module Weaviate
155
163
  after: $after,
156
164
  limit: $limit,
157
165
  offset: $offset,
158
- #{tenant.present? ? "tenant: #{tenant}" : ""}
166
+ #{autocut.present? ? "autocut: #{autocut}" : ""},
167
+ #{tenant.present? ? "tenant: #{tenant}" : ""},
159
168
  #{near_text.present? ? "nearText: #{near_text}" : ""},
160
169
  #{near_vector.present? ? "nearVector: #{near_vector}" : ""},
161
170
  #{near_image.present? ? "nearImage: #{near_image}" : ""},
@@ -176,6 +185,7 @@ module Weaviate
176
185
  def aggs_query(
177
186
  class_name:,
178
187
  fields:,
188
+ where: nil,
179
189
  near_text: nil,
180
190
  near_vector: nil,
181
191
  near_image: nil,
@@ -193,7 +203,8 @@ module Weaviate
193
203
  #{near_text.present? ? "nearText: #{near_text}" : ""},
194
204
  #{near_vector.present? ? "nearVector: #{near_vector}" : ""},
195
205
  #{near_image.present? ? "nearImage: #{near_image}" : ""},
196
- #{near_object.present? ? "nearObject: #{near_object}" : ""}
206
+ #{near_object.present? ? "nearObject: #{near_object}" : ""},
207
+ #{where.present? ? "where: #{where}" : ""}
197
208
  ) {
198
209
  #{fields}
199
210
  }
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Weaviate
4
- VERSION = "0.8.5"
4
+ VERSION = "0.8.7"
5
5
  end
metadata CHANGED
@@ -1,57 +1,49 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: weaviate-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.5
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-07-19 00:00:00.000000000 Z
11
+ date: 2023-09-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '1'
20
- type: :runtime
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - "~>"
19
+ version: 2.0.1
20
+ - - "<"
25
21
  - !ruby/object:Gem::Version
26
- version: '1'
27
- - !ruby/object:Gem::Dependency
28
- name: faraday_middleware
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - "~>"
32
- - !ruby/object:Gem::Version
33
- version: '1'
22
+ version: '3.0'
34
23
  type: :runtime
35
24
  prerelease: false
36
25
  version_requirements: !ruby/object:Gem::Requirement
37
26
  requirements:
38
- - - "~>"
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: 2.0.1
30
+ - - "<"
39
31
  - !ruby/object:Gem::Version
40
- version: '1'
32
+ version: '3.0'
41
33
  - !ruby/object:Gem::Dependency
42
34
  name: graphlient
43
35
  requirement: !ruby/object:Gem::Requirement
44
36
  requirements:
45
37
  - - "~>"
46
38
  - !ruby/object:Gem::Version
47
- version: 0.6.0
39
+ version: 0.7.0
48
40
  type: :runtime
49
41
  prerelease: false
50
42
  version_requirements: !ruby/object:Gem::Requirement
51
43
  requirements:
52
44
  - - "~>"
53
45
  - !ruby/object:Gem::Version
54
- version: 0.6.0
46
+ version: 0.7.0
55
47
  - !ruby/object:Gem::Dependency
56
48
  name: pry-byebug
57
49
  requirement: !ruby/object:Gem::Requirement