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 +4 -4
- data/Gemfile +1 -1
- data/Gemfile.lock +10 -10
- data/lib/qdrant/collections.rb +7 -4
- data/lib/qdrant/points.rb +1 -1
- data/lib/qdrant/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6269ed0349b2612a9221b36a181df8c4126e4542685b313dcf839cfc5a91314a
|
|
4
|
+
data.tar.gz: 660452185073d98c71d11ebe68b18dd5c0b16ee96085d830896529a618f473e9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7b4b80c0d1867ca65b7710974f6c13dd5e885b84b8ded38a2c34499ecff63ed3fdf782fa35a892ea32a110b3448a3b49b61e8f5e1dd7cd2f3ff946065c7ea80a
|
|
7
|
+
data.tar.gz: 8c4957ff10a42198a4f0a133323c99d197eec8177e5c3daec7b1d708255ce101c1b5e4b9e3a70b0fc7e11ac7bda2da15b15a312932875ba36d556468e08527ad
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
qdrant-ruby (0.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.
|
|
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.
|
|
36
|
+
rake (13.3.1)
|
|
37
37
|
regexp_parser (2.9.2)
|
|
38
|
-
rexml (3.
|
|
39
|
-
rspec (3.13.
|
|
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.
|
|
43
|
+
rspec-core (3.13.6)
|
|
44
44
|
rspec-support (~> 3.13.0)
|
|
45
|
-
rspec-expectations (3.13.
|
|
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.
|
|
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.
|
|
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.
|
|
93
|
+
rake (~> 13.3)
|
|
94
94
|
rspec (~> 3.13)
|
|
95
95
|
standard (~> 1.28.5)
|
|
96
96
|
|
data/lib/qdrant/collections.rb
CHANGED
|
@@ -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.
|
|
98
|
-
|
|
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"] =
|
|
345
|
+
req.body["exact"] = exact unless exact.nil?
|
|
346
346
|
end
|
|
347
347
|
response.body
|
|
348
348
|
end
|
data/lib/qdrant/version.rb
CHANGED
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.
|
|
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:
|
|
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.
|
|
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: []
|