weaviate-ruby 0.8.5 → 0.8.6

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: 83fb7552f634c79632cbc4cbcfcd02364085cd67ce58669f6f90448e383f573b
4
+ data.tar.gz: b8584df9da3abeeed1db9df7730ad4f145feb3c6055396f810a4d2b9c962ba58
5
5
  SHA512:
6
- metadata.gz: 48689c5b2005f63fa6b55b975778aa5c0da34a82c1caf62abe8224f4ad1d2722481177ebb7f684cf12fa3f7485f058ab433d1ac3b8a8b0a818ea666a9b8eef2b
7
- data.tar.gz: 3d06817dcab514c2e16ec68f8a870272635f0cfc19b5a6f6a12cc263f32fb99d18b7472c863c8f9144182dbec5550a3a1bbab4a3d3c925d42af120ab16f3db30
6
+ metadata.gz: 70252389e7843f713252cb57a3c005760804c2b36f8180926762d7ac20f574e0470ccc24dafd56fed418de40a572ebf81c30fe1734d724357230c0ac81598b2f
7
+ data.tar.gz: dcc69f3e64e513a10f1d41ee8086bef3e58d5abcd9b264eb7db8aa84d79a19b72eb174bdfb7868d056e9d256366c3fbeacddf6428759c7e23bd28dfb2b57c29c
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.6)
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,
@@ -85,6 +87,8 @@ module Weaviate
85
87
  response = client.graphql.execute(
86
88
  explore_query(
87
89
  fields: fields,
90
+ sort: sort,
91
+ where: where,
88
92
  near_text: near_text,
89
93
  near_vector: near_vector,
90
94
  near_image: near_image,
@@ -121,7 +125,7 @@ module Weaviate
121
125
  #{near_text.present? ? "nearText: #{near_text}" : ""},
122
126
  #{near_vector.present? ? "nearVector: #{near_vector}" : ""},
123
127
  #{near_image.present? ? "nearImage: #{near_image}" : ""},
124
- #{near_object.present? ? "nearObject: #{near_object}" : ""}
128
+ #{near_object.present? ? "nearObject: #{near_object}" : ""},
125
129
  #{where.present? ? "where: #{where}" : ""},
126
130
  #{sort.present? ? "sort: #{sort}" : ""}
127
131
  ) {
@@ -133,7 +137,9 @@ module Weaviate
133
137
 
134
138
  def get_query(
135
139
  class_name:,
136
- fields:, tenant: nil,
140
+ fields:,
141
+ autocut:,
142
+ tenant: nil,
137
143
  where: nil,
138
144
  near_text: nil,
139
145
  near_vector: nil,
@@ -155,7 +161,8 @@ module Weaviate
155
161
  after: $after,
156
162
  limit: $limit,
157
163
  offset: $offset,
158
- #{tenant.present? ? "tenant: #{tenant}" : ""}
164
+ #{autocut.present? ? "autocut: #{autocut}" : ""},
165
+ #{tenant.present? ? "tenant: #{tenant}" : ""},
159
166
  #{near_text.present? ? "nearText: #{near_text}" : ""},
160
167
  #{near_vector.present? ? "nearVector: #{near_vector}" : ""},
161
168
  #{near_image.present? ? "nearImage: #{near_image}" : ""},
@@ -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.6"
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.6
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-08-10 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