Class: Deepsearch::RubyLLMConfig
- Inherits:
-
Object
- Object
- Deepsearch::RubyLLMConfig
- Defined in:
- lib/deepsearch/configuration.rb
Overview
Encapsulates configuration options for the underlying ‘ruby_llm` gem. This provides a clean namespace for LLM settings within Deepsearch’s configuration.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ RubyLLMConfig
constructor
A new instance of RubyLLMConfig.
Constructor Details
#initialize ⇒ RubyLLMConfig
Returns a new instance of RubyLLMConfig.
47 48 49 50 51 52 |
# File 'lib/deepsearch/configuration.rb', line 47 def initialize @default_model = "gpt-4o-mini" @default_embedding_model = "text-embedding-3-small" @request_timeout = 30 # seconds @log_assume_model_exists = false end |
Class Method Details
.reset_supported_attributes! ⇒ Object
22 23 24 |
# File 'lib/deepsearch/configuration.rb', line 22 def self.reset_supported_attributes! @supported_attributes = nil end |
.supported_attributes ⇒ Object
18 19 20 |
# File 'lib/deepsearch/configuration.rb', line 18 def self.supported_attributes @supported_attributes ||= discover_attributes end |