weaviate-ruby 0.8.0 → 0.8.1

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: e3fbf2a33be8c215b77162ae797f54be34962fa8f26b9c47880b6e80028997da
4
- data.tar.gz: 6e3cd21e2c087e180afa031366d4284b9c5a65cd98a4162e6cbf23049164fb0a
3
+ metadata.gz: ff43dd4e48354bba53771fbc30f7c865f9df31d5dcc667b0b4b4f2d907eac333
4
+ data.tar.gz: a3dd981006d613a1cc459f73d1fdc097900d92f51d05949ae66d55382311a301
5
5
  SHA512:
6
- metadata.gz: 182607f0a3efbdfbd473289c005218ef2987100f2eac33b22c1d01cdc38a39183ce589943232e61a504b17831722875546c56780caa96b33086adb1d031edf86
7
- data.tar.gz: 9b3b1b947bc19268e11f53a3df2988bec3c3f124a3c8144b1ecb5b69c5220f2eb3c2158cde198fbeab43f3f73ff2f5f19feb9241b12c43d55d77980ec8bd84b2
6
+ metadata.gz: cfd1bc9822c6ad3326f165de30480d67f71ba6f72eacb0a8eeb95c45e38d903b46d61b1b86d9b73a841ebf60d0e6f13b5e472288fca1fbb0fba640f825b54cad
7
+ data.tar.gz: 59e369bd4676ae0ad3a7429e5355db9898638ff339dc6779f99a4585f340243c4f25065af276eaff67add8aa58871539c726afd9f4096cacf8ce3ecf96c77490
data/Gemfile.lock CHANGED
@@ -1,9 +1,10 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- weaviate-ruby (0.8.0)
5
- faraday (~> 2.7)
6
- graphlient (~> 0.7.0)
4
+ weaviate-ruby (0.8.1)
5
+ faraday (~> 1)
6
+ faraday_middleware (~> 1)
7
+ graphlient (~> 0.6.0)
7
8
 
8
9
  GEM
9
10
  remote: https://rubygems.org/
@@ -18,12 +19,14 @@ GEM
18
19
  coderay (1.1.3)
19
20
  concurrent-ruby (1.2.2)
20
21
  diff-lcs (1.5.0)
21
- faraday (2.7.4)
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)
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
27
30
  graphql-client
28
31
  graphql (2.0.19)
29
32
  graphql-client (0.18.0)
@@ -35,6 +38,7 @@ GEM
35
38
  language_server-protocol (3.17.0.3)
36
39
  method_source (1.0.0)
37
40
  minitest (5.18.0)
41
+ multipart-post (2.3.0)
38
42
  parallel (1.22.1)
39
43
  parser (3.2.1.1)
40
44
  ast (~> 2.4.1)
data/README.md CHANGED
@@ -169,6 +169,7 @@ client.objects.batch_delete(
169
169
  #### Get{}
170
170
  ```ruby
171
171
  near_text = '{ concepts: ["biology"] }'
172
+ near_vector = '{ vector: [0.1, 0.2, ...] }'
172
173
  sort_obj = '{ path: ["category"], order: desc }'
173
174
  where_obj = '{ path: ["id"], operator: Equal, valueString: "..." }'
174
175
  with_hybrid = '{ query: "Sweets", alpha: 0.5 }'
@@ -188,6 +189,8 @@ client.query.get(
188
189
 
189
190
  # To use this parameter you must have created your schema by setting the `vectorizer:` property to 'multi2vec-clip' or 'img2vec-neural'
190
191
  near_image: near_image,
192
+
193
+ near_vector: near_vector,
191
194
 
192
195
  with_hybrid: with_hybrid,
193
196
 
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require "faraday"
4
+ require "faraday_middleware"
4
5
  require "graphlient"
5
6
 
6
7
  module Weaviate
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Weaviate
4
- VERSION = "0.8.0"
4
+ VERSION = "0.8.1"
5
5
  end
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.0
4
+ version: 0.8.1
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-04-18 00:00:00.000000000 Z
11
+ date: 2023-05-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -16,28 +16,42 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '2.7'
19
+ version: '1'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '2.7'
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'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1'
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: graphlient
29
43
  requirement: !ruby/object:Gem::Requirement
30
44
  requirements:
31
45
  - - "~>"
32
46
  - !ruby/object:Gem::Version
33
- version: 0.7.0
47
+ version: 0.6.0
34
48
  type: :runtime
35
49
  prerelease: false
36
50
  version_requirements: !ruby/object:Gem::Requirement
37
51
  requirements:
38
52
  - - "~>"
39
53
  - !ruby/object:Gem::Version
40
- version: 0.7.0
54
+ version: 0.6.0
41
55
  - !ruby/object:Gem::Dependency
42
56
  name: pry-byebug
43
57
  requirement: !ruby/object:Gem::Requirement