File tree Expand file tree Collapse file tree 2 files changed +5
-9
lines changed Expand file tree Collapse file tree 2 files changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -17,11 +17,9 @@ module Generators
1717 end
1818
1919 class << self
20- # Configures global settings for Langchain
20+ # Configures global settings for LangchainrbRails
2121 # LangchainrbRails.configure do |config|
22- # config.vectorsearch = Langchain::Vectorsearch::Pgvector.new(
23- # llm: Langchain::LLM::OpenAI.new(api_key: ENV["OPENAI_API_KEY"])
24- # )
22+ # config.vectorsearch = ...
2523 # end
2624 def configure
2725 yield ( config )
Original file line number Diff line number Diff line change 22
33module LangchainrbRails
44 class Config
5- # This class is used to configure the Langchain.rb gem inside Rails apps, in the `config/initializers/langchain .rb` file.
5+ # This class is used to configure the gem config inside Rails apps, in the `config/initializers/langchainrb_rails .rb` file.
66 #
77 # Langchain is configured in the following way:
8- # Langchain.configure do |config|
9- # config.vectorsearch = Langchain::Vectorsearch::Pgvector.new(
10- # llm: Langchain::LLM::OpenAI.new(api_key: ENV["OPENAI_API_KEY"])
11- # )
8+ # LangchainrbRails.configure do |config|
9+ # config.vectorsearch = ...
1210 # end
1311 attr_accessor :vectorsearch
1412
You can’t perform that action at this time.
0 commit comments