langchainrb 0.6.11 → 0.6.13

Sign up to get free protection for your applications and to get access to all the features.
Files changed (53) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +8 -0
  3. data/README.md +5 -11
  4. data/lib/langchain/agent/base.rb +1 -0
  5. data/lib/langchain/agent/{react_agent/react_agent.rb → react_agent.rb} +12 -11
  6. data/lib/langchain/ai_message.rb +9 -0
  7. data/lib/langchain/conversation.rb +11 -11
  8. data/lib/langchain/conversation_memory.rb +3 -7
  9. data/lib/langchain/human_message.rb +9 -0
  10. data/lib/langchain/llm/cohere.rb +3 -2
  11. data/lib/langchain/llm/google_palm.rb +16 -11
  12. data/lib/langchain/llm/llama_cpp.rb +5 -5
  13. data/lib/langchain/llm/openai.rb +24 -25
  14. data/lib/langchain/llm/replicate.rb +2 -1
  15. data/lib/langchain/loader.rb +3 -2
  16. data/lib/langchain/message.rb +35 -0
  17. data/lib/langchain/output_parsers/base.rb +5 -4
  18. data/lib/langchain/output_parsers/{fix.rb → output_fixing_parser.rb} +3 -1
  19. data/lib/langchain/prompt/loading.rb +73 -67
  20. data/lib/langchain/prompt.rb +5 -0
  21. data/lib/langchain/system_message.rb +9 -0
  22. data/lib/langchain/tool/base.rb +14 -14
  23. data/lib/langchain/vectorsearch/chroma.rb +3 -2
  24. data/lib/langchain/vectorsearch/milvus.rb +4 -3
  25. data/lib/langchain/vectorsearch/pgvector.rb +10 -7
  26. data/lib/langchain/vectorsearch/pinecone.rb +18 -2
  27. data/lib/langchain/vectorsearch/qdrant.rb +4 -3
  28. data/lib/langchain/vectorsearch/weaviate.rb +3 -2
  29. data/lib/langchain/version.rb +1 -1
  30. data/lib/langchain.rb +19 -97
  31. metadata +49 -50
  32. data/.env.example +0 -21
  33. data/.rspec +0 -3
  34. data/.rubocop.yml +0 -11
  35. data/.tool-versions +0 -1
  36. data/Gemfile +0 -14
  37. data/Gemfile.lock +0 -360
  38. data/Rakefile +0 -17
  39. data/examples/conversation_with_openai.rb +0 -52
  40. data/examples/create_and_manage_few_shot_prompt_templates.rb +0 -36
  41. data/examples/create_and_manage_prompt_templates.rb +0 -25
  42. data/examples/create_and_manage_prompt_templates_using_structured_output_parser.rb +0 -116
  43. data/examples/llama_cpp.rb +0 -24
  44. data/examples/open_ai_function_calls.rb +0 -41
  45. data/examples/open_ai_qdrant_function_calls.rb +0 -39
  46. data/examples/pdf_store_and_query_with_chroma.rb +0 -40
  47. data/examples/store_and_query_with_pinecone.rb +0 -46
  48. data/examples/store_and_query_with_qdrant.rb +0 -37
  49. data/examples/store_and_query_with_weaviate.rb +0 -32
  50. data/lefthook.yml +0 -5
  51. data/sig/langchain.rbs +0 -4
  52. /data/lib/langchain/agent/{sql_query_agent/sql_query_agent.rb → sql_query_agent.rb} +0 -0
  53. /data/lib/langchain/output_parsers/{structured.rb → structured_output_parser.rb} +0 -0
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: langchainrb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.11
4
+ version: 0.6.13
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-08-08 00:00:00.000000000 Z
11
+ date: 2023-08-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: baran
@@ -66,6 +66,20 @@ dependencies:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: 4.0.0
69
+ - !ruby/object:Gem::Dependency
70
+ name: zeitwerk
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - '='
74
+ - !ruby/object:Gem::Version
75
+ version: 2.6.11
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - '='
81
+ - !ruby/object:Gem::Version
82
+ version: 2.6.11
69
83
  - !ruby/object:Gem::Dependency
70
84
  name: dotenv-rails
71
85
  requirement: !ruby/object:Gem::Requirement
@@ -98,30 +112,30 @@ dependencies:
98
112
  name: yard
99
113
  requirement: !ruby/object:Gem::Requirement
100
114
  requirements:
101
- - - ">="
115
+ - - "~>"
102
116
  - !ruby/object:Gem::Version
103
- version: '0'
117
+ version: 0.9.34
104
118
  type: :development
105
119
  prerelease: false
106
120
  version_requirements: !ruby/object:Gem::Requirement
107
121
  requirements:
108
- - - ">="
122
+ - - "~>"
109
123
  - !ruby/object:Gem::Version
110
- version: '0'
124
+ version: 0.9.34
111
125
  - !ruby/object:Gem::Dependency
112
126
  name: rdiscount
113
127
  requirement: !ruby/object:Gem::Requirement
114
128
  requirements:
115
- - - ">="
129
+ - - "~>"
116
130
  - !ruby/object:Gem::Version
117
- version: '0'
131
+ version: 2.2.7
118
132
  type: :development
119
133
  prerelease: false
120
134
  version_requirements: !ruby/object:Gem::Requirement
121
135
  requirements:
122
- - - ">="
136
+ - - "~>"
123
137
  - !ruby/object:Gem::Version
124
- version: '0'
138
+ version: 2.2.7
125
139
  - !ruby/object:Gem::Dependency
126
140
  name: ai21
127
141
  requirement: !ruby/object:Gem::Requirement
@@ -170,14 +184,14 @@ dependencies:
170
184
  requirements:
171
185
  - - "~>"
172
186
  - !ruby/object:Gem::Version
173
- version: 0.9.5
187
+ version: 0.9.6
174
188
  type: :development
175
189
  prerelease: false
176
190
  version_requirements: !ruby/object:Gem::Requirement
177
191
  requirements:
178
192
  - - "~>"
179
193
  - !ruby/object:Gem::Version
180
- version: 0.9.5
194
+ version: 0.9.6
181
195
  - !ruby/object:Gem::Dependency
182
196
  name: docx
183
197
  requirement: !ruby/object:Gem::Requirement
@@ -212,14 +226,14 @@ dependencies:
212
226
  requirements:
213
227
  - - "~>"
214
228
  - !ruby/object:Gem::Version
215
- version: 0.1.2
229
+ version: 0.1.3
216
230
  type: :development
217
231
  prerelease: false
218
232
  version_requirements: !ruby/object:Gem::Requirement
219
233
  requirements:
220
234
  - - "~>"
221
235
  - !ruby/object:Gem::Version
222
- version: 0.1.2
236
+ version: 0.1.3
223
237
  - !ruby/object:Gem::Dependency
224
238
  name: google_search_results
225
239
  requirement: !ruby/object:Gem::Requirement
@@ -268,28 +282,28 @@ dependencies:
268
282
  requirements:
269
283
  - - "~>"
270
284
  - !ruby/object:Gem::Version
271
- version: 0.9.0
285
+ version: 0.9.2
272
286
  type: :development
273
287
  prerelease: false
274
288
  version_requirements: !ruby/object:Gem::Requirement
275
289
  requirements:
276
290
  - - "~>"
277
291
  - !ruby/object:Gem::Version
278
- version: 0.9.0
292
+ version: 0.9.2
279
293
  - !ruby/object:Gem::Dependency
280
294
  name: llama_cpp
281
295
  requirement: !ruby/object:Gem::Requirement
282
296
  requirements:
283
- - - ">="
297
+ - - "~>"
284
298
  - !ruby/object:Gem::Version
285
- version: '0'
299
+ version: 0.3.7
286
300
  type: :development
287
301
  prerelease: false
288
302
  version_requirements: !ruby/object:Gem::Requirement
289
303
  requirements:
290
- - - ">="
304
+ - - "~>"
291
305
  - !ruby/object:Gem::Version
292
- version: '0'
306
+ version: 0.3.7
293
307
  - !ruby/object:Gem::Dependency
294
308
  name: nokogiri
295
309
  requirement: !ruby/object:Gem::Requirement
@@ -310,14 +324,14 @@ dependencies:
310
324
  requirements:
311
325
  - - "~>"
312
326
  - !ruby/object:Gem::Version
313
- version: 0.3.0
327
+ version: 0.4.0
314
328
  type: :development
315
329
  prerelease: false
316
330
  version_requirements: !ruby/object:Gem::Requirement
317
331
  requirements:
318
332
  - - "~>"
319
333
  - !ruby/object:Gem::Version
320
- version: 0.3.0
334
+ version: 0.4.0
321
335
  - !ruby/object:Gem::Dependency
322
336
  name: pg
323
337
  requirement: !ruby/object:Gem::Requirement
@@ -394,14 +408,14 @@ dependencies:
394
408
  requirements:
395
409
  - - "~>"
396
410
  - !ruby/object:Gem::Version
397
- version: 0.9.0
411
+ version: 0.9.3
398
412
  type: :development
399
413
  prerelease: false
400
414
  version_requirements: !ruby/object:Gem::Requirement
401
415
  requirements:
402
416
  - - "~>"
403
417
  - !ruby/object:Gem::Version
404
- version: 0.9.0
418
+ version: 0.9.3
405
419
  - !ruby/object:Gem::Dependency
406
420
  name: roo
407
421
  requirement: !ruby/object:Gem::Requirement
@@ -464,14 +478,14 @@ dependencies:
464
478
  requirements:
465
479
  - - "~>"
466
480
  - !ruby/object:Gem::Version
467
- version: 0.8.3
481
+ version: 0.8.6
468
482
  type: :development
469
483
  prerelease: false
470
484
  version_requirements: !ruby/object:Gem::Requirement
471
485
  requirements:
472
486
  - - "~>"
473
487
  - !ruby/object:Gem::Version
474
- version: 0.8.3
488
+ version: 0.8.6
475
489
  - !ruby/object:Gem::Dependency
476
490
  name: wikipedia-client
477
491
  requirement: !ruby/object:Gem::Requirement
@@ -493,36 +507,18 @@ executables: []
493
507
  extensions: []
494
508
  extra_rdoc_files: []
495
509
  files:
496
- - ".env.example"
497
- - ".rspec"
498
- - ".rubocop.yml"
499
- - ".tool-versions"
500
510
  - CHANGELOG.md
501
- - Gemfile
502
- - Gemfile.lock
503
511
  - LICENSE.txt
504
512
  - README.md
505
- - Rakefile
506
- - examples/conversation_with_openai.rb
507
- - examples/create_and_manage_few_shot_prompt_templates.rb
508
- - examples/create_and_manage_prompt_templates.rb
509
- - examples/create_and_manage_prompt_templates_using_structured_output_parser.rb
510
- - examples/llama_cpp.rb
511
- - examples/open_ai_function_calls.rb
512
- - examples/open_ai_qdrant_function_calls.rb
513
- - examples/pdf_store_and_query_with_chroma.rb
514
- - examples/store_and_query_with_pinecone.rb
515
- - examples/store_and_query_with_qdrant.rb
516
- - examples/store_and_query_with_weaviate.rb
517
- - lefthook.yml
518
513
  - lib/langchain.rb
519
514
  - lib/langchain/active_record/hooks.rb
520
515
  - lib/langchain/agent/base.rb
521
- - lib/langchain/agent/react_agent/react_agent.rb
516
+ - lib/langchain/agent/react_agent.rb
522
517
  - lib/langchain/agent/react_agent/react_agent_prompt.yaml
523
- - lib/langchain/agent/sql_query_agent/sql_query_agent.rb
518
+ - lib/langchain/agent/sql_query_agent.rb
524
519
  - lib/langchain/agent/sql_query_agent/sql_query_agent_answer_prompt.yaml
525
520
  - lib/langchain/agent/sql_query_agent/sql_query_agent_sql_prompt.yaml
521
+ - lib/langchain/ai_message.rb
526
522
  - lib/langchain/chunker/base.rb
527
523
  - lib/langchain/chunker/recursive_text.rb
528
524
  - lib/langchain/chunker/text.rb
@@ -531,6 +527,7 @@ files:
531
527
  - lib/langchain/conversation_memory.rb
532
528
  - lib/langchain/data.rb
533
529
  - lib/langchain/dependency_helper.rb
530
+ - lib/langchain/human_message.rb
534
531
  - lib/langchain/llm/ai21.rb
535
532
  - lib/langchain/llm/anthropic.rb
536
533
  - lib/langchain/llm/base.rb
@@ -542,10 +539,11 @@ files:
542
539
  - lib/langchain/llm/prompts/summarize_template.yaml
543
540
  - lib/langchain/llm/replicate.rb
544
541
  - lib/langchain/loader.rb
542
+ - lib/langchain/message.rb
545
543
  - lib/langchain/output_parsers/base.rb
546
- - lib/langchain/output_parsers/fix.rb
544
+ - lib/langchain/output_parsers/output_fixing_parser.rb
547
545
  - lib/langchain/output_parsers/prompts/naive_fix_prompt.yaml
548
- - lib/langchain/output_parsers/structured.rb
546
+ - lib/langchain/output_parsers/structured_output_parser.rb
549
547
  - lib/langchain/processors/base.rb
550
548
  - lib/langchain/processors/csv.rb
551
549
  - lib/langchain/processors/docx.rb
@@ -555,11 +553,13 @@ files:
555
553
  - lib/langchain/processors/pdf.rb
556
554
  - lib/langchain/processors/text.rb
557
555
  - lib/langchain/processors/xlsx.rb
556
+ - lib/langchain/prompt.rb
558
557
  - lib/langchain/prompt/base.rb
559
558
  - lib/langchain/prompt/few_shot_prompt_template.rb
560
559
  - lib/langchain/prompt/loading.rb
561
560
  - lib/langchain/prompt/prompt_template.rb
562
561
  - lib/langchain/railtie.rb
562
+ - lib/langchain/system_message.rb
563
563
  - lib/langchain/tool/base.rb
564
564
  - lib/langchain/tool/calculator.rb
565
565
  - lib/langchain/tool/database.rb
@@ -583,7 +583,6 @@ files:
583
583
  - lib/langchain/vectorsearch/weaviate.rb
584
584
  - lib/langchain/version.rb
585
585
  - lib/langchainrb.rb
586
- - sig/langchain.rbs
587
586
  homepage: https://rubygems.org/gems/langchainrb
588
587
  licenses:
589
588
  - MIT
data/.env.example DELETED
@@ -1,21 +0,0 @@
1
- AI21_API_KEY=
2
- ANTHROPIC_API_KEY=
3
- CHROMA_URL=
4
- COHERE_API_KEY=
5
- GOOGLE_PALM_API_KEY=
6
- HUGGING_FACE_API_KEY=
7
- LLAMACPP_MODEL_PATH=
8
- LLAMACPP_N_THREADS=
9
- LLAMACPP_N_GPU_LAYERS=
10
- MILVUS_URL=
11
- OPENAI_API_KEY=
12
- OPEN_WEATHER_API_KEY=
13
- PINECONE_API_KEY=
14
- PINECONE_ENVIRONMENT=
15
- POSTGRES_URL=
16
- REPLICATE_API_KEY=
17
- QDRANT_API_KEY=
18
- QDRANT_URL=
19
- SERPAPI_API_KEY=
20
- WEAVIATE_API_KEY=
21
- WEAVIATE_URL=
data/.rspec DELETED
@@ -1,3 +0,0 @@
1
- --format documentation
2
- --color
3
- --require spec_helper
data/.rubocop.yml DELETED
@@ -1,11 +0,0 @@
1
- AllCops:
2
- SuggestExtensions: false
3
-
4
- require:
5
- - standard
6
- - rubocop-performance
7
-
8
- inherit_gem:
9
- standard: config/base.yml
10
- standard-performance: config/base.yml
11
- standard-custom: config/base.yml
data/.tool-versions DELETED
@@ -1 +0,0 @@
1
- ruby 3.1.2
data/Gemfile DELETED
@@ -1,14 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- source "https://rubygems.org"
4
-
5
- # Specify your gem's dependencies in langchain.gemspec
6
- gemspec
7
-
8
- gem "rake", "~> 13.0"
9
-
10
- gem "rspec", "~> 3.0"
11
-
12
- gem "standardrb"
13
- # Lets add rubocop explicitly here, we are using only standardrb rules in .rubocop.yml
14
- gem "rubocop"
data/Gemfile.lock DELETED
@@ -1,360 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- langchainrb (0.6.11)
5
- baran (~> 0.1.6)
6
- colorize (~> 0.8.1)
7
- json-schema (~> 4.0.0)
8
- tiktoken_ruby (~> 0.0.5)
9
-
10
- GEM
11
- remote: https://rubygems.org/
12
- specs:
13
- Ascii85 (1.0.3)
14
- actionpack (7.0.4.3)
15
- actionview (= 7.0.4.3)
16
- activesupport (= 7.0.4.3)
17
- rack (~> 2.0, >= 2.2.0)
18
- rack-test (>= 0.6.3)
19
- rails-dom-testing (~> 2.0)
20
- rails-html-sanitizer (~> 1.0, >= 1.2.0)
21
- actionview (7.0.4.3)
22
- activesupport (= 7.0.4.3)
23
- builder (~> 3.1)
24
- erubi (~> 1.4)
25
- rails-dom-testing (~> 2.0)
26
- rails-html-sanitizer (~> 1.1, >= 1.2.0)
27
- activesupport (7.0.4.3)
28
- concurrent-ruby (~> 1.0, >= 1.0.2)
29
- i18n (>= 1.6, < 2)
30
- minitest (>= 5.1)
31
- tzinfo (~> 2.0)
32
- addressable (2.8.4)
33
- public_suffix (>= 2.0.2, < 6.0)
34
- afm (0.2.2)
35
- ai21 (0.2.1)
36
- anthropic (0.1.0)
37
- faraday (>= 1)
38
- faraday-multipart (>= 1)
39
- ast (2.4.2)
40
- baran (0.1.7)
41
- builder (3.2.4)
42
- byebug (11.1.3)
43
- childprocess (4.1.0)
44
- chroma-db (0.3.0)
45
- dry-monads (~> 1.6)
46
- ruby-next-core (>= 0.15.0)
47
- coderay (1.1.3)
48
- cohere-ruby (0.9.5)
49
- faraday (>= 1.0.0)
50
- faraday_middleware (>= 1.0.0)
51
- colorize (0.8.1)
52
- concurrent-ruby (1.2.2)
53
- crass (1.0.6)
54
- diff-lcs (1.5.0)
55
- docx (0.8.0)
56
- nokogiri (~> 1.13, >= 1.13.0)
57
- rubyzip (~> 2.0)
58
- dotenv (2.7.6)
59
- dotenv-rails (2.7.6)
60
- dotenv (= 2.7.6)
61
- railties (>= 3.2)
62
- dry-configurable (1.0.1)
63
- dry-core (~> 1.0, < 2)
64
- zeitwerk (~> 2.6)
65
- dry-core (1.0.0)
66
- concurrent-ruby (~> 1.0)
67
- zeitwerk (~> 2.6)
68
- dry-inflector (1.0.0)
69
- dry-initializer (3.1.1)
70
- dry-logic (1.5.0)
71
- concurrent-ruby (~> 1.0)
72
- dry-core (~> 1.0, < 2)
73
- zeitwerk (~> 2.6)
74
- dry-monads (1.6.0)
75
- concurrent-ruby (~> 1.0)
76
- dry-core (~> 1.0, < 2)
77
- zeitwerk (~> 2.6)
78
- dry-schema (1.13.1)
79
- concurrent-ruby (~> 1.0)
80
- dry-configurable (~> 1.0, >= 1.0.1)
81
- dry-core (~> 1.0, < 2)
82
- dry-initializer (~> 3.0)
83
- dry-logic (>= 1.4, < 2)
84
- dry-types (>= 1.7, < 2)
85
- zeitwerk (~> 2.6)
86
- dry-struct (1.6.0)
87
- dry-core (~> 1.0, < 2)
88
- dry-types (>= 1.7, < 2)
89
- ice_nine (~> 0.11)
90
- zeitwerk (~> 2.6)
91
- dry-types (1.7.1)
92
- concurrent-ruby (~> 1.0)
93
- dry-core (~> 1.0)
94
- dry-inflector (~> 1.0)
95
- dry-logic (~> 1.4)
96
- zeitwerk (~> 2.6)
97
- dry-validation (1.10.0)
98
- concurrent-ruby (~> 1.0)
99
- dry-core (~> 1.0, < 2)
100
- dry-initializer (~> 3.0)
101
- dry-schema (>= 1.12, < 2)
102
- zeitwerk (~> 2.6)
103
- eqn (1.6.5)
104
- treetop (>= 1.2.0)
105
- erubi (1.12.0)
106
- faraday (1.10.3)
107
- faraday-em_http (~> 1.0)
108
- faraday-em_synchrony (~> 1.0)
109
- faraday-excon (~> 1.1)
110
- faraday-httpclient (~> 1.0)
111
- faraday-multipart (~> 1.0)
112
- faraday-net_http (~> 1.0)
113
- faraday-net_http_persistent (~> 1.0)
114
- faraday-patron (~> 1.0)
115
- faraday-rack (~> 1.0)
116
- faraday-retry (~> 1.0)
117
- ruby2_keywords (>= 0.0.4)
118
- faraday-em_http (1.0.0)
119
- faraday-em_synchrony (1.0.0)
120
- faraday-excon (1.1.0)
121
- faraday-httpclient (1.0.1)
122
- faraday-multipart (1.0.4)
123
- multipart-post (~> 2)
124
- faraday-net_http (1.0.1)
125
- faraday-net_http_persistent (1.2.0)
126
- faraday-patron (1.0.0)
127
- faraday-rack (1.0.0)
128
- faraday-retry (1.0.3)
129
- faraday_middleware (1.2.0)
130
- faraday (~> 1.0)
131
- google_palm_api (0.1.2)
132
- faraday (>= 1.0.0)
133
- faraday_middleware (>= 1.0.0)
134
- google_search_results (2.0.1)
135
- graphlient (0.6.0)
136
- faraday (>= 1.0)
137
- faraday_middleware
138
- graphql-client
139
- graphql (2.0.24)
140
- graphql-client (0.18.0)
141
- activesupport (>= 3.0)
142
- graphql
143
- hashery (2.1.2)
144
- hashie (5.0.0)
145
- hnswlib (0.8.1)
146
- httparty (0.21.0)
147
- mini_mime (>= 1.0.0)
148
- multi_xml (>= 0.5.2)
149
- hugging-face (0.3.4)
150
- faraday (>= 1.0)
151
- i18n (1.13.0)
152
- concurrent-ruby (~> 1.0)
153
- ice_nine (0.11.2)
154
- json (2.6.3)
155
- json-schema (4.0.0)
156
- addressable (>= 2.8)
157
- language_server-protocol (3.17.0.3)
158
- lint_roller (1.0.0)
159
- llama_cpp (0.3.0)
160
- loofah (2.21.1)
161
- crass (~> 1.0.2)
162
- nokogiri (>= 1.5.9)
163
- method_source (1.0.0)
164
- milvus (0.9.1)
165
- faraday (~> 1)
166
- mini_mime (1.1.2)
167
- mini_portile2 (2.8.2)
168
- minitest (5.18.0)
169
- multi_xml (0.6.0)
170
- multipart-post (2.3.0)
171
- nokogiri (1.14.3)
172
- mini_portile2 (~> 2.8.0)
173
- racc (~> 1.4)
174
- nokogiri (1.14.3-arm64-darwin)
175
- racc (~> 1.4)
176
- nokogiri (1.14.3-x86_64-darwin)
177
- racc (~> 1.4)
178
- nokogiri (1.14.3-x86_64-linux)
179
- racc (~> 1.4)
180
- open-weather-ruby-client (0.3.0)
181
- activesupport
182
- faraday (>= 1.0.0)
183
- faraday_middleware
184
- hashie
185
- parallel (1.23.0)
186
- parser (3.2.2.1)
187
- ast (~> 2.4.1)
188
- pdf-reader (1.4.1)
189
- Ascii85 (~> 1.0.0)
190
- afm (~> 0.2.1)
191
- hashery (~> 2.0)
192
- ruby-rc4
193
- ttfunk
194
- pg (1.5.3)
195
- pgvector (0.2.1)
196
- pinecone (0.1.71)
197
- dry-struct (~> 1.6.0)
198
- dry-validation (~> 1.10.0)
199
- httparty (~> 0.21.0)
200
- polyglot (0.3.5)
201
- pry (0.14.2)
202
- coderay (~> 1.1)
203
- method_source (~> 1.0)
204
- pry-byebug (3.10.1)
205
- byebug (~> 11.0)
206
- pry (>= 0.13, < 0.15)
207
- public_suffix (5.0.1)
208
- qdrant-ruby (0.9.2)
209
- faraday (~> 1)
210
- faraday_middleware (~> 1)
211
- racc (1.6.2)
212
- rack (2.2.7)
213
- rack-test (2.1.0)
214
- rack (>= 1.3)
215
- rails-dom-testing (2.0.3)
216
- activesupport (>= 4.2.0)
217
- nokogiri (>= 1.6)
218
- rails-html-sanitizer (1.5.0)
219
- loofah (~> 2.19, >= 2.19.1)
220
- railties (7.0.4.3)
221
- actionpack (= 7.0.4.3)
222
- activesupport (= 7.0.4.3)
223
- method_source
224
- rake (>= 12.2)
225
- thor (~> 1.0)
226
- zeitwerk (~> 2.5)
227
- rainbow (3.1.1)
228
- rake (13.0.6)
229
- rb_sys (0.9.81)
230
- rdiscount (2.2.7)
231
- regexp_parser (2.8.0)
232
- replicate-ruby (0.2.2)
233
- addressable
234
- faraday (>= 1.0)
235
- faraday-multipart
236
- faraday-retry
237
- rexml (3.2.5)
238
- roo (2.10.0)
239
- nokogiri (~> 1)
240
- rubyzip (>= 1.3.0, < 3.0.0)
241
- rspec (3.12.0)
242
- rspec-core (~> 3.12.0)
243
- rspec-expectations (~> 3.12.0)
244
- rspec-mocks (~> 3.12.0)
245
- rspec-core (3.12.2)
246
- rspec-support (~> 3.12.0)
247
- rspec-expectations (3.12.3)
248
- diff-lcs (>= 1.2.0, < 2.0)
249
- rspec-support (~> 3.12.0)
250
- rspec-mocks (3.12.5)
251
- diff-lcs (>= 1.2.0, < 2.0)
252
- rspec-support (~> 3.12.0)
253
- rspec-support (3.12.0)
254
- rubocop (1.50.2)
255
- json (~> 2.3)
256
- parallel (~> 1.10)
257
- parser (>= 3.2.0.0)
258
- rainbow (>= 2.2.2, < 4.0)
259
- regexp_parser (>= 1.8, < 3.0)
260
- rexml (>= 3.2.5, < 4.0)
261
- rubocop-ast (>= 1.28.0, < 2.0)
262
- ruby-progressbar (~> 1.7)
263
- unicode-display_width (>= 2.4.0, < 3.0)
264
- rubocop-ast (1.28.1)
265
- parser (>= 3.2.1.0)
266
- rubocop-performance (1.16.0)
267
- rubocop (>= 1.7.0, < 2.0)
268
- rubocop-ast (>= 0.4.0)
269
- ruby-next-core (0.15.3)
270
- ruby-openai (4.1.0)
271
- faraday (>= 1)
272
- faraday-multipart (>= 1)
273
- ruby-progressbar (1.13.0)
274
- ruby-rc4 (0.1.5)
275
- ruby2_keywords (0.0.5)
276
- rubyzip (2.3.2)
277
- safe_ruby (1.0.4)
278
- childprocess (>= 0.3.9)
279
- sequel (5.68.0)
280
- standard (1.28.2)
281
- language_server-protocol (~> 3.17.0.2)
282
- lint_roller (~> 1.0)
283
- rubocop (~> 1.50.2)
284
- standard-custom (~> 1.0.0)
285
- standard-performance (~> 1.0.1)
286
- standard-custom (1.0.0)
287
- lint_roller (~> 1.0)
288
- standard-performance (1.0.1)
289
- lint_roller (~> 1.0)
290
- rubocop-performance (~> 1.16.0)
291
- standardrb (1.0.1)
292
- standard
293
- thor (1.2.1)
294
- tiktoken_ruby (0.0.5)
295
- rb_sys (~> 0.9.68)
296
- tiktoken_ruby (0.0.5-arm64-darwin)
297
- tiktoken_ruby (0.0.5-x86_64-darwin)
298
- tiktoken_ruby (0.0.5-x86_64-linux)
299
- treetop (1.6.12)
300
- polyglot (~> 0.3)
301
- ttfunk (1.7.0)
302
- tzinfo (2.0.6)
303
- concurrent-ruby (~> 1.0)
304
- unicode-display_width (2.4.2)
305
- weaviate-ruby (0.8.4)
306
- faraday (~> 1)
307
- faraday_middleware (~> 1)
308
- graphlient (~> 0.6.0)
309
- wikipedia-client (1.17.0)
310
- addressable (~> 2.7)
311
- yard (0.9.34)
312
- zeitwerk (2.6.8)
313
-
314
- PLATFORMS
315
- arm64-darwin-21
316
- arm64-darwin-22
317
- ruby
318
- x86_64-darwin-19
319
- x86_64-darwin-22
320
- x86_64-linux
321
-
322
- DEPENDENCIES
323
- ai21 (~> 0.2.1)
324
- anthropic (~> 0.1.0)
325
- chroma-db (~> 0.3.0)
326
- cohere-ruby (~> 0.9.5)
327
- docx (~> 0.8.0)
328
- dotenv-rails (~> 2.7.6)
329
- eqn (~> 1.6.5)
330
- google_palm_api (~> 0.1.2)
331
- google_search_results (~> 2.0.0)
332
- hnswlib (~> 0.8.1)
333
- hugging-face (~> 0.3.4)
334
- langchainrb!
335
- llama_cpp
336
- milvus (~> 0.9.0)
337
- nokogiri (~> 1.13)
338
- open-weather-ruby-client (~> 0.3.0)
339
- pdf-reader (~> 1.4)
340
- pg (~> 1.5)
341
- pgvector (~> 0.2.1)
342
- pinecone (~> 0.1.6)
343
- pry-byebug (~> 3.10.0)
344
- qdrant-ruby (~> 0.9.0)
345
- rake (~> 13.0)
346
- rdiscount
347
- replicate-ruby (~> 0.2.2)
348
- roo (~> 2.10.0)
349
- rspec (~> 3.0)
350
- rubocop
351
- ruby-openai (~> 4.1.0)
352
- safe_ruby (~> 1.0.4)
353
- sequel (~> 5.68.0)
354
- standardrb
355
- weaviate-ruby (~> 0.8.3)
356
- wikipedia-client (~> 1.17.0)
357
- yard
358
-
359
- BUNDLED WITH
360
- 2.3.22
data/Rakefile DELETED
@@ -1,17 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require "bundler/gem_tasks"
4
- require "rspec/core/rake_task"
5
- require "standard/rake"
6
- require "yard"
7
-
8
- RSpec::Core::RakeTask.new(:spec)
9
-
10
- task default: :spec
11
-
12
- Rake::Task["spec"].enhance do
13
- Rake::Task["standard:fix"].invoke
14
- end
15
-
16
- YARD::Rake::YardocTask.new do |t|
17
- end