Class: AWSCDK::Wisdom::CfnKnowledgeBase::HierarchicalChunkingLevelConfigurationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
wisdom/cfn_knowledge_base.rb

Overview

Token settings for each layer.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(max_tokens:) ⇒ HierarchicalChunkingLevelConfigurationProperty

Returns a new instance of HierarchicalChunkingLevelConfigurationProperty.

Parameters:

  • max_tokens (Numeric)

    The maximum number of tokens that a chunk can contain in this layer.



944
945
946
947
# File 'wisdom/cfn_knowledge_base.rb', line 944

def initialize(max_tokens:)
  @max_tokens = max_tokens
  Jsii::Type.check_type(@max_tokens, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "maxTokens")
end

Instance Attribute Details

#max_tokensNumeric (readonly)

The maximum number of tokens that a chunk can contain in this layer.



953
954
955
# File 'wisdom/cfn_knowledge_base.rb', line 953

def max_tokens
  @max_tokens
end

Class Method Details

.jsii_propertiesObject



955
956
957
958
959
# File 'wisdom/cfn_knowledge_base.rb', line 955

def self.jsii_properties
  {
    :max_tokens => "maxTokens",
  }
end

Instance Method Details

#to_jsiiObject



961
962
963
964
965
966
967
# File 'wisdom/cfn_knowledge_base.rb', line 961

def to_jsii
  result = {}
  result.merge!({
    "maxTokens" => @max_tokens,
  })
  result.compact
end