pinecone 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pinecone/client.rb +4 -0
- data/lib/pinecone/index.rb +5 -0
- data/lib/pinecone/vector.rb +9 -0
- data/lib/pinecone/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1df7356e27643581b1acd0417647d0e83cb53d3268357b083c13188f96ee0377
|
4
|
+
data.tar.gz: 561f46ebf941d8f8652787b2034038bbab21303080f5a6f281463f9f1a2669aa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fa0470d86d105b2f33e16d0d5a5376cb5e09641ec825faddd9d9cc5b39426b15fcc0d382b3586625e26032d4a48593179f706e7e9276918fa666f5739c35a6c6
|
7
|
+
data.tar.gz: a06fddd61f295a1ba89c55180487ed89f9142fce8161f41c5aa5861190611c93303b581e971cfaae45f877060c2ab72b12e147eddc7d49329d2038fd7e1cb3bf
|
data/lib/pinecone/client.rb
CHANGED
data/lib/pinecone/index.rb
CHANGED
@@ -28,6 +28,11 @@ module Pinecone
|
|
28
28
|
self.class.delete("/databases/#{index_name}", options)
|
29
29
|
end
|
30
30
|
|
31
|
+
def configure(index_name, body)
|
32
|
+
payload = options.merge(body: body.to_json)
|
33
|
+
self.class.patch("/databases/#{index_name}", payload)
|
34
|
+
end
|
35
|
+
|
31
36
|
def options
|
32
37
|
{
|
33
38
|
headers: @headers,
|
data/lib/pinecone/vector.rb
CHANGED
@@ -55,6 +55,15 @@ module Pinecone
|
|
55
55
|
self.class.post('/vectors/update', payload)
|
56
56
|
end
|
57
57
|
|
58
|
+
def describe_index_stats(filter: {})
|
59
|
+
payload = if filter.empty?
|
60
|
+
options
|
61
|
+
else
|
62
|
+
options.merge(body: {filter: filter}.to_json)
|
63
|
+
end
|
64
|
+
self.class.post('/describe_index_stats', payload)
|
65
|
+
end
|
66
|
+
|
58
67
|
|
59
68
|
def options
|
60
69
|
{
|
data/lib/pinecone/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pinecone
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Scott Carleton
|
@@ -42,16 +42,16 @@ dependencies:
|
|
42
42
|
name: dry-validation
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: 1.9.0
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - "
|
52
|
+
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
54
|
+
version: 1.9.0
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: dotenv
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|