Class: LangchainrbRails::Config
- Inherits:
-
Object
- Object
- LangchainrbRails::Config
- Defined in:
- lib/langchainrb_rails/config.rb
Instance Attribute Summary collapse
-
#vectorsearch ⇒ Object
This class is used to configure the gem config inside Rails apps, in the ‘config/initializers/langchainrb_rails.rb` file.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
13 14 15 16 |
# File 'lib/langchainrb_rails/config.rb', line 13 def initialize # Define the defaults for future configuration here @vectorsearch = {} end |
Instance Attribute Details
#vectorsearch ⇒ Object
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
11 12 13 |
# File 'lib/langchainrb_rails/config.rb', line 11 def vectorsearch @vectorsearch end |