Sha256: 0ece26bfa774f26c2743981822ae0e56d13cdb21fd932f6a325c49f2c7fbb58e

Contents?: true

Size: 510 Bytes

Versions: 10

Compression:

Stored size: 510 Bytes

Contents

# frozen_string_literal: true

module LangchainrbRails
  class Config
    # This class is used to configure the gem config inside Rails apps, in the `config/initializers/langchainrb_rails.rb` file.
    #
    # Langchain is configured in the following way:
    #     LangchainrbRails.configure do |config|
    #       config.vectorsearch = ...
    #     end
    attr_accessor :vectorsearch

    def initialize
      # Define the defaults for future configuration here
      @vectorsearch = {}
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
langchainrb_rails-0.1.12 lib/langchainrb_rails/config.rb
langchainrb_rails-0.1.11 lib/langchainrb_rails/config.rb
langchainrb_rails-0.1.9 lib/langchainrb_rails/config.rb
langchainrb_rails-0.1.8 lib/langchainrb_rails/config.rb
langchainrb_rails-0.1.7 lib/langchainrb_rails/config.rb
langchainrb_rails-0.1.6 lib/langchainrb_rails/config.rb
langchainrb_rails-0.1.5 lib/langchainrb_rails/config.rb
langchainrb_rails-0.1.4 lib/langchainrb_rails/config.rb
langchainrb_rails-0.1.3 lib/langchainrb_rails/config.rb
langchainrb_rails-0.1.2 lib/langchainrb_rails/config.rb