qdrant-ruby 0.9.5 → 0.9.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 129c11f038c7cdec32703155967fd2831b08a1b4323a4dc2d8eafc63fa4a9bde
4
- data.tar.gz: 5222698f5c9a875bccfd8a9e92f308df3241e38d12c668f841f990ff519bba32
3
+ metadata.gz: daa79e8d789d5a0c4da9cd5592dc361674c60c29b8365e4817a8f5c1f0ebacdb
4
+ data.tar.gz: 4d3d67bdf59663ba8f4fb4644d4be74cc9e7cdb0e547047ee4485b149021ea9c
5
5
  SHA512:
6
- metadata.gz: d7ef9ab3b7927e625e12dcd2432b60109495566ddb92dd08b6dce9964c52c1d448041d0e4ee901a813d6db9ebb2e02ac80dbc38c3f8336df91f44dce2db0e5c3
7
- data.tar.gz: 2f9f1b1d0189123707ed6391c35ae9ab7c09eceb9416ef800e814e7d3dbafd0e603caa9d10a166cc2c0a9b067290a730b5ca982208f37a95e7ea21be479cb3c5
6
+ metadata.gz: 2d3d7c91a53f269543925feda94237599c4f0886e6812504d96427739aab8914693890cd8c98f0c4dffb17c971fa99a09f6026d990d0170be521ce186211fe0c
7
+ data.tar.gz: 8fe548b7eef0acea610057d67e19f21e7835ec98ee732d31c42cdefd2d39254b743cc038d665e6720fe709e3cbe284361141a21743e9232b7c255765aea3a92b
data/CHANGELOG.md CHANGED
@@ -1,9 +1,15 @@
1
1
  ## [Unreleased]
2
+
3
+ ## [0.9.7] - 2024-01-19
4
+ - fix: points/delete api
5
+
6
+ ## [0.9.6] - 2024-01-13
7
+ - 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.
8
+
2
9
  ## [0.9.5] - 2024-01-12
3
10
  - Bugfix: ArgumentError for filter in points delete
4
11
  ## [0.9.4] - 2023-08-31
5
12
  - Introduce `Points#get_all()` method
6
13
 
7
14
  ## [0.9.0] - 2023-04-08
8
-
9
15
  - Initial release
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- qdrant-ruby (0.9.5)
4
+ qdrant-ruby (0.9.7)
5
5
  faraday (>= 2.0.1, < 3)
6
6
 
7
7
  GEM
@@ -68,6 +68,7 @@ GEM
68
68
  unicode-display_width (2.4.2)
69
69
 
70
70
  PLATFORMS
71
+ arm64-darwin-23
71
72
  x86_64-darwin-19
72
73
  x86_64-darwin-21
73
74
  x86_64-linux
data/lib/qdrant/points.rb CHANGED
@@ -46,16 +46,21 @@ module Qdrant
46
46
  # Delete points
47
47
  def delete(
48
48
  collection_name:,
49
- points:, wait: nil,
49
+ points: nil,
50
+ wait: nil,
50
51
  ordering: nil,
51
52
  filter: nil
52
53
  )
54
+
55
+ raise ArgumentError, "Either points or filter should be provided" if points.nil? && filter.nil?
56
+
53
57
  response = client.connection.post("collections/#{collection_name}/#{PATH}/delete") do |req|
54
58
  req.params["wait"] = wait unless wait.nil?
55
59
  req.params["ordering"] = ordering unless ordering.nil?
56
60
 
57
61
  req.body = {}
58
- req.body["points"] = points
62
+
63
+ req.body["points"] = points unless points.nil?
59
64
  req.body["filter"] = filter unless filter.nil?
60
65
  end
61
66
  response.body
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Qdrant
4
- VERSION = "0.9.5"
4
+ VERSION = "0.9.7"
5
5
  end
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.5
4
+ version: 0.9.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrei Bondarev
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-01-12 00:00:00.000000000 Z
11
+ date: 2024-01-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -94,7 +94,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
94
94
  - !ruby/object:Gem::Version
95
95
  version: '0'
96
96
  requirements: []
97
- rubygems_version: 3.2.3
97
+ rubygems_version: 3.4.1
98
98
  signing_key:
99
99
  specification_version: 4
100
100
  summary: Ruby wrapper for the Qdrant vector search database API