Class: RelevantChunks::Configuration
- Inherits:
-
Object
- Object
- RelevantChunks::Configuration
- Defined in:
- lib/relevant_chunks.rb
Overview
Configuration class for RelevantChunks
Instance Attribute Summary collapse
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#max_tokens ⇒ Object
Returns the value of attribute max_tokens.
-
#overlap_size ⇒ Object
Returns the value of attribute overlap_size.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
Initialize a new Configuration instance.
Constructor Details
#initialize ⇒ Configuration
Initialize a new Configuration instance
44 45 46 47 |
# File 'lib/relevant_chunks.rb', line 44 def initialize @max_tokens = 1000 @overlap_size = 100 end |
Instance Attribute Details
#api_key ⇒ Object
Returns the value of attribute api_key.
39 40 41 |
# File 'lib/relevant_chunks.rb', line 39 def api_key @api_key end |
#max_tokens ⇒ Object
Returns the value of attribute max_tokens.
39 40 41 |
# File 'lib/relevant_chunks.rb', line 39 def max_tokens @max_tokens end |
#overlap_size ⇒ Object
Returns the value of attribute overlap_size.
39 40 41 |
# File 'lib/relevant_chunks.rb', line 39 def overlap_size @overlap_size end |