chroma-db 0.6.0 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.rbnextrc +1 -1
- data/.ruby-version +1 -1
- data/Gemfile +5 -9
- data/Gemfile.lock +70 -56
- data/README.md +36 -10
- data/lib/chroma/api_operations/request.rb +3 -2
- data/lib/chroma/chroma.rb +15 -1
- data/lib/chroma/chroma_configuration.rb +30 -0
- data/lib/chroma/resources/collection.rb +1 -17
- data/lib/chroma/resources/database.rb +0 -11
- data/lib/chroma/version.rb +1 -1
- metadata +34 -13
- data/lib/.rbnext/2.7/chroma/api_operations/request.rb +0 -138
- data/lib/.rbnext/2.7/chroma/resources/collection.rb +0 -416
- data/lib/.rbnext/2.7/chroma/resources/database.rb +0 -75
- data/lib/.rbnext/3.1/chroma/api_operations/request.rb +0 -130
- data/lib/.rbnext/3.1/chroma/resources/collection.rb +0 -412
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 31c131ea9ab54905d2665520303a6fa9790e960cd70db7b8cfda1aac3ee09231
|
4
|
+
data.tar.gz: d21d2e933fee0ad66f37f053982e3601db7b3bce1702ce6ecb8cd6e0f70d8018
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cc54636facaf17ca619aebc999c9712f8babb112c53dca3935e3027bdb7d37e1412554fbef93357459e8da505c4f1030fbba7480474882667481c8fdb962fbc2
|
7
|
+
data.tar.gz: 12b613729e1f6981f56c7d4c91324ab417a2e6a05e299bd11eeb15388f49c8f5b45ec6e5b6287522789be2ae65b9387e9357ba14bebe31ec26838d0b784f4917
|
data/.rbnextrc
CHANGED
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.
|
1
|
+
3.3.5
|
data/Gemfile
CHANGED
@@ -5,14 +5,10 @@ source "https://rubygems.org"
|
|
5
5
|
# Specify your gem's dependencies in chroma-db.gemspec
|
6
6
|
gemspec
|
7
7
|
|
8
|
-
gem "rake", "~> 13.
|
9
|
-
|
10
|
-
gem "minitest", "~> 5.0"
|
11
|
-
|
12
|
-
gem "standard", "~> 1.3"
|
13
|
-
|
14
|
-
gem "rbs", "~> 3.1"
|
8
|
+
gem "rake", "~> 13.2", ">= 13.2.1"
|
15
9
|
|
10
|
+
gem "minitest", "~> 5.25.0"
|
11
|
+
gem "standard", "~> 1.41"
|
12
|
+
gem "rbs", "~> 3.6.0"
|
16
13
|
gem "sdoc", "~> 2.6", ">= 2.6.1"
|
17
|
-
|
18
|
-
gem "webmock", "~> 3.18", ">= 3.18.1"
|
14
|
+
gem "webmock", "~> 3.24"
|
data/Gemfile.lock
CHANGED
@@ -1,105 +1,119 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
chroma-db (0.
|
4
|
+
chroma-db (0.8.0)
|
5
5
|
dry-monads (~> 1.6)
|
6
|
-
ruby-next (>= 0.
|
6
|
+
ruby-next (~> 1.0, >= 1.0.3)
|
7
|
+
zeitwerk (~> 2.6.0)
|
7
8
|
|
8
9
|
GEM
|
9
10
|
remote: https://rubygems.org/
|
10
11
|
specs:
|
11
|
-
addressable (2.8.
|
12
|
-
public_suffix (>= 2.0.2, <
|
12
|
+
addressable (2.8.7)
|
13
|
+
public_suffix (>= 2.0.2, < 7.0)
|
13
14
|
ast (2.4.2)
|
14
|
-
|
15
|
-
|
15
|
+
bigdecimal (3.1.8)
|
16
|
+
concurrent-ruby (1.3.4)
|
17
|
+
crack (1.0.0)
|
18
|
+
bigdecimal
|
16
19
|
rexml
|
17
|
-
diff-lcs (1.5.
|
18
|
-
dry-core (1.0.
|
20
|
+
diff-lcs (1.5.1)
|
21
|
+
dry-core (1.0.1)
|
19
22
|
concurrent-ruby (~> 1.0)
|
20
23
|
zeitwerk (~> 2.6)
|
21
24
|
dry-monads (1.6.0)
|
22
25
|
concurrent-ruby (~> 1.0)
|
23
26
|
dry-core (~> 1.0, < 2)
|
24
27
|
zeitwerk (~> 2.6)
|
25
|
-
hashdiff (1.
|
26
|
-
json (2.
|
28
|
+
hashdiff (1.1.1)
|
29
|
+
json (2.7.2)
|
27
30
|
language_server-protocol (3.17.0.3)
|
28
|
-
lint_roller (1.
|
29
|
-
|
30
|
-
|
31
|
-
|
31
|
+
lint_roller (1.1.0)
|
32
|
+
logger (1.6.1)
|
33
|
+
minitest (5.25.1)
|
34
|
+
paco (0.2.3)
|
35
|
+
parallel (1.26.3)
|
36
|
+
parser (3.3.5.0)
|
32
37
|
ast (~> 2.4.1)
|
33
|
-
|
38
|
+
racc
|
39
|
+
psych (5.1.2)
|
34
40
|
stringio
|
35
|
-
public_suffix (
|
41
|
+
public_suffix (6.0.1)
|
42
|
+
racc (1.8.1)
|
36
43
|
rainbow (3.1.1)
|
37
|
-
rake (13.
|
38
|
-
rbs (3.1
|
39
|
-
|
44
|
+
rake (13.2.1)
|
45
|
+
rbs (3.6.1)
|
46
|
+
logger
|
47
|
+
rdoc (6.7.0)
|
40
48
|
psych (>= 4.0.0)
|
41
|
-
regexp_parser (2.
|
42
|
-
|
43
|
-
|
49
|
+
regexp_parser (2.9.2)
|
50
|
+
require-hooks (0.2.2)
|
51
|
+
rexml (3.3.8)
|
52
|
+
rubocop (1.66.1)
|
44
53
|
json (~> 2.3)
|
54
|
+
language_server-protocol (>= 3.17.0)
|
45
55
|
parallel (~> 1.10)
|
46
|
-
parser (>= 3.
|
56
|
+
parser (>= 3.3.0.2)
|
47
57
|
rainbow (>= 2.2.2, < 4.0)
|
48
|
-
regexp_parser (>=
|
49
|
-
|
50
|
-
rubocop-ast (>= 1.28.0, < 2.0)
|
58
|
+
regexp_parser (>= 2.4, < 3.0)
|
59
|
+
rubocop-ast (>= 1.32.2, < 2.0)
|
51
60
|
ruby-progressbar (~> 1.7)
|
52
61
|
unicode-display_width (>= 2.4.0, < 3.0)
|
53
|
-
rubocop-ast (1.
|
54
|
-
parser (>= 3.
|
55
|
-
rubocop-performance (1.
|
56
|
-
rubocop (>= 1.
|
57
|
-
rubocop-ast (>=
|
58
|
-
ruby-next (0.
|
59
|
-
|
60
|
-
|
62
|
+
rubocop-ast (1.32.3)
|
63
|
+
parser (>= 3.3.1.0)
|
64
|
+
rubocop-performance (1.22.1)
|
65
|
+
rubocop (>= 1.48.1, < 2.0)
|
66
|
+
rubocop-ast (>= 1.31.1, < 2.0)
|
67
|
+
ruby-next (1.0.3)
|
68
|
+
paco (~> 0.2)
|
69
|
+
require-hooks (~> 0.2)
|
70
|
+
ruby-next-core (= 1.0.3)
|
71
|
+
ruby-next-parser (>= 3.2.2.0)
|
61
72
|
unparser (~> 0.6.0)
|
62
|
-
ruby-next-core (0.
|
63
|
-
ruby-next-parser (3.
|
73
|
+
ruby-next-core (1.0.3)
|
74
|
+
ruby-next-parser (3.2.2.0)
|
64
75
|
parser (>= 3.0.3.1)
|
65
76
|
ruby-progressbar (1.13.0)
|
66
77
|
sdoc (2.6.1)
|
67
78
|
rdoc (>= 5.0)
|
68
|
-
standard (1.
|
79
|
+
standard (1.41.0)
|
69
80
|
language_server-protocol (~> 3.17.0.2)
|
70
81
|
lint_roller (~> 1.0)
|
71
|
-
rubocop (~> 1.
|
82
|
+
rubocop (~> 1.66.0)
|
72
83
|
standard-custom (~> 1.0.0)
|
73
|
-
standard-performance (~> 1.
|
74
|
-
standard-custom (1.0.
|
84
|
+
standard-performance (~> 1.5)
|
85
|
+
standard-custom (1.0.2)
|
75
86
|
lint_roller (~> 1.0)
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
87
|
+
rubocop (~> 1.50)
|
88
|
+
standard-performance (1.5.0)
|
89
|
+
lint_roller (~> 1.1)
|
90
|
+
rubocop-performance (~> 1.22.0)
|
91
|
+
stringio (3.1.1)
|
92
|
+
unicode-display_width (2.6.0)
|
93
|
+
unparser (0.6.15)
|
82
94
|
diff-lcs (~> 1.3)
|
83
|
-
parser (>= 3.
|
84
|
-
webmock (3.
|
95
|
+
parser (>= 3.3.0)
|
96
|
+
webmock (3.24.0)
|
85
97
|
addressable (>= 2.8.0)
|
86
98
|
crack (>= 0.3.2)
|
87
99
|
hashdiff (>= 0.4.0, < 2.0.0)
|
88
|
-
zeitwerk (2.6.
|
100
|
+
zeitwerk (2.6.18)
|
89
101
|
|
90
102
|
PLATFORMS
|
91
103
|
arm64-darwin-22
|
104
|
+
arm64-darwin-24
|
105
|
+
x86_64-darwin-22
|
92
106
|
x86_64-linux
|
93
107
|
|
94
108
|
DEPENDENCIES
|
95
109
|
chroma-db!
|
96
|
-
minitest (~> 5.0)
|
97
|
-
rake (~> 13.
|
98
|
-
rbs (~> 3.
|
99
|
-
ruby-next (>= 0.
|
110
|
+
minitest (~> 5.25.0)
|
111
|
+
rake (~> 13.2, >= 13.2.1)
|
112
|
+
rbs (~> 3.6.0)
|
113
|
+
ruby-next (~> 1.0, >= 1.0.3)
|
100
114
|
sdoc (~> 2.6, >= 2.6.1)
|
101
|
-
standard (~> 1.
|
102
|
-
webmock (~> 3.
|
115
|
+
standard (~> 1.41)
|
116
|
+
webmock (~> 3.24)
|
103
117
|
|
104
118
|
BUNDLED WITH
|
105
|
-
2.4.
|
119
|
+
2.4.19
|
data/README.md
CHANGED
@@ -7,6 +7,7 @@ This Ruby gem is a client to connect to Chroma's database via its API.
|
|
7
7
|
Find more information about Chroma on how to install at their website. [https://www.trychroma.com/](https://www.trychroma.com/)
|
8
8
|
|
9
9
|
## Description
|
10
|
+
|
10
11
|
Chroma-rb is a Ruby client for Chroma Database. It works with version 0.3.22 or better **(Please see requirements below)**.
|
11
12
|
|
12
13
|
A small example usage
|
@@ -39,40 +40,65 @@ collection.add(embeddings)
|
|
39
40
|
|
40
41
|
For a complete example, please refer to the Jupyter Noterbook [Chroma gem](https://github.com/mariochavez/chroma/blob/main/notebook/Chroma%20Gem.ipynb)
|
41
42
|
|
43
|
+
### Hosted Chroma
|
44
|
+
|
45
|
+
You can use this gem with Chroma hosted service at [https://trychroma.com](https://trychroma.com). In the configuration
|
46
|
+
options, you can set the `api_key` to use the hosted service. Also, you can set the `tenant` and `database` to use
|
47
|
+
the hosted service, by default they are set to `default_tenant` and `default_database`.
|
48
|
+
|
49
|
+
```ruby
|
50
|
+
Chroma.api_key = "cd75e50bf8213fb7ce57c05b"
|
51
|
+
Chroma.tenant = "my_tenant" # Optional
|
52
|
+
Chroma.database = "my_database" # Optional
|
53
|
+
```
|
54
|
+
|
42
55
|
## Requirements
|
43
|
-
|
44
|
-
-
|
56
|
+
|
57
|
+
- Ruby 3.0.6 or newer
|
58
|
+
- Chroma Database 0.4.24 or later running as a client/server model.
|
45
59
|
|
46
60
|
For Chroma database 0.3.22 or older, please use version 0.3.0 of this gem.
|
47
61
|
|
48
62
|
## Installation
|
63
|
+
|
49
64
|
To install the gem and add to the application's Gemfile, execute:
|
50
65
|
|
51
|
-
|
66
|
+
bundle add chroma-db
|
52
67
|
|
53
68
|
If bundler is not being used to manage dependencies, install the gem by executing:
|
54
69
|
|
55
|
-
|
70
|
+
gem install chroma-db
|
56
71
|
|
57
72
|
## Use the Jupyter notebook
|
73
|
+
|
58
74
|
To use the Jupyter Noterbook [Chroma gem](https://github.com/mariochavez/chroma/blob/main/notebook/Chroma%20Gem.ipynb) in this repository, please install python 3.9 or better, iruby and Jupyter notebook dependencies:
|
59
75
|
|
60
|
-
|
61
|
-
|
62
|
-
|
76
|
+
pip install jupyterlab notebook ipywidgets
|
77
|
+
gem install iruby
|
78
|
+
iruby register --force
|
79
|
+
|
80
|
+
**NOTE:** Notebook has an example on how to create embeddings using [Ollama](https://ollama.com) and [Nomic embed text](https://ollama.com/library/nomic-embed-text) with a simple Ruby HTTP client.
|
63
81
|
|
64
|
-
## Development
|
65
|
-
|
82
|
+
## Development
|
83
|
+
|
84
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
66
85
|
|
67
86
|
To install this gem onto your local machine, run `bundle exec rake install`.
|
68
87
|
|
69
88
|
To generate Rdoc documentation for the gem, run `bundle exec rake rdoc`.
|
70
89
|
|
90
|
+
## Rails integration
|
91
|
+
|
92
|
+
If you are looking for a solution to embed your ActiveRecord models into ChromaDB, look at [Cromable gem](https://github.com/AliOsm/chromable)
|
93
|
+
|
71
94
|
## Contributing
|
72
|
-
|
95
|
+
|
96
|
+
Bug reports and pull requests are welcome on GitHub at <https://github.com/mariochavez/chroma>. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/mariochavez/chroma/blob/main/CODE_OF_CONDUCT.md).
|
73
97
|
|
74
98
|
## License
|
99
|
+
|
75
100
|
The gem is available as open source under the terms of the [MIT License](https://github.com/mariochavez/chroma/blob/main/LICENSE.txt).
|
76
101
|
|
77
102
|
## Code of Conduct
|
103
|
+
|
78
104
|
Everyone interacting in the Chroma project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/mariochavez/chroma/blob/main/CODE_OF_CONDUCT.md).
|
@@ -44,7 +44,7 @@ module Chroma
|
|
44
44
|
|
45
45
|
request = build_request(method, uri, params)
|
46
46
|
|
47
|
-
use_ssl =
|
47
|
+
use_ssl = uri.scheme == "https"
|
48
48
|
response = Net::HTTP.start(uri.hostname, uri.port, use_ssl:) do |http|
|
49
49
|
Chroma::Util.log_debug("Sending a request", {method:, uri:, params:})
|
50
50
|
http.request(request)
|
@@ -117,7 +117,8 @@ module Chroma
|
|
117
117
|
|
118
118
|
request.content_type = "application/json"
|
119
119
|
request.body = params.to_json if params.size > 0
|
120
|
-
|
120
|
+
request.basic_auth(uri.user, uri.password) if !uri.user.nil?
|
121
|
+
request['X-Chroma-Token'] = ENV.fetch('CHROMA_SERVER_AUTHN_CREDENTIALS', nil) if ENV.fetch('CHROMA_SERVER_AUTHN_CREDENTIALS', nil)
|
121
122
|
request
|
122
123
|
end
|
123
124
|
end
|
data/lib/chroma/chroma.rb
CHANGED
@@ -19,10 +19,24 @@ module Chroma
|
|
19
19
|
def_delegators :@config, :api_version, :api_version=
|
20
20
|
def_delegators :@config, :log_level, :log_level=
|
21
21
|
def_delegators :@config, :logger, :logger=
|
22
|
+
def_delegators :@config, :tenant, :tenant=
|
23
|
+
def_delegators :@config, :database, :database=
|
24
|
+
def_delegators :@config, :api_key, :api_key=
|
22
25
|
end
|
23
26
|
|
24
27
|
def self.api_url
|
25
|
-
"#{connect_host}/#{api_base}/#{api_version}"
|
28
|
+
base_url = "#{connect_host}/#{api_base}/#{api_version}"
|
29
|
+
uri = URI(base_url)
|
30
|
+
|
31
|
+
unless api_key.nil?
|
32
|
+
query_params = {
|
33
|
+
tenant: tenant,
|
34
|
+
database: database
|
35
|
+
}
|
36
|
+
query_params["x-chroma-token"] = api_key
|
37
|
+
uri.query = URI.encode_www_form(query_params)
|
38
|
+
end
|
39
|
+
uri.to_s
|
26
40
|
end
|
27
41
|
|
28
42
|
Chroma.log_level = ENV["CHROMA_LOG"].to_i unless ENV["CHROMA_LOG"].nil?
|
@@ -26,6 +26,33 @@ module Chroma
|
|
26
26
|
# Returns the String host name.
|
27
27
|
attr_accessor :connect_host
|
28
28
|
|
29
|
+
# Sets the tenant for the Chroma service, Defaults to 'default_tenant'.
|
30
|
+
#
|
31
|
+
# Examples
|
32
|
+
#
|
33
|
+
# config.tenant = "my_tenant"
|
34
|
+
#
|
35
|
+
# Returns the String tenant.
|
36
|
+
attr_accessor :tenant
|
37
|
+
|
38
|
+
# Sets the database for the Chroma service, Defaults to 'default_database'.
|
39
|
+
#
|
40
|
+
# Examples
|
41
|
+
#
|
42
|
+
# config.database = "my_database"
|
43
|
+
#
|
44
|
+
# Returns the String database.
|
45
|
+
attr_accessor :database
|
46
|
+
|
47
|
+
# Sets the API Key for the Chroma service, for `x-chroma-token` header.
|
48
|
+
#
|
49
|
+
# Examples
|
50
|
+
#
|
51
|
+
# config.api_key = "1234abcd"
|
52
|
+
#
|
53
|
+
# Returns the String database.
|
54
|
+
attr_accessor :api_key
|
55
|
+
|
29
56
|
# Sets the base path for the Chroma API.
|
30
57
|
#
|
31
58
|
# Examples
|
@@ -70,6 +97,9 @@ module Chroma
|
|
70
97
|
@api_version = "v1"
|
71
98
|
|
72
99
|
@log_level = Chroma::LEVEL_INFO
|
100
|
+
|
101
|
+
@tenant ||= "default_tenant"
|
102
|
+
@database ||= "default_database"
|
73
103
|
end
|
74
104
|
end
|
75
105
|
end
|
@@ -180,7 +180,7 @@ module Chroma
|
|
180
180
|
# Embedding.new(id: "Array#fetch", embeddings: [9.8, 2.3, 2.9], metadata: {url: "https://..."}),
|
181
181
|
# Embedding.new(id: "Array#select", embeddings: [5.6, 3.1, 4.7], metadata: {url: "https://..."})
|
182
182
|
# ]
|
183
|
-
# collection.upsert()
|
183
|
+
# collection.upsert(embeddings)
|
184
184
|
#
|
185
185
|
# Returns true with success or raises a Chroma::Error on failure.
|
186
186
|
def upsert(embeddings = [])
|
@@ -237,22 +237,6 @@ module Chroma
|
|
237
237
|
end
|
238
238
|
end
|
239
239
|
|
240
|
-
# Creates an index for the collection.
|
241
|
-
#
|
242
|
-
# Examples:
|
243
|
-
#
|
244
|
-
# collection = Chroma::Resource::Collection.get("ruby-documentation")
|
245
|
-
# collection.create_index
|
246
|
-
#
|
247
|
-
# Returns true on success or raise a Chroma::Error on failure.
|
248
|
-
def create_index
|
249
|
-
result = self.class.execute_request(:post, "#{Chroma.api_url}/collections/#{id}/create_index")
|
250
|
-
|
251
|
-
return true if result.success?
|
252
|
-
|
253
|
-
self.class.raise_failure_error(result)
|
254
|
-
end
|
255
|
-
|
256
240
|
# Create a new collection on the database.
|
257
241
|
#
|
258
242
|
# name - The name of the collection. Name needs to be between 3-63 characters, starts and ends
|
@@ -29,17 +29,6 @@ module Chroma
|
|
29
29
|
raise_failure_error(result)
|
30
30
|
end
|
31
31
|
|
32
|
-
# Persist Chroma database data.
|
33
|
-
#
|
34
|
-
# Resturn true on success or raise a Chroma::Error on failure.
|
35
|
-
def self.persist
|
36
|
-
result = execute_request(:post, "#{Chroma.api_url}/persist")
|
37
|
-
|
38
|
-
return result.success.body if result.success?
|
39
|
-
|
40
|
-
raise_failure_error(result)
|
41
|
-
end
|
42
|
-
|
43
32
|
# Check the heartbeat of the Chroma database server.
|
44
33
|
#
|
45
34
|
# Return a Hash with a timestamp.
|
data/lib/chroma/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chroma-db
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mario Alberto Chávez
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-10-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dry-monads
|
@@ -24,34 +24,60 @@ dependencies:
|
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '1.6'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: zeitwerk
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 2.6.0
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 2.6.0
|
27
41
|
- !ruby/object:Gem::Dependency
|
28
42
|
name: ruby-next
|
29
43
|
requirement: !ruby/object:Gem::Requirement
|
30
44
|
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '1.0'
|
31
48
|
- - ">="
|
32
49
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.
|
50
|
+
version: 1.0.3
|
34
51
|
type: :runtime
|
35
52
|
prerelease: false
|
36
53
|
version_requirements: !ruby/object:Gem::Requirement
|
37
54
|
requirements:
|
55
|
+
- - "~>"
|
56
|
+
- !ruby/object:Gem::Version
|
57
|
+
version: '1.0'
|
38
58
|
- - ">="
|
39
59
|
- !ruby/object:Gem::Version
|
40
|
-
version: 0.
|
60
|
+
version: 1.0.3
|
41
61
|
- !ruby/object:Gem::Dependency
|
42
62
|
name: ruby-next
|
43
63
|
requirement: !ruby/object:Gem::Requirement
|
44
64
|
requirements:
|
65
|
+
- - "~>"
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: '1.0'
|
45
68
|
- - ">="
|
46
69
|
- !ruby/object:Gem::Version
|
47
|
-
version: 0.
|
70
|
+
version: 1.0.3
|
48
71
|
type: :development
|
49
72
|
prerelease: false
|
50
73
|
version_requirements: !ruby/object:Gem::Requirement
|
51
74
|
requirements:
|
75
|
+
- - "~>"
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '1.0'
|
52
78
|
- - ">="
|
53
79
|
- !ruby/object:Gem::Version
|
54
|
-
version: 0.
|
80
|
+
version: 1.0.3
|
55
81
|
description: Chroma is the open-source embedding database. Chroma makes it easy to
|
56
82
|
build LLM apps by making knowledge, facts, and skills pluggable for LLMs.
|
57
83
|
email:
|
@@ -69,11 +95,6 @@ files:
|
|
69
95
|
- LICENSE.txt
|
70
96
|
- README.md
|
71
97
|
- Rakefile
|
72
|
-
- lib/.rbnext/2.7/chroma/api_operations/request.rb
|
73
|
-
- lib/.rbnext/2.7/chroma/resources/collection.rb
|
74
|
-
- lib/.rbnext/2.7/chroma/resources/database.rb
|
75
|
-
- lib/.rbnext/3.1/chroma/api_operations/request.rb
|
76
|
-
- lib/.rbnext/3.1/chroma/resources/collection.rb
|
77
98
|
- lib/chroma-db.rb
|
78
99
|
- lib/chroma/api_operations/request.rb
|
79
100
|
- lib/chroma/chroma.rb
|
@@ -100,14 +121,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
100
121
|
requirements:
|
101
122
|
- - ">="
|
102
123
|
- !ruby/object:Gem::Version
|
103
|
-
version:
|
124
|
+
version: 3.1.4
|
104
125
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
105
126
|
requirements:
|
106
127
|
- - ">="
|
107
128
|
- !ruby/object:Gem::Version
|
108
129
|
version: '0'
|
109
130
|
requirements: []
|
110
|
-
rubygems_version: 3.
|
131
|
+
rubygems_version: 3.5.21
|
111
132
|
signing_key:
|
112
133
|
specification_version: 4
|
113
134
|
summary: Ruby client for Chroma DB.
|