qdrant-ruby 0.9.4 → 0.9.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/Gemfile.lock +1 -1
- data/lib/qdrant/points.rb +10 -3
- data/lib/qdrant/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c3da8974a1a5fc9f26a37ff30b39fc3bba4af35000f000ea9e8c273062db7d42
|
4
|
+
data.tar.gz: e21f005e60ba9b14ac7691eb45d527a85f50ecd6adf695cdbd19c12deeed0217
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dc932b21694224ded18ab719ba21b492a8990655d133ba2c64df5948d7e019ee5c52ffe2e8a4937e7cfaaf6d7dfb764406e4c7b68cdc250cce2b1dfa1bccbbd8
|
7
|
+
data.tar.gz: 56ed5b8e8d61b23e6553844008d44259b4cec1a8ffe66fbed5cf93834d27539ffecaaad1d61b1a55de27c933d933877de9151e9be849430d05aa4a9e0366e46c
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
## [Unreleased]
|
2
2
|
|
3
|
+
## [0.9.6] - 2024-01-13
|
4
|
+
- Updated Points#delete() method: Removed the requirement to specify points: in parameters. Now generates an error if neither points: nor filters: are provided, aligning with delete_points documentation standards.
|
5
|
+
|
6
|
+
## [0.9.5] - 2024-01-12
|
7
|
+
- Bugfix: ArgumentError for filter in points delete
|
3
8
|
## [0.9.4] - 2023-08-31
|
4
9
|
- Introduce `Points#get_all()` method
|
5
10
|
|
data/Gemfile.lock
CHANGED
data/lib/qdrant/points.rb
CHANGED
@@ -46,15 +46,22 @@ module Qdrant
|
|
46
46
|
# Delete points
|
47
47
|
def delete(
|
48
48
|
collection_name:,
|
49
|
-
points
|
50
|
-
|
49
|
+
points: nil,
|
50
|
+
wait: nil,
|
51
|
+
ordering: nil,
|
52
|
+
filter: nil
|
51
53
|
)
|
54
|
+
|
55
|
+
raise ArgumentError, "Either points or filter should be provided" if points.nil? && filter.nil?
|
56
|
+
|
52
57
|
response = client.connection.post("collections/#{collection_name}/#{PATH}/delete") do |req|
|
53
58
|
req.params["wait"] = wait unless wait.nil?
|
54
59
|
req.params["ordering"] = ordering unless ordering.nil?
|
55
60
|
|
56
61
|
req.body = {}
|
57
|
-
|
62
|
+
|
63
|
+
req.body["points"] = points unless filter.nil?
|
64
|
+
req.body["filter"] = filter unless filter.nil?
|
58
65
|
end
|
59
66
|
response.body
|
60
67
|
end
|
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.6
|
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-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|