qdrant-ruby 0.9.3 → 0.9.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.env.example +2 -0
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +1 -1
- data/README.md +8 -0
- data/lib/qdrant/points.rb +22 -1
- data/lib/qdrant/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 129c11f038c7cdec32703155967fd2831b08a1b4323a4dc2d8eafc63fa4a9bde
|
4
|
+
data.tar.gz: 5222698f5c9a875bccfd8a9e92f308df3241e38d12c668f841f990ff519bba32
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d7ef9ab3b7927e625e12dcd2432b60109495566ddb92dd08b6dce9964c52c1d448041d0e4ee901a813d6db9ebb2e02ac80dbc38c3f8336df91f44dce2db0e5c3
|
7
|
+
data.tar.gz: 2f9f1b1d0189123707ed6391c35ae9ab7c09eceb9416ef800e814e7d3dbafd0e603caa9d10a166cc2c0a9b067290a730b5ca982208f37a95e7ea21be479cb3c5
|
data/.env.example
ADDED
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -163,6 +163,14 @@ client.points.get(
|
|
163
163
|
consistency: "int"
|
164
164
|
)
|
165
165
|
|
166
|
+
# Retrieve full information of points by ids
|
167
|
+
client.points.get_all(
|
168
|
+
collection_name: "string", # required
|
169
|
+
ids: "[int]", # required
|
170
|
+
with_payload: "boolean"
|
171
|
+
with_vector: "boolean"
|
172
|
+
)
|
173
|
+
|
166
174
|
# Lists all data objects in reverse order of creation. The data will be returned as an array of objects.
|
167
175
|
client.points.list(
|
168
176
|
collection_name: "string", # required
|
data/lib/qdrant/points.rb
CHANGED
@@ -47,7 +47,8 @@ module Qdrant
|
|
47
47
|
def delete(
|
48
48
|
collection_name:,
|
49
49
|
points:, wait: nil,
|
50
|
-
ordering: nil
|
50
|
+
ordering: nil,
|
51
|
+
filter: nil
|
51
52
|
)
|
52
53
|
response = client.connection.post("collections/#{collection_name}/#{PATH}/delete") do |req|
|
53
54
|
req.params["wait"] = wait unless wait.nil?
|
@@ -55,6 +56,7 @@ module Qdrant
|
|
55
56
|
|
56
57
|
req.body = {}
|
57
58
|
req.body["points"] = points
|
59
|
+
req.body["filter"] = filter unless filter.nil?
|
58
60
|
end
|
59
61
|
response.body
|
60
62
|
end
|
@@ -71,6 +73,25 @@ module Qdrant
|
|
71
73
|
response.body
|
72
74
|
end
|
73
75
|
|
76
|
+
# Retrieve full information of points by ids
|
77
|
+
def get_all(
|
78
|
+
collection_name:,
|
79
|
+
ids:,
|
80
|
+
consistency: nil,
|
81
|
+
with_payload: nil,
|
82
|
+
with_vector: nil
|
83
|
+
)
|
84
|
+
response = client.connection.post("collections/#{collection_name}/#{PATH}") do |req|
|
85
|
+
req.params["consistency"] = consistency unless consistency.nil?
|
86
|
+
|
87
|
+
req.body = {}
|
88
|
+
req.body["ids"] = ids
|
89
|
+
req.body["with_payload"] = with_payload unless with_payload.nil?
|
90
|
+
req.body["with_vector"] = with_vector unless with_vector.nil?
|
91
|
+
end
|
92
|
+
response.body
|
93
|
+
end
|
94
|
+
|
74
95
|
# Set payload values for points
|
75
96
|
def set_payload(
|
76
97
|
collection_name:,
|
data/lib/qdrant/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
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.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrei Bondarev
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-01-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -52,6 +52,7 @@ executables: []
|
|
52
52
|
extensions: []
|
53
53
|
extra_rdoc_files: []
|
54
54
|
files:
|
55
|
+
- ".env.example"
|
55
56
|
- ".rspec"
|
56
57
|
- CHANGELOG.md
|
57
58
|
- Gemfile
|