Module: LangchainrbRails
- Defined in:
- lib/langchainrb_rails.rb,
lib/langchainrb_rails/config.rb,
lib/langchainrb_rails/railtie.rb,
lib/langchainrb_rails/version.rb,
lib/langchainrb_rails/prompting.rb,
lib/langchainrb_rails/active_record/hooks.rb,
lib/langchainrb_rails/generators/langchainrb_rails/base_generator.rb,
lib/langchainrb_rails/generators/langchainrb_rails/chroma_generator.rb,
lib/langchainrb_rails/generators/langchainrb_rails/prompt_generator.rb,
lib/langchainrb_rails/generators/langchainrb_rails/qdrant_generator.rb,
lib/langchainrb_rails/generators/langchainrb_rails/pgvector_generator.rb,
lib/langchainrb_rails/generators/langchainrb_rails/pinecone_generator.rb,
lib/langchainrb_rails/generators/langchainrb_rails/assistant_generator.rb
Defined Under Namespace
Modules: ActiveRecord, Generators, Prompting Classes: Config, Error, Railtie
Constant Summary collapse
- VERSION =
"0.1.12"
Class Method Summary collapse
-
.config ⇒ Config
The global configuration object.
-
.configure {|config| ... } ⇒ Object
Configures global settings for LangchainrbRails LangchainrbRails.configure do |config| config.vectorsearch = …
Class Method Details
.config ⇒ Config
Returns The global configuration object.
42 43 44 |
# File 'lib/langchainrb_rails.rb', line 42 def config @_config ||= Config.new end |
.configure {|config| ... } ⇒ Object
Configures global settings for LangchainrbRails
LangchainrbRails.configure do |config|
config.vectorsearch = ...
end
37 38 39 |
# File 'lib/langchainrb_rails.rb', line 37 def configure yield(config) end |