qdrant-ruby 0.9.7 → 0.9.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/Gemfile.lock +1 -1
- data/README.md +2 -2
- data/lib/qdrant/client.rb +5 -2
- 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: c009d0edf98ba90d6d37eeae04d16ae3900f6c66ac25a231b5d4dd2b0ecb7a0d
|
4
|
+
data.tar.gz: f44fb8454d573445758885eeb2d4141c5f2877ac0b89df368e2a75104b511eaa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d2752bb4b95bba1eed39e37a1393feb4f2fb8ca97bbf2bd1fcf1e09b53dad77fc519fb3a46c1616fd318a06a8cf6a6c965de5c0a2c49eb2a16efde0a90bf9769
|
7
|
+
data.tar.gz: e710fd046dffa50fe269d82c320334196c26098d5d9c629559c3ff247d9bddeddefc0654476f1307fa2f03023840aecfac64b9be5397366c31c20fc42f559d8e
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -34,8 +34,8 @@ If bundler is not being used to manage dependencies, install the gem by executin
|
|
34
34
|
require 'qdrant'
|
35
35
|
|
36
36
|
client = Qdrant::Client.new(
|
37
|
-
url: "
|
38
|
-
api_key: "
|
37
|
+
url: ENV["QDRANT_URL"],
|
38
|
+
api_key: ENV["QDRANT_API_KEY"]
|
39
39
|
)
|
40
40
|
```
|
41
41
|
|
data/lib/qdrant/client.rb
CHANGED
@@ -7,7 +7,7 @@ module Qdrant
|
|
7
7
|
class Client
|
8
8
|
extend Forwardable
|
9
9
|
|
10
|
-
attr_reader :url, :api_key, :adapter, :raise_error
|
10
|
+
attr_reader :url, :api_key, :adapter, :raise_error, :logger
|
11
11
|
|
12
12
|
def_delegators :service, :telemetry, :metrics, :locks, :set_lock
|
13
13
|
|
@@ -15,12 +15,14 @@ module Qdrant
|
|
15
15
|
url:,
|
16
16
|
api_key: nil,
|
17
17
|
adapter: Faraday.default_adapter,
|
18
|
-
raise_error: false
|
18
|
+
raise_error: false,
|
19
|
+
logger: nil
|
19
20
|
)
|
20
21
|
@url = url
|
21
22
|
@api_key = api_key
|
22
23
|
@adapter = adapter
|
23
24
|
@raise_error = raise_error
|
25
|
+
@logger = logger || Logger.new($stdout)
|
24
26
|
end
|
25
27
|
|
26
28
|
def connection
|
@@ -29,6 +31,7 @@ module Qdrant
|
|
29
31
|
faraday.headers["api-key"] = api_key
|
30
32
|
end
|
31
33
|
faraday.request :json
|
34
|
+
faraday.response :logger, @logger, {headers: true, bodies: true, errors: true}
|
32
35
|
faraday.response :raise_error if raise_error
|
33
36
|
faraday.response :json, content_type: /\bjson$/
|
34
37
|
faraday.adapter adapter
|
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.8
|
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
|
11
|
+
date: 2024-10-01 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.
|
97
|
+
rubygems_version: 3.5.11
|
98
98
|
signing_key:
|
99
99
|
specification_version: 4
|
100
100
|
summary: Ruby wrapper for the Qdrant vector search database API
|