Class: AWSCDK::Wisdom::CfnKnowledgeBase::HierarchicalChunkingLevelConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Wisdom::CfnKnowledgeBase::HierarchicalChunkingLevelConfigurationProperty
- Defined in:
- wisdom/cfn_knowledge_base.rb
Overview
Token settings for each layer.
Instance Attribute Summary collapse
-
#max_tokens ⇒ Numeric
readonly
The maximum number of tokens that a chunk can contain in this layer.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(max_tokens:) ⇒ HierarchicalChunkingLevelConfigurationProperty
constructor
A new instance of HierarchicalChunkingLevelConfigurationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(max_tokens:) ⇒ HierarchicalChunkingLevelConfigurationProperty
Returns a new instance of HierarchicalChunkingLevelConfigurationProperty.
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_tokens ⇒ Numeric (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_properties ⇒ Object
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_jsii ⇒ Object
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 |