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

Class Method Details

.configConfig

Returns The global configuration object.

Returns:

  • (Config)

    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

Yields:



37
38
39
# File 'lib/langchainrb_rails.rb', line 37

def configure
  yield(config)
end