langchainrb_rails 0.1.3 → 0.1.4
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/CHANGELOG.md +3 -0
- data/Gemfile +1 -1
- data/Gemfile.lock +78 -78
- data/README.md +4 -1
- data/lib/langchainrb_rails/active_record/hooks.rb +1 -2
- data/lib/langchainrb_rails/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 54ab2d33d89929b9222202d42cc5616aac73ca65fa81c3e4f2bc3d516a3a05c6
|
|
4
|
+
data.tar.gz: 4ce553994a4219904875168369ab598de11162db2cd6810d202af005acb10638
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bd93a8976a54120bcec4f8c10ff5bfc5c36d8bccd9f172b071a7732d675ade00ddc3021f93ecb080f508728fdb06b45e5c086933b0bd5522dd094b08d9334d93
|
|
7
|
+
data.tar.gz: 0fd5d062e69a441c50c4963749e31c6773f38ba3e063d21574983b5fd4579c495c3e1b95d340540754c8f89b110c4e1f6ea3f0399265bcf315a0d26f5b6b8e36
|
data/CHANGELOG.md
CHANGED
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
|
@@ -1,76 +1,77 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
langchainrb_rails (0.1.
|
|
4
|
+
langchainrb_rails (0.1.4)
|
|
5
5
|
langchainrb (~> 0.7.0)
|
|
6
6
|
|
|
7
7
|
GEM
|
|
8
8
|
remote: https://rubygems.org/
|
|
9
9
|
specs:
|
|
10
|
-
actioncable (7.1.
|
|
11
|
-
actionpack (= 7.1.
|
|
12
|
-
activesupport (= 7.1.
|
|
10
|
+
actioncable (7.1.2)
|
|
11
|
+
actionpack (= 7.1.2)
|
|
12
|
+
activesupport (= 7.1.2)
|
|
13
13
|
nio4r (~> 2.0)
|
|
14
14
|
websocket-driver (>= 0.6.1)
|
|
15
15
|
zeitwerk (~> 2.6)
|
|
16
|
-
actionmailbox (7.1.
|
|
17
|
-
actionpack (= 7.1.
|
|
18
|
-
activejob (= 7.1.
|
|
19
|
-
activerecord (= 7.1.
|
|
20
|
-
activestorage (= 7.1.
|
|
21
|
-
activesupport (= 7.1.
|
|
16
|
+
actionmailbox (7.1.2)
|
|
17
|
+
actionpack (= 7.1.2)
|
|
18
|
+
activejob (= 7.1.2)
|
|
19
|
+
activerecord (= 7.1.2)
|
|
20
|
+
activestorage (= 7.1.2)
|
|
21
|
+
activesupport (= 7.1.2)
|
|
22
22
|
mail (>= 2.7.1)
|
|
23
23
|
net-imap
|
|
24
24
|
net-pop
|
|
25
25
|
net-smtp
|
|
26
|
-
actionmailer (7.1.
|
|
27
|
-
actionpack (= 7.1.
|
|
28
|
-
actionview (= 7.1.
|
|
29
|
-
activejob (= 7.1.
|
|
30
|
-
activesupport (= 7.1.
|
|
26
|
+
actionmailer (7.1.2)
|
|
27
|
+
actionpack (= 7.1.2)
|
|
28
|
+
actionview (= 7.1.2)
|
|
29
|
+
activejob (= 7.1.2)
|
|
30
|
+
activesupport (= 7.1.2)
|
|
31
31
|
mail (~> 2.5, >= 2.5.4)
|
|
32
32
|
net-imap
|
|
33
33
|
net-pop
|
|
34
34
|
net-smtp
|
|
35
35
|
rails-dom-testing (~> 2.2)
|
|
36
|
-
actionpack (7.1.
|
|
37
|
-
actionview (= 7.1.
|
|
38
|
-
activesupport (= 7.1.
|
|
36
|
+
actionpack (7.1.2)
|
|
37
|
+
actionview (= 7.1.2)
|
|
38
|
+
activesupport (= 7.1.2)
|
|
39
39
|
nokogiri (>= 1.8.5)
|
|
40
|
+
racc
|
|
40
41
|
rack (>= 2.2.4)
|
|
41
42
|
rack-session (>= 1.0.1)
|
|
42
43
|
rack-test (>= 0.6.3)
|
|
43
44
|
rails-dom-testing (~> 2.2)
|
|
44
45
|
rails-html-sanitizer (~> 1.6)
|
|
45
|
-
actiontext (7.1.
|
|
46
|
-
actionpack (= 7.1.
|
|
47
|
-
activerecord (= 7.1.
|
|
48
|
-
activestorage (= 7.1.
|
|
49
|
-
activesupport (= 7.1.
|
|
46
|
+
actiontext (7.1.2)
|
|
47
|
+
actionpack (= 7.1.2)
|
|
48
|
+
activerecord (= 7.1.2)
|
|
49
|
+
activestorage (= 7.1.2)
|
|
50
|
+
activesupport (= 7.1.2)
|
|
50
51
|
globalid (>= 0.6.0)
|
|
51
52
|
nokogiri (>= 1.8.5)
|
|
52
|
-
actionview (7.1.
|
|
53
|
-
activesupport (= 7.1.
|
|
53
|
+
actionview (7.1.2)
|
|
54
|
+
activesupport (= 7.1.2)
|
|
54
55
|
builder (~> 3.1)
|
|
55
56
|
erubi (~> 1.11)
|
|
56
57
|
rails-dom-testing (~> 2.2)
|
|
57
58
|
rails-html-sanitizer (~> 1.6)
|
|
58
|
-
activejob (7.1.
|
|
59
|
-
activesupport (= 7.1.
|
|
59
|
+
activejob (7.1.2)
|
|
60
|
+
activesupport (= 7.1.2)
|
|
60
61
|
globalid (>= 0.3.6)
|
|
61
|
-
activemodel (7.1.
|
|
62
|
-
activesupport (= 7.1.
|
|
63
|
-
activerecord (7.1.
|
|
64
|
-
activemodel (= 7.1.
|
|
65
|
-
activesupport (= 7.1.
|
|
62
|
+
activemodel (7.1.2)
|
|
63
|
+
activesupport (= 7.1.2)
|
|
64
|
+
activerecord (7.1.2)
|
|
65
|
+
activemodel (= 7.1.2)
|
|
66
|
+
activesupport (= 7.1.2)
|
|
66
67
|
timeout (>= 0.4.0)
|
|
67
|
-
activestorage (7.1.
|
|
68
|
-
actionpack (= 7.1.
|
|
69
|
-
activejob (= 7.1.
|
|
70
|
-
activerecord (= 7.1.
|
|
71
|
-
activesupport (= 7.1.
|
|
68
|
+
activestorage (7.1.2)
|
|
69
|
+
actionpack (= 7.1.2)
|
|
70
|
+
activejob (= 7.1.2)
|
|
71
|
+
activerecord (= 7.1.2)
|
|
72
|
+
activesupport (= 7.1.2)
|
|
72
73
|
marcel (~> 1.0)
|
|
73
|
-
activesupport (7.1.
|
|
74
|
+
activesupport (7.1.2)
|
|
74
75
|
base64
|
|
75
76
|
bigdecimal
|
|
76
77
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
|
@@ -83,8 +84,8 @@ GEM
|
|
|
83
84
|
addressable (2.8.5)
|
|
84
85
|
public_suffix (>= 2.0.2, < 6.0)
|
|
85
86
|
ast (2.4.2)
|
|
86
|
-
baran (0.1.
|
|
87
|
-
base64 (0.
|
|
87
|
+
baran (0.1.10)
|
|
88
|
+
base64 (0.2.0)
|
|
88
89
|
bigdecimal (3.1.4)
|
|
89
90
|
brakeman (6.0.1)
|
|
90
91
|
builder (3.2.4)
|
|
@@ -97,9 +98,9 @@ GEM
|
|
|
97
98
|
concurrent-ruby (1.2.2)
|
|
98
99
|
connection_pool (2.4.1)
|
|
99
100
|
crass (1.0.6)
|
|
100
|
-
date (3.3.
|
|
101
|
+
date (3.3.4)
|
|
101
102
|
diff-lcs (1.5.0)
|
|
102
|
-
drb (2.
|
|
103
|
+
drb (2.2.0)
|
|
103
104
|
ruby2_keywords
|
|
104
105
|
erubi (1.12.0)
|
|
105
106
|
globalid (1.2.1)
|
|
@@ -107,13 +108,13 @@ GEM
|
|
|
107
108
|
i18n (1.14.1)
|
|
108
109
|
concurrent-ruby (~> 1.0)
|
|
109
110
|
io-console (0.6.0)
|
|
110
|
-
irb (1.
|
|
111
|
+
irb (1.9.0)
|
|
111
112
|
rdoc
|
|
112
113
|
reline (>= 0.3.8)
|
|
113
114
|
json (2.6.3)
|
|
114
115
|
json-schema (4.0.0)
|
|
115
116
|
addressable (>= 2.8)
|
|
116
|
-
langchainrb (0.7.
|
|
117
|
+
langchainrb (0.7.5)
|
|
117
118
|
baran (~> 0.1.9)
|
|
118
119
|
colorize (~> 0.8.1)
|
|
119
120
|
json-schema (~> 4.0.0)
|
|
@@ -138,13 +139,13 @@ GEM
|
|
|
138
139
|
mini_mime (1.1.5)
|
|
139
140
|
mini_portile2 (2.8.5)
|
|
140
141
|
minitest (5.20.0)
|
|
141
|
-
mutex_m (0.
|
|
142
|
-
net-imap (0.4.
|
|
142
|
+
mutex_m (0.2.0)
|
|
143
|
+
net-imap (0.4.4)
|
|
143
144
|
date
|
|
144
145
|
net-protocol
|
|
145
146
|
net-pop (0.1.2)
|
|
146
147
|
net-protocol
|
|
147
|
-
net-protocol (0.2.
|
|
148
|
+
net-protocol (0.2.2)
|
|
148
149
|
timeout
|
|
149
150
|
net-smtp (0.4.0)
|
|
150
151
|
net-protocol
|
|
@@ -170,8 +171,8 @@ GEM
|
|
|
170
171
|
pry (>= 0.13, < 0.15)
|
|
171
172
|
psych (5.1.1.1)
|
|
172
173
|
stringio
|
|
173
|
-
public_suffix (5.0.
|
|
174
|
-
racc (1.7.
|
|
174
|
+
public_suffix (5.0.4)
|
|
175
|
+
racc (1.7.3)
|
|
175
176
|
rack (3.0.8)
|
|
176
177
|
rack-session (2.0.0)
|
|
177
178
|
rack (>= 3.0.0)
|
|
@@ -180,20 +181,20 @@ GEM
|
|
|
180
181
|
rackup (2.1.0)
|
|
181
182
|
rack (>= 3)
|
|
182
183
|
webrick (~> 1.8)
|
|
183
|
-
rails (7.1.
|
|
184
|
-
actioncable (= 7.1.
|
|
185
|
-
actionmailbox (= 7.1.
|
|
186
|
-
actionmailer (= 7.1.
|
|
187
|
-
actionpack (= 7.1.
|
|
188
|
-
actiontext (= 7.1.
|
|
189
|
-
actionview (= 7.1.
|
|
190
|
-
activejob (= 7.1.
|
|
191
|
-
activemodel (= 7.1.
|
|
192
|
-
activerecord (= 7.1.
|
|
193
|
-
activestorage (= 7.1.
|
|
194
|
-
activesupport (= 7.1.
|
|
184
|
+
rails (7.1.2)
|
|
185
|
+
actioncable (= 7.1.2)
|
|
186
|
+
actionmailbox (= 7.1.2)
|
|
187
|
+
actionmailer (= 7.1.2)
|
|
188
|
+
actionpack (= 7.1.2)
|
|
189
|
+
actiontext (= 7.1.2)
|
|
190
|
+
actionview (= 7.1.2)
|
|
191
|
+
activejob (= 7.1.2)
|
|
192
|
+
activemodel (= 7.1.2)
|
|
193
|
+
activerecord (= 7.1.2)
|
|
194
|
+
activestorage (= 7.1.2)
|
|
195
|
+
activesupport (= 7.1.2)
|
|
195
196
|
bundler (>= 1.15.0)
|
|
196
|
-
railties (= 7.1.
|
|
197
|
+
railties (= 7.1.2)
|
|
197
198
|
rails-dom-testing (2.2.0)
|
|
198
199
|
activesupport (>= 5.0.0)
|
|
199
200
|
minitest
|
|
@@ -201,21 +202,21 @@ GEM
|
|
|
201
202
|
rails-html-sanitizer (1.6.0)
|
|
202
203
|
loofah (~> 2.21)
|
|
203
204
|
nokogiri (~> 1.14)
|
|
204
|
-
railties (7.1.
|
|
205
|
-
actionpack (= 7.1.
|
|
206
|
-
activesupport (= 7.1.
|
|
205
|
+
railties (7.1.2)
|
|
206
|
+
actionpack (= 7.1.2)
|
|
207
|
+
activesupport (= 7.1.2)
|
|
207
208
|
irb
|
|
208
209
|
rackup (>= 1.0.0)
|
|
209
210
|
rake (>= 12.2)
|
|
210
211
|
thor (~> 1.0, >= 1.2.2)
|
|
211
212
|
zeitwerk (~> 2.6)
|
|
212
213
|
rainbow (3.1.1)
|
|
213
|
-
rake (13.0
|
|
214
|
-
rb_sys (0.9.
|
|
215
|
-
rdoc (6.
|
|
214
|
+
rake (13.1.0)
|
|
215
|
+
rb_sys (0.9.83)
|
|
216
|
+
rdoc (6.6.0)
|
|
216
217
|
psych (>= 4.0.0)
|
|
217
218
|
regexp_parser (2.8.2)
|
|
218
|
-
reline (0.
|
|
219
|
+
reline (0.4.0)
|
|
219
220
|
io-console (~> 0.5)
|
|
220
221
|
rexml (3.2.6)
|
|
221
222
|
rspec (3.12.0)
|
|
@@ -231,29 +232,28 @@ GEM
|
|
|
231
232
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
232
233
|
rspec-support (~> 3.12.0)
|
|
233
234
|
rspec-support (3.12.1)
|
|
234
|
-
rubocop (1.
|
|
235
|
-
base64 (~> 0.1.1)
|
|
235
|
+
rubocop (1.57.2)
|
|
236
236
|
json (~> 2.3)
|
|
237
237
|
language_server-protocol (>= 3.17.0)
|
|
238
238
|
parallel (~> 1.10)
|
|
239
|
-
parser (>= 3.2.2.
|
|
239
|
+
parser (>= 3.2.2.4)
|
|
240
240
|
rainbow (>= 2.2.2, < 4.0)
|
|
241
241
|
regexp_parser (>= 1.8, < 3.0)
|
|
242
242
|
rexml (>= 3.2.5, < 4.0)
|
|
243
243
|
rubocop-ast (>= 1.28.1, < 2.0)
|
|
244
244
|
ruby-progressbar (~> 1.7)
|
|
245
245
|
unicode-display_width (>= 2.4.0, < 3.0)
|
|
246
|
-
rubocop-ast (1.
|
|
246
|
+
rubocop-ast (1.30.0)
|
|
247
247
|
parser (>= 3.2.1.0)
|
|
248
248
|
rubocop-performance (1.19.1)
|
|
249
249
|
rubocop (>= 1.7.0, < 2.0)
|
|
250
250
|
rubocop-ast (>= 0.4.0)
|
|
251
251
|
ruby-progressbar (1.13.0)
|
|
252
252
|
ruby2_keywords (0.0.5)
|
|
253
|
-
standard (1.
|
|
253
|
+
standard (1.32.0)
|
|
254
254
|
language_server-protocol (~> 3.17.0.2)
|
|
255
255
|
lint_roller (~> 1.0)
|
|
256
|
-
rubocop (~> 1.
|
|
256
|
+
rubocop (~> 1.57.2)
|
|
257
257
|
standard-custom (~> 1.0.0)
|
|
258
258
|
standard-performance (~> 1.2)
|
|
259
259
|
standard-custom (1.0.2)
|
|
@@ -264,13 +264,13 @@ GEM
|
|
|
264
264
|
rubocop-performance (~> 1.19.1)
|
|
265
265
|
standardrb (1.0.1)
|
|
266
266
|
standard
|
|
267
|
-
stringio (3.0.
|
|
267
|
+
stringio (3.0.9)
|
|
268
268
|
thor (1.3.0)
|
|
269
269
|
tiktoken_ruby (0.0.6)
|
|
270
270
|
rb_sys (~> 0.9.68)
|
|
271
271
|
tiktoken_ruby (0.0.6-x86_64-darwin)
|
|
272
272
|
tiktoken_ruby (0.0.6-x86_64-linux)
|
|
273
|
-
timeout (0.4.
|
|
273
|
+
timeout (0.4.1)
|
|
274
274
|
to_bool (2.0.0)
|
|
275
275
|
tzinfo (2.0.6)
|
|
276
276
|
concurrent-ruby (~> 1.0)
|
|
@@ -296,7 +296,7 @@ DEPENDENCIES
|
|
|
296
296
|
langchainrb_rails!
|
|
297
297
|
pry-byebug (~> 3.10.0)
|
|
298
298
|
rails (> 6.0.0)
|
|
299
|
-
rake (~> 13.
|
|
299
|
+
rake (~> 13.1)
|
|
300
300
|
rspec (~> 3.0)
|
|
301
301
|
rubocop
|
|
302
302
|
standardrb
|
data/README.md
CHANGED
|
@@ -2,11 +2,14 @@
|
|
|
2
2
|
---
|
|
3
3
|
The fastest way to sprinkle AI ✨ on top of your Rails app. Add OpenAI-powered question-and-answering in minutes.
|
|
4
4
|
|
|
5
|
+
Available for paid consulting engagements! [Email me](mailto:andrei@sourcelabs.io).
|
|
6
|
+
|
|
5
7
|

|
|
6
8
|
[](https://badge.fury.io/rb/langchainrb_rails)
|
|
7
9
|
[](http://rubydoc.info/gems/langchainrb_rails)
|
|
8
10
|
[](https://github.com/andreibondarev/langchainrb_rails/blob/main/LICENSE.txt)
|
|
9
11
|
[](https://discord.gg/WDARp7J2n8)
|
|
12
|
+
[](https://twitter.com/rushing_andrei)
|
|
10
13
|
|
|
11
14
|
## Dependencies
|
|
12
15
|
|
|
@@ -96,7 +99,7 @@ end
|
|
|
96
99
|
Re-generate embeddings after modifying this method:
|
|
97
100
|
|
|
98
101
|
```ruby
|
|
99
|
-
|
|
102
|
+
Product.embed!
|
|
100
103
|
```
|
|
101
104
|
|
|
102
105
|
## Rails Generators
|
|
@@ -76,9 +76,8 @@ module LangchainrbRails
|
|
|
76
76
|
# Pgvector-specific configuration
|
|
77
77
|
if LangchainrbRails.config.vectorsearch.is_a?(Langchain::Vectorsearch::Pgvector)
|
|
78
78
|
has_neighbors(:embedding)
|
|
79
|
+
LangchainrbRails.config.vectorsearch.model = self
|
|
79
80
|
end
|
|
80
|
-
|
|
81
|
-
LangchainrbRails.config.vectorsearch.model = self
|
|
82
81
|
end
|
|
83
82
|
|
|
84
83
|
# Iterates over records and generate embeddings.
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: langchainrb_rails
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Andrei Bondarev
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2023-11-
|
|
11
|
+
date: 2023-11-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: langchainrb
|