boxcars 0.4.7 → 0.4.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +67 -0
- data/Gemfile +10 -10
- data/Gemfile.lock +73 -64
- data/boxcars.gemspec +2 -2
- data/lib/boxcars/boxcar/active_record.rb +1 -1
- data/lib/boxcars/engine/openai.rb +2 -4
- data/lib/boxcars/engine/perplexityai.rb +1 -1
- data/lib/boxcars/version.rb +1 -1
- metadata +12 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b1199d0161dfab186b1fd3e85789a86d242d5351a0439bbdec719d0d55eecdaa
|
4
|
+
data.tar.gz: 4f0c4b90d023c7a9bb86d45b0aa01ff0d7805bdf7d5f2b36401c87525eb15403
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: abc63d10170ba704a0cc1bffc60dc2cc29ffa6927e945050d7157a7779d576be25bf8ed3c738fa6be0ec1e7fdc898ba2d41fc807026e7a2a1232ce7f68d3f283
|
7
|
+
data.tar.gz: 85cf33b3832230a9294557f1a23f305c97a1c8bc31414849160118524a64d1e27bdd74d7b1e186895596b9ce9e82afd6b8fb1fe9e7b081b0e33617228a947834
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,72 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## [v0.4.8](https://github.com/BoxcarsAI/boxcars/tree/v0.4.8) (2024-01-08)
|
4
|
+
|
5
|
+
[Full Changelog](https://github.com/BoxcarsAI/boxcars/compare/v0.4.7...v0.4.8)
|
6
|
+
|
7
|
+
**Closed issues:**
|
8
|
+
|
9
|
+
- OpenBSD system example [\#124](https://github.com/BoxcarsAI/boxcars/issues/124)
|
10
|
+
- End user Struggles [\#111](https://github.com/BoxcarsAI/boxcars/issues/111)
|
11
|
+
- Add Markdown Splitter [\#96](https://github.com/BoxcarsAI/boxcars/issues/96)
|
12
|
+
- Add ability to serialize trains and boxcars [\#95](https://github.com/BoxcarsAI/boxcars/issues/95)
|
13
|
+
- VectorAnswer boxcar should support all vector stores [\#84](https://github.com/BoxcarsAI/boxcars/issues/84)
|
14
|
+
- check Chroma as a vector store [\#78](https://github.com/BoxcarsAI/boxcars/issues/78)
|
15
|
+
- Reg: User account specific / Support multi-tenancy [\#77](https://github.com/BoxcarsAI/boxcars/issues/77)
|
16
|
+
- Failed request returns a string rather than a response object [\#76](https://github.com/BoxcarsAI/boxcars/issues/76)
|
17
|
+
- Improve Google Search by parsing answer box with the engine? [\#70](https://github.com/BoxcarsAI/boxcars/issues/70)
|
18
|
+
- meta data with vector store [\#64](https://github.com/BoxcarsAI/boxcars/issues/64)
|
19
|
+
- boxcar for vector search [\#60](https://github.com/BoxcarsAI/boxcars/issues/60)
|
20
|
+
- demo rails app [\#57](https://github.com/BoxcarsAI/boxcars/issues/57)
|
21
|
+
- Language of output is fixed to English [\#52](https://github.com/BoxcarsAI/boxcars/issues/52)
|
22
|
+
- Update token counting [\#37](https://github.com/BoxcarsAI/boxcars/issues/37)
|
23
|
+
|
24
|
+
**Merged pull requests:**
|
25
|
+
|
26
|
+
- \[infra\] Bump rubocop-rspec from 2.26.0 to 2.26.1 [\#132](https://github.com/BoxcarsAI/boxcars/pull/132) ([dependabot[bot]](https://github.com/apps/dependabot))
|
27
|
+
- \[infra\] Bump rubocop-rspec from 2.25.0 to 2.26.0 [\#131](https://github.com/BoxcarsAI/boxcars/pull/131) ([dependabot[bot]](https://github.com/apps/dependabot))
|
28
|
+
- \[infra\] Bump webmock from 3.18.1 to 3.19.1 [\#130](https://github.com/BoxcarsAI/boxcars/pull/130) ([dependabot[bot]](https://github.com/apps/dependabot))
|
29
|
+
- \[infra\] Bump pg from 1.5.3 to 1.5.4 [\#129](https://github.com/BoxcarsAI/boxcars/pull/129) ([dependabot[bot]](https://github.com/apps/dependabot))
|
30
|
+
- test with ruby 3.3 too [\#128](https://github.com/BoxcarsAI/boxcars/pull/128) ([francis](https://github.com/francis))
|
31
|
+
- \[infra\] Bump hnswlib from 0.8.1 to 0.9.0 [\#127](https://github.com/BoxcarsAI/boxcars/pull/127) ([dependabot[bot]](https://github.com/apps/dependabot))
|
32
|
+
- \[infra\] Bump vcr from 6.1.0 to 6.2.0 [\#126](https://github.com/BoxcarsAI/boxcars/pull/126) ([dependabot[bot]](https://github.com/apps/dependabot))
|
33
|
+
- \[infra\] Bump debug from 1.9.0 to 1.9.1 [\#125](https://github.com/BoxcarsAI/boxcars/pull/125) ([dependabot[bot]](https://github.com/apps/dependabot))
|
34
|
+
- \[infra\] Bump nokogiri from 1.15.4 to 1.15.5 [\#123](https://github.com/BoxcarsAI/boxcars/pull/123) ([dependabot[bot]](https://github.com/apps/dependabot))
|
35
|
+
- \[infra\] Bump debug from 1.8.0 to 1.9.0 [\#122](https://github.com/BoxcarsAI/boxcars/pull/122) ([dependabot[bot]](https://github.com/apps/dependabot))
|
36
|
+
- \[infra\] Bump rubocop from 1.54.2 to 1.59.0 [\#121](https://github.com/BoxcarsAI/boxcars/pull/121) ([dependabot[bot]](https://github.com/apps/dependabot))
|
37
|
+
- \[infra\] Bump rubocop-rspec from 2.22.0 to 2.25.0 [\#120](https://github.com/BoxcarsAI/boxcars/pull/120) ([dependabot[bot]](https://github.com/apps/dependabot))
|
38
|
+
- \[infra\] Update ruby-openai requirement from ~\> 4.2 to \>= 4.2, \< 7.0 [\#119](https://github.com/BoxcarsAI/boxcars/pull/119) ([dependabot[bot]](https://github.com/apps/dependabot))
|
39
|
+
- \[infra\] Bump pgvector from 0.2.1 to 0.2.2 [\#118](https://github.com/BoxcarsAI/boxcars/pull/118) ([dependabot[bot]](https://github.com/apps/dependabot))
|
40
|
+
- \[infra\] Bump rake from 13.0.6 to 13.1.0 [\#117](https://github.com/BoxcarsAI/boxcars/pull/117) ([dependabot[bot]](https://github.com/apps/dependabot))
|
41
|
+
- \[infra\] Bump sqlite3 from 1.6.3 to 1.6.9 [\#115](https://github.com/BoxcarsAI/boxcars/pull/115) ([dependabot[bot]](https://github.com/apps/dependabot))
|
42
|
+
- Create dependabot.yml [\#114](https://github.com/BoxcarsAI/boxcars/pull/114) ([francis](https://github.com/francis))
|
43
|
+
- Bump activesupport from 7.0.6 to 7.0.7.1 [\#113](https://github.com/BoxcarsAI/boxcars/pull/113) ([dependabot[bot]](https://github.com/apps/dependabot))
|
44
|
+
- Bump protocol-http1 from 0.15.0 to 0.16.0 [\#112](https://github.com/BoxcarsAI/boxcars/pull/112) ([dependabot[bot]](https://github.com/apps/dependabot))
|
45
|
+
|
46
|
+
## [v0.4.7](https://github.com/BoxcarsAI/boxcars/tree/v0.4.7) (2023-11-07)
|
47
|
+
|
48
|
+
[Full Changelog](https://github.com/BoxcarsAI/boxcars/compare/v0.4.6...v0.4.7)
|
49
|
+
|
50
|
+
## [v0.4.6](https://github.com/BoxcarsAI/boxcars/tree/v0.4.6) (2023-11-06)
|
51
|
+
|
52
|
+
[Full Changelog](https://github.com/BoxcarsAI/boxcars/compare/v0.4.5...v0.4.6)
|
53
|
+
|
54
|
+
**Merged pull requests:**
|
55
|
+
|
56
|
+
- Perpexity API [\#110](https://github.com/BoxcarsAI/boxcars/pull/110) ([francis](https://github.com/francis))
|
57
|
+
|
58
|
+
## [v0.4.5](https://github.com/BoxcarsAI/boxcars/tree/v0.4.5) (2023-10-06)
|
59
|
+
|
60
|
+
[Full Changelog](https://github.com/BoxcarsAI/boxcars/compare/v0.4.4...v0.4.5)
|
61
|
+
|
62
|
+
**Merged pull requests:**
|
63
|
+
|
64
|
+
- Json engine [\#109](https://github.com/BoxcarsAI/boxcars/pull/109) ([francis](https://github.com/francis))
|
65
|
+
|
66
|
+
## [v0.4.4](https://github.com/BoxcarsAI/boxcars/tree/v0.4.4) (2023-10-03)
|
67
|
+
|
68
|
+
[Full Changelog](https://github.com/BoxcarsAI/boxcars/compare/v0.4.3...v0.4.4)
|
69
|
+
|
3
70
|
## [v0.4.3](https://github.com/BoxcarsAI/boxcars/tree/v0.4.3) (2023-09-19)
|
4
71
|
|
5
72
|
[Full Changelog](https://github.com/BoxcarsAI/boxcars/compare/v0.4.2...v0.4.3)
|
data/Gemfile
CHANGED
@@ -5,13 +5,13 @@ source "https://rubygems.org"
|
|
5
5
|
# Specify your gem's dependencies in boxcars.gemspec
|
6
6
|
gemspec
|
7
7
|
|
8
|
-
gem "debug", "~> 1.
|
8
|
+
gem "debug", "~> 1.9"
|
9
9
|
|
10
10
|
gem "dotenv", "~> 2.8"
|
11
11
|
|
12
|
-
gem "rake", "~> 13.
|
12
|
+
gem "rake", "~> 13.1"
|
13
13
|
|
14
|
-
gem "sqlite3", "~> 1.
|
14
|
+
gem "sqlite3", "~> 1.7"
|
15
15
|
|
16
16
|
gem "async", "~>1.31.0"
|
17
17
|
|
@@ -25,16 +25,16 @@ gem "activesupport", "~> 7.0"
|
|
25
25
|
|
26
26
|
gem "rest-client", "~> 2.1"
|
27
27
|
|
28
|
-
gem "hnswlib", "~> 0.
|
28
|
+
gem "hnswlib", "~> 0.9.0"
|
29
29
|
|
30
|
-
gem "pg", "~> 1.5"
|
31
|
-
gem "pgvector", "~> 0.2.
|
30
|
+
gem "pg", "~> 1.5"
|
31
|
+
gem "pgvector", "~> 0.2.2"
|
32
32
|
|
33
33
|
group :development, :test do
|
34
34
|
gem "rspec", "~> 3.2"
|
35
|
-
gem "rubocop", "~> 1.
|
36
|
-
gem "vcr", "~> 6.
|
37
|
-
gem "webmock", "~> 3.
|
35
|
+
gem "rubocop", "~> 1.60"
|
36
|
+
gem "vcr", "~> 6.2.0"
|
37
|
+
gem "webmock", "~> 3.19.1"
|
38
38
|
gem "rubocop-rake", "~> 0.6.0"
|
39
|
-
gem "rubocop-rspec", "~> 2.
|
39
|
+
gem "rubocop-rspec", "~> 2.26"
|
40
40
|
end
|
data/Gemfile.lock
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
boxcars (0.4.
|
4
|
+
boxcars (0.4.9)
|
5
5
|
anthropic (~> 0.1)
|
6
6
|
google_search_results (~> 2.2)
|
7
7
|
gpt4all (~> 0.0.4)
|
8
8
|
hnswlib (~> 0.8)
|
9
|
-
nokogiri (~> 1.
|
9
|
+
nokogiri (~> 1.16)
|
10
10
|
pgvector (~> 0.2)
|
11
|
-
ruby-openai (
|
11
|
+
ruby-openai (>= 4.2, < 7.0)
|
12
12
|
|
13
13
|
GEM
|
14
14
|
remote: https://rubygems.org/
|
15
15
|
specs:
|
16
|
-
activemodel (7.0.
|
17
|
-
activesupport (= 7.0.
|
18
|
-
activerecord (7.0.
|
19
|
-
activemodel (= 7.0.
|
20
|
-
activesupport (= 7.0.
|
21
|
-
activesupport (7.0.
|
16
|
+
activemodel (7.0.7.1)
|
17
|
+
activesupport (= 7.0.7.1)
|
18
|
+
activerecord (7.0.7.1)
|
19
|
+
activemodel (= 7.0.7.1)
|
20
|
+
activesupport (= 7.0.7.1)
|
21
|
+
activesupport (7.0.7.1)
|
22
22
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
23
23
|
i18n (>= 1.6, < 2)
|
24
24
|
minitest (>= 5.1)
|
25
25
|
tzinfo (~> 2.0)
|
26
|
-
addressable (2.8.
|
26
|
+
addressable (2.8.6)
|
27
27
|
public_suffix (>= 2.0.2, < 6.0)
|
28
28
|
anthropic (0.1.0)
|
29
29
|
faraday (>= 1)
|
@@ -33,12 +33,12 @@ GEM
|
|
33
33
|
console (~> 1.10)
|
34
34
|
nio4r (~> 2.3)
|
35
35
|
timers (~> 4.1)
|
36
|
-
async-http (0.
|
36
|
+
async-http (0.61.0)
|
37
37
|
async (>= 1.25)
|
38
38
|
async-io (>= 1.28)
|
39
39
|
async-pool (>= 0.2)
|
40
|
-
protocol-http (~> 0.
|
41
|
-
protocol-http1 (~> 0.
|
40
|
+
protocol-http (~> 0.25.0)
|
41
|
+
protocol-http1 (~> 0.16.0)
|
42
42
|
protocol-http2 (~> 0.15.0)
|
43
43
|
traces (>= 0.10.0)
|
44
44
|
async-http-faraday (0.12.0)
|
@@ -48,21 +48,22 @@ GEM
|
|
48
48
|
async
|
49
49
|
async-pool (0.4.0)
|
50
50
|
async (>= 1.25)
|
51
|
-
base64 (0.
|
51
|
+
base64 (0.2.0)
|
52
52
|
concurrent-ruby (1.2.2)
|
53
53
|
console (1.17.4)
|
54
54
|
fiber-annotation
|
55
55
|
fiber-local
|
56
56
|
crack (0.4.5)
|
57
57
|
rexml
|
58
|
-
debug (1.
|
59
|
-
irb (
|
60
|
-
reline (>= 0.3.
|
58
|
+
debug (1.9.1)
|
59
|
+
irb (~> 1.10)
|
60
|
+
reline (>= 0.3.8)
|
61
61
|
diff-lcs (1.5.0)
|
62
62
|
domain_name (0.5.20190701)
|
63
63
|
unf (>= 0.0.5, < 1.0.0)
|
64
64
|
dotenv (2.8.1)
|
65
|
-
|
65
|
+
event_stream_parser (1.0.0)
|
66
|
+
faraday (2.7.12)
|
66
67
|
base64
|
67
68
|
faraday-net_http (>= 2.0, < 3.1)
|
68
69
|
ruby2_keywords (>= 0.0.4)
|
@@ -89,60 +90,65 @@ GEM
|
|
89
90
|
faraday (~> 2.7)
|
90
91
|
os (~> 1.1)
|
91
92
|
tty-progressbar (~> 0.18.2)
|
92
|
-
hashdiff (1.0
|
93
|
-
hnswlib (0.
|
93
|
+
hashdiff (1.1.0)
|
94
|
+
hnswlib (0.9.0)
|
94
95
|
http-accept (1.7.0)
|
95
96
|
http-cookie (1.0.5)
|
96
97
|
domain_name (~> 0.5)
|
97
98
|
i18n (1.14.1)
|
98
99
|
concurrent-ruby (~> 1.0)
|
99
|
-
io-console (0.
|
100
|
-
irb (1.
|
101
|
-
|
102
|
-
|
100
|
+
io-console (0.7.1)
|
101
|
+
irb (1.11.0)
|
102
|
+
rdoc
|
103
|
+
reline (>= 0.3.8)
|
104
|
+
json (2.7.1)
|
103
105
|
language_server-protocol (3.17.0.3)
|
104
106
|
mime-types (3.4.1)
|
105
107
|
mime-types-data (~> 3.2015)
|
106
108
|
mime-types-data (3.2023.0218.1)
|
107
|
-
minitest (5.
|
109
|
+
minitest (5.20.0)
|
108
110
|
multi_json (1.15.0)
|
109
111
|
multipart-post (2.3.0)
|
110
112
|
netrc (0.11.0)
|
111
113
|
nio4r (2.5.9)
|
112
|
-
nokogiri (1.
|
114
|
+
nokogiri (1.16.0-arm64-darwin)
|
113
115
|
racc (~> 1.4)
|
114
|
-
nokogiri (1.
|
116
|
+
nokogiri (1.16.0-x86_64-linux)
|
115
117
|
racc (~> 1.4)
|
116
118
|
octokit (4.25.1)
|
117
119
|
faraday (>= 1, < 3)
|
118
120
|
sawyer (~> 0.9)
|
119
121
|
os (1.1.4)
|
120
|
-
parallel (1.
|
121
|
-
parser (3.
|
122
|
+
parallel (1.24.0)
|
123
|
+
parser (3.3.0.5)
|
122
124
|
ast (~> 2.4.1)
|
123
125
|
racc
|
124
|
-
pg (1.5.
|
125
|
-
pgvector (0.2.
|
126
|
+
pg (1.5.4)
|
127
|
+
pgvector (0.2.2)
|
126
128
|
protocol-hpack (1.4.2)
|
127
|
-
protocol-http (0.
|
128
|
-
protocol-http1 (0.
|
129
|
+
protocol-http (0.25.0)
|
130
|
+
protocol-http1 (0.16.0)
|
129
131
|
protocol-http (~> 0.22)
|
130
132
|
protocol-http2 (0.15.1)
|
131
133
|
protocol-hpack (~> 1.4)
|
132
134
|
protocol-http (~> 0.18)
|
133
|
-
|
134
|
-
|
135
|
+
psych (5.1.2)
|
136
|
+
stringio
|
137
|
+
public_suffix (5.0.4)
|
138
|
+
racc (1.7.3)
|
135
139
|
rainbow (3.1.1)
|
136
|
-
rake (13.0
|
137
|
-
|
138
|
-
|
140
|
+
rake (13.1.0)
|
141
|
+
rdoc (6.6.2)
|
142
|
+
psych (>= 4.0.0)
|
143
|
+
regexp_parser (2.9.0)
|
144
|
+
reline (0.4.1)
|
139
145
|
io-console (~> 0.5)
|
140
146
|
rest-client (2.1.0)
|
141
147
|
http-accept (>= 1.7.0, < 2.0)
|
142
148
|
http-cookie (>= 1.0.2, < 2.0)
|
143
149
|
mime-types (>= 1.16, < 4.0)
|
144
150
|
netrc (~> 0.8)
|
145
|
-
rexml (3.2.
|
151
|
+
rexml (3.2.6)
|
146
152
|
rspec (3.12.0)
|
147
153
|
rspec-core (~> 3.12.0)
|
148
154
|
rspec-expectations (~> 3.12.0)
|
@@ -156,30 +162,31 @@ GEM
|
|
156
162
|
diff-lcs (>= 1.2.0, < 2.0)
|
157
163
|
rspec-support (~> 3.12.0)
|
158
164
|
rspec-support (3.12.1)
|
159
|
-
rubocop (1.
|
165
|
+
rubocop (1.60.2)
|
160
166
|
json (~> 2.3)
|
161
167
|
language_server-protocol (>= 3.17.0)
|
162
168
|
parallel (~> 1.10)
|
163
|
-
parser (>= 3.
|
169
|
+
parser (>= 3.3.0.2)
|
164
170
|
rainbow (>= 2.2.2, < 4.0)
|
165
171
|
regexp_parser (>= 1.8, < 3.0)
|
166
172
|
rexml (>= 3.2.5, < 4.0)
|
167
|
-
rubocop-ast (>= 1.
|
173
|
+
rubocop-ast (>= 1.30.0, < 2.0)
|
168
174
|
ruby-progressbar (~> 1.7)
|
169
175
|
unicode-display_width (>= 2.4.0, < 3.0)
|
170
|
-
rubocop-ast (1.
|
176
|
+
rubocop-ast (1.30.0)
|
171
177
|
parser (>= 3.2.1.0)
|
172
|
-
rubocop-capybara (2.
|
178
|
+
rubocop-capybara (2.20.0)
|
179
|
+
rubocop (~> 1.41)
|
180
|
+
rubocop-factory_bot (2.25.1)
|
173
181
|
rubocop (~> 1.41)
|
174
|
-
rubocop-factory_bot (2.23.1)
|
175
|
-
rubocop (~> 1.33)
|
176
182
|
rubocop-rake (0.6.0)
|
177
183
|
rubocop (~> 1.0)
|
178
|
-
rubocop-rspec (2.
|
179
|
-
rubocop (~> 1.
|
184
|
+
rubocop-rspec (2.26.1)
|
185
|
+
rubocop (~> 1.40)
|
180
186
|
rubocop-capybara (~> 2.17)
|
181
187
|
rubocop-factory_bot (~> 2.22)
|
182
|
-
ruby-openai (
|
188
|
+
ruby-openai (6.3.1)
|
189
|
+
event_stream_parser (>= 0.3.0, < 2.0.0)
|
183
190
|
faraday (>= 1)
|
184
191
|
faraday-multipart (>= 1)
|
185
192
|
ruby-progressbar (1.13.0)
|
@@ -187,8 +194,9 @@ GEM
|
|
187
194
|
sawyer (0.9.2)
|
188
195
|
addressable (>= 2.3.5)
|
189
196
|
faraday (>= 0.17.3, < 3)
|
190
|
-
sqlite3 (1.
|
191
|
-
sqlite3 (1.
|
197
|
+
sqlite3 (1.7.1-arm64-darwin)
|
198
|
+
sqlite3 (1.7.1-x86_64-linux)
|
199
|
+
stringio (3.1.0)
|
192
200
|
strings-ansi (0.2.0)
|
193
201
|
timers (4.3.5)
|
194
202
|
traces (0.11.1)
|
@@ -204,15 +212,16 @@ GEM
|
|
204
212
|
unf (0.1.4)
|
205
213
|
unf_ext
|
206
214
|
unf_ext (0.0.8.2)
|
207
|
-
unicode-display_width (2.
|
208
|
-
vcr (6.
|
209
|
-
webmock (3.
|
215
|
+
unicode-display_width (2.5.0)
|
216
|
+
vcr (6.2.0)
|
217
|
+
webmock (3.19.1)
|
210
218
|
addressable (>= 2.8.0)
|
211
219
|
crack (>= 0.3.2)
|
212
220
|
hashdiff (>= 0.4.0, < 2.0.0)
|
213
221
|
|
214
222
|
PLATFORMS
|
215
223
|
arm64-darwin-22
|
224
|
+
arm64-darwin-23
|
216
225
|
x86_64-linux
|
217
226
|
|
218
227
|
DEPENDENCIES
|
@@ -220,22 +229,22 @@ DEPENDENCIES
|
|
220
229
|
activesupport (~> 7.0)
|
221
230
|
async (~> 1.31.0)
|
222
231
|
boxcars!
|
223
|
-
debug (~> 1.
|
232
|
+
debug (~> 1.9)
|
224
233
|
dotenv (~> 2.8)
|
225
234
|
faraday-retry (~> 2.0)
|
226
235
|
github_changelog_generator (~> 1.16)
|
227
|
-
hnswlib (~> 0.
|
228
|
-
pg (~> 1.5
|
229
|
-
pgvector (~> 0.2.
|
230
|
-
rake (~> 13.
|
236
|
+
hnswlib (~> 0.9.0)
|
237
|
+
pg (~> 1.5)
|
238
|
+
pgvector (~> 0.2.2)
|
239
|
+
rake (~> 13.1)
|
231
240
|
rest-client (~> 2.1)
|
232
241
|
rspec (~> 3.2)
|
233
|
-
rubocop (~> 1.
|
242
|
+
rubocop (~> 1.60)
|
234
243
|
rubocop-rake (~> 0.6.0)
|
235
|
-
rubocop-rspec (~> 2.
|
236
|
-
sqlite3 (~> 1.
|
237
|
-
vcr (~> 6.
|
238
|
-
webmock (~> 3.
|
244
|
+
rubocop-rspec (~> 2.26)
|
245
|
+
sqlite3 (~> 1.7)
|
246
|
+
vcr (~> 6.2.0)
|
247
|
+
webmock (~> 3.19.1)
|
239
248
|
|
240
249
|
BUNDLED WITH
|
241
250
|
2.4.16
|
data/boxcars.gemspec
CHANGED
@@ -35,9 +35,9 @@ Gem::Specification.new do |spec|
|
|
35
35
|
spec.add_dependency "google_search_results", "~> 2.2"
|
36
36
|
spec.add_dependency "gpt4all", "~> 0.0.4"
|
37
37
|
spec.add_dependency "hnswlib", "~> 0.8"
|
38
|
-
spec.add_dependency "nokogiri", "~> 1.
|
38
|
+
spec.add_dependency "nokogiri", "~> 1.16"
|
39
39
|
spec.add_dependency "pgvector", "~> 0.2"
|
40
|
-
spec.add_dependency "ruby-openai", "
|
40
|
+
spec.add_dependency "ruby-openai", ">= 4.2", "< 7.0"
|
41
41
|
|
42
42
|
# For more information and examples about making a new gem, checkout our
|
43
43
|
# guide at: https://bundler.io/guides/creating_gem.html
|
@@ -36,7 +36,7 @@ module Boxcars
|
|
36
36
|
private
|
37
37
|
|
38
38
|
def get_name
|
39
|
-
|
39
|
+
Rails.application.class.module_parent.name if defined?(Rails)
|
40
40
|
rescue StandardError => e
|
41
41
|
boxcars.error "Error getting rails name application name: #{e.message}"
|
42
42
|
nil
|
@@ -9,7 +9,7 @@ module Boxcars
|
|
9
9
|
|
10
10
|
# The default parameters to use when asking the engine.
|
11
11
|
DEFAULT_PARAMS = {
|
12
|
-
model: "gpt-4-
|
12
|
+
model: "gpt-4-turbo-preview",
|
13
13
|
temperature: 0.1,
|
14
14
|
max_tokens: 4096
|
15
15
|
}.freeze
|
@@ -44,9 +44,7 @@ module Boxcars
|
|
44
44
|
end
|
45
45
|
|
46
46
|
def conversation_model?(model)
|
47
|
-
|
48
|
-
|
49
|
-
["gpt-3.5-turbo", "gpt-4", "gpt-3.5-turbo-16k"].include?(model)
|
47
|
+
!!(model =~ /(^gpt-4)|(-turbo\b)/)
|
50
48
|
end
|
51
49
|
|
52
50
|
# Get an answer from the engine.
|
@@ -47,7 +47,7 @@ module Boxcars
|
|
47
47
|
request["authorization"] = "Bearer #{ENV.fetch('PERPLEXITY_API_KEY')}"
|
48
48
|
request["content-type"] = 'application/json'
|
49
49
|
the_body = {
|
50
|
-
model:
|
50
|
+
model: parameters[:model] || "mistral-7b-instruct",
|
51
51
|
messages: parameters[:messages]
|
52
52
|
}
|
53
53
|
request.body = the_body.to_json
|
data/lib/boxcars/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: boxcars
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Francis Sullivan
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2024-01-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: anthropic
|
@@ -73,14 +73,14 @@ dependencies:
|
|
73
73
|
requirements:
|
74
74
|
- - "~>"
|
75
75
|
- !ruby/object:Gem::Version
|
76
|
-
version: '1.
|
76
|
+
version: '1.16'
|
77
77
|
type: :runtime
|
78
78
|
prerelease: false
|
79
79
|
version_requirements: !ruby/object:Gem::Requirement
|
80
80
|
requirements:
|
81
81
|
- - "~>"
|
82
82
|
- !ruby/object:Gem::Version
|
83
|
-
version: '1.
|
83
|
+
version: '1.16'
|
84
84
|
- !ruby/object:Gem::Dependency
|
85
85
|
name: pgvector
|
86
86
|
requirement: !ruby/object:Gem::Requirement
|
@@ -99,16 +99,22 @@ dependencies:
|
|
99
99
|
name: ruby-openai
|
100
100
|
requirement: !ruby/object:Gem::Requirement
|
101
101
|
requirements:
|
102
|
-
- - "
|
102
|
+
- - ">="
|
103
103
|
- !ruby/object:Gem::Version
|
104
104
|
version: '4.2'
|
105
|
+
- - "<"
|
106
|
+
- !ruby/object:Gem::Version
|
107
|
+
version: '7.0'
|
105
108
|
type: :runtime
|
106
109
|
prerelease: false
|
107
110
|
version_requirements: !ruby/object:Gem::Requirement
|
108
111
|
requirements:
|
109
|
-
- - "
|
112
|
+
- - ">="
|
110
113
|
- !ruby/object:Gem::Version
|
111
114
|
version: '4.2'
|
115
|
+
- - "<"
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '7.0'
|
112
118
|
description: You simply set an OpenAI key, give a number of Boxcars to a Train, and
|
113
119
|
magic ensues when you run it.
|
114
120
|
email:
|