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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6ba29ca8e87743d1fb9641ecdd722ac1c18cc55f06d0314dd688d0474da48257
4
- data.tar.gz: 29660db1e94027e9701999487c022f8b7ff281881e4166db05d972e55d054630
3
+ metadata.gz: 1df7356e27643581b1acd0417647d0e83cb53d3268357b083c13188f96ee0377
4
+ data.tar.gz: 561f46ebf941d8f8652787b2034038bbab21303080f5a6f281463f9f1a2669aa
5
5
  SHA512:
6
- metadata.gz: ad82b573c181757f03ea1df9f7f3343561d50899e884177ea6924941c361dce337e32288a66c2f47828fe39ac7ca14753550e005c7ae7c47448f31aa4c684da0
7
- data.tar.gz: beee5be5eff743e68e65d8df4ea51b4f9dceeec1f761ff08506b8357787f0dc1c65e68da0ca369ed51ae6ea3ed838fd9134d567b5223b4cf6e44cc071a79a0f5
6
+ metadata.gz: fa0470d86d105b2f33e16d0d5a5376cb5e09641ec825faddd9d9cc5b39426b15fcc0d382b3586625e26032d4a48593179f706e7e9276918fa666f5739c35a6c6
7
+ data.tar.gz: a06fddd61f295a1ba89c55180487ed89f9142fce8161f41c5aa5861190611c93303b581e971cfaae45f877060c2ab72b12e147eddc7d49329d2038fd7e1cb3bf
@@ -18,6 +18,10 @@ module Pinecone
18
18
  Pinecone::Index.new.delete(index_name)
19
19
  end
20
20
 
21
+ def configure_index(index_name, body)
22
+ Pinecone::Index.new.configure(index_name, body)
23
+ end
24
+
21
25
  def list_collections
22
26
  Pinecone::Collection.new.list
23
27
  end
@@ -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,
@@ -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
  {
@@ -1,3 +1,3 @@
1
1
  module Pinecone
2
- VERSION = "0.1.4".freeze
2
+ VERSION = "0.1.5".freeze
3
3
  end
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
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: '0'
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: '0'
54
+ version: 1.9.0
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: dotenv
57
57
  requirement: !ruby/object:Gem::Requirement