qdrant-ruby 0.9.9 → 0.9.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fb6e4fdc4875c35aa2a6e4a921fae8fd79c7407ec4d20395382829e843e33827
4
- data.tar.gz: eb54d1c1e4cafb05a792c990325a633cb42dcaae8231c3f2246af285578a6b77
3
+ metadata.gz: 6269ed0349b2612a9221b36a181df8c4126e4542685b313dcf839cfc5a91314a
4
+ data.tar.gz: 660452185073d98c71d11ebe68b18dd5c0b16ee96085d830896529a618f473e9
5
5
  SHA512:
6
- metadata.gz: 7db835fa9f01ba9c1ada4732c0a21b531ded39088edc5f523fa12226275f595ec434d7be1f83040c1f7534002f8fdded17b9b26cf1b1beb3c87ea03e5476085c
7
- data.tar.gz: 06017bfade0b83bde059a15012c53cb943a56b61bce6be10d906f449e599b0e8275b5ba492502a4846ed75bdbbbc7bbbe09595cc27325cee8eddafda53ba6386
6
+ metadata.gz: 7b4b80c0d1867ca65b7710974f6c13dd5e885b84b8ded38a2c34499ecff63ed3fdf782fa35a892ea32a110b3448a3b49b61e8f5e1dd7cd2f3ff946065c7ea80a
7
+ data.tar.gz: 8c4957ff10a42198a4f0a133323c99d197eec8177e5c3daec7b1d708255ce101c1b5e4b9e3a70b0fc7e11ac7bda2da15b15a312932875ba36d556468e08527ad
data/Gemfile CHANGED
@@ -5,7 +5,7 @@ source "https://rubygems.org"
5
5
  # Specify your gem's dependencies in qdrant.gemspec
6
6
  gemspec
7
7
 
8
- gem "rake", "~> 13.2"
8
+ gem "rake", "~> 13.3"
9
9
 
10
10
  gem "rspec", "~> 3.13"
11
11
  gem "standard", "~> 1.28.5"
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- qdrant-ruby (0.9.9)
4
+ qdrant-ruby (0.9.10)
5
5
  faraday (>= 2.0.1, < 3)
6
6
 
7
7
  GEM
@@ -11,7 +11,7 @@ GEM
11
11
  base64 (0.2.0)
12
12
  byebug (11.1.3)
13
13
  coderay (1.1.3)
14
- diff-lcs (1.5.1)
14
+ diff-lcs (1.6.2)
15
15
  faraday (2.8.1)
16
16
  base64
17
17
  faraday-net_http (>= 2.0, < 3.1)
@@ -33,22 +33,22 @@ GEM
33
33
  pry (>= 0.13, < 0.15)
34
34
  racc (1.8.1)
35
35
  rainbow (3.1.1)
36
- rake (13.2.1)
36
+ rake (13.3.1)
37
37
  regexp_parser (2.9.2)
38
- rexml (3.3.9)
39
- rspec (3.13.0)
38
+ rexml (3.4.2)
39
+ rspec (3.13.2)
40
40
  rspec-core (~> 3.13.0)
41
41
  rspec-expectations (~> 3.13.0)
42
42
  rspec-mocks (~> 3.13.0)
43
- rspec-core (3.13.2)
43
+ rspec-core (3.13.6)
44
44
  rspec-support (~> 3.13.0)
45
- rspec-expectations (3.13.3)
45
+ rspec-expectations (3.13.5)
46
46
  diff-lcs (>= 1.2.0, < 2.0)
47
47
  rspec-support (~> 3.13.0)
48
- rspec-mocks (3.13.2)
48
+ rspec-mocks (3.13.6)
49
49
  diff-lcs (>= 1.2.0, < 2.0)
50
50
  rspec-support (~> 3.13.0)
51
- rspec-support (3.13.1)
51
+ rspec-support (3.13.6)
52
52
  rubocop (1.50.2)
53
53
  json (~> 2.3)
54
54
  parallel (~> 1.10)
@@ -90,7 +90,7 @@ PLATFORMS
90
90
  DEPENDENCIES
91
91
  pry-byebug (~> 3.9)
92
92
  qdrant-ruby!
93
- rake (~> 13.2)
93
+ rake (~> 13.3)
94
94
  rspec (~> 3.13)
95
95
  standard (~> 1.28.5)
96
96
 
@@ -91,12 +91,15 @@ module Qdrant
91
91
  def create_index(
92
92
  collection_name:,
93
93
  field_name:,
94
- field_schema: nil
94
+ field_schema: nil,
95
+ wait: nil,
96
+ ordering: nil
95
97
  )
96
98
  response = client.connection.put("#{PATH}/#{collection_name}/index") do |req|
97
- req.body = {
98
- field_name: field_name
99
- }
99
+ req.params["ordering"] = ordering unless ordering.nil?
100
+ # Add explicit false check to avoid nil case. True is default behavior.
101
+ req.params["wait"] = wait unless wait.nil?
102
+ req.body = {field_name: field_name}
100
103
  req.body["field_schema"] = field_schema unless field_schema.nil?
101
104
  end
102
105
 
data/lib/qdrant/points.rb CHANGED
@@ -342,7 +342,7 @@ module Qdrant
342
342
  response = client.connection.post("collections/#{collection_name}/#{PATH}/count") do |req|
343
343
  req.body = {}
344
344
  req.body["filter"] = filter unless filter.nil?
345
- req.body["exact"] = filter unless exact.nil?
345
+ req.body["exact"] = exact unless exact.nil?
346
346
  end
347
347
  response.body
348
348
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Qdrant
4
- VERSION = "0.9.9"
4
+ VERSION = "0.9.10"
5
5
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: qdrant-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.9
4
+ version: 0.9.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrei Bondarev
8
8
  bindir: exe
9
9
  cert_chain: []
10
- date: 2025-04-11 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: faraday
@@ -92,7 +92,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
92
92
  - !ruby/object:Gem::Version
93
93
  version: '0'
94
94
  requirements: []
95
- rubygems_version: 3.6.2
95
+ rubygems_version: 3.6.9
96
96
  specification_version: 4
97
97
  summary: Ruby wrapper for the Qdrant vector search database API
98
98
  test_files: []