qdrant-ruby 0.9.3 → 0.9.4
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 +3 -0
- data/Gemfile.lock +1 -1
- data/README.md +8 -0
- data/lib/qdrant/points.rb +19 -0
- 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: 6131bbeba0933605e9a986616e976adf0d9a7fd7ced10b1e0d4e2794f918a5bd
|
4
|
+
data.tar.gz: 437883b5892665cf213398706549308aca932dccf3a19ed3ddfb204275a6b372
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 06d903b87b1c4a9a14914d89258b7c111b33791130f377354393cd00e7406f88b136f9b0ac423130f4d7f86fef074be5ec252efe6870844c932b3336cdf6ba21
|
7
|
+
data.tar.gz: aceebbe09a885650e3fd112097f47f325ba380fecc181cc172bc1bbff29028ad9b9a687fde926d356f30a672d357d4755e40ee30a5361193c0cda26c048dd045
|
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
@@ -71,6 +71,25 @@ module Qdrant
|
|
71
71
|
response.body
|
72
72
|
end
|
73
73
|
|
74
|
+
# Retrieve full information of points by ids
|
75
|
+
def get_all(
|
76
|
+
collection_name:,
|
77
|
+
ids:,
|
78
|
+
consistency: nil,
|
79
|
+
with_payload: nil,
|
80
|
+
with_vector: nil
|
81
|
+
)
|
82
|
+
response = client.connection.post("collections/#{collection_name}/#{PATH}") do |req|
|
83
|
+
req.params["consistency"] = consistency unless consistency.nil?
|
84
|
+
|
85
|
+
req.body = {}
|
86
|
+
req.body["ids"] = ids
|
87
|
+
req.body["with_payload"] = with_payload unless with_payload.nil?
|
88
|
+
req.body["with_vector"] = with_vector unless with_vector.nil?
|
89
|
+
end
|
90
|
+
response.body
|
91
|
+
end
|
92
|
+
|
74
93
|
# Set payload values for points
|
75
94
|
def set_payload(
|
76
95
|
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.4
|
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-08-
|
11
|
+
date: 2023-08-31 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
|