Class: RelevantChunks::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/relevant_chunks.rb

Overview

Configuration class for RelevantChunks

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_keyObject

Returns the value of attribute api_key.



39
40
41
# File 'lib/relevant_chunks.rb', line 39

def api_key
  @api_key
end

#max_tokensObject

Returns the value of attribute max_tokens.



39
40
41
# File 'lib/relevant_chunks.rb', line 39

def max_tokens
  @max_tokens
end

#overlap_sizeObject

Returns the value of attribute overlap_size.



39
40
41
# File 'lib/relevant_chunks.rb', line 39

def overlap_size
  @overlap_size
end