Show / Hide Table of Contents

Class CfnDataSource.HierarchicalChunkingConfigurationProperty

Settings for hierarchical document chunking for a data source.

Inheritance
object
CfnDataSource.HierarchicalChunkingConfigurationProperty
Implements
CfnDataSource.IHierarchicalChunkingConfigurationProperty
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Amazon.CDK.AWS.Bedrock
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnDataSource.HierarchicalChunkingConfigurationProperty : CfnDataSource.IHierarchicalChunkingConfigurationProperty
Syntax (vb)
Public Class CfnDataSource.HierarchicalChunkingConfigurationProperty Implements CfnDataSource.IHierarchicalChunkingConfigurationProperty
Remarks

Hierarchical chunking splits documents into layers of chunks where the first layer contains large chunks, and the second layer contains smaller chunks derived from the first layer.

You configure the number of tokens to overlap, or repeat across adjacent chunks. For example, if you set overlap tokens to 60, the last 60 tokens in the first chunk are also included at the beginning of the second chunk. For each layer, you must also configure the maximum number of tokens in a chunk.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-hierarchicalchunkingconfiguration.html

ExampleMetadata: fixture=_generated

Examples
// The code below shows an example of how to instantiate this type.
             // The values are placeholders you should change.
             using Amazon.CDK.AWS.Bedrock;

             var hierarchicalChunkingConfigurationProperty = new HierarchicalChunkingConfigurationProperty {
                 LevelConfigurations = new [] { new HierarchicalChunkingLevelConfigurationProperty {
                     MaxTokens = 123
                 } },
                 OverlapTokens = 123
             };

Synopsis

Constructors

HierarchicalChunkingConfigurationProperty()

Settings for hierarchical document chunking for a data source.

Properties

LevelConfigurations

Token settings for each layer.

OverlapTokens

The number of tokens to repeat across chunks in the same layer.

Constructors

HierarchicalChunkingConfigurationProperty()

Settings for hierarchical document chunking for a data source.

public HierarchicalChunkingConfigurationProperty()
Remarks

Hierarchical chunking splits documents into layers of chunks where the first layer contains large chunks, and the second layer contains smaller chunks derived from the first layer.

You configure the number of tokens to overlap, or repeat across adjacent chunks. For example, if you set overlap tokens to 60, the last 60 tokens in the first chunk are also included at the beginning of the second chunk. For each layer, you must also configure the maximum number of tokens in a chunk.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-hierarchicalchunkingconfiguration.html

ExampleMetadata: fixture=_generated

Examples
// The code below shows an example of how to instantiate this type.
             // The values are placeholders you should change.
             using Amazon.CDK.AWS.Bedrock;

             var hierarchicalChunkingConfigurationProperty = new HierarchicalChunkingConfigurationProperty {
                 LevelConfigurations = new [] { new HierarchicalChunkingLevelConfigurationProperty {
                     MaxTokens = 123
                 } },
                 OverlapTokens = 123
             };

Properties

LevelConfigurations

Token settings for each layer.

public object LevelConfigurations { get; set; }
Property Value

object

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-hierarchicalchunkingconfiguration.html#cfn-bedrock-datasource-hierarchicalchunkingconfiguration-levelconfigurations

Type union: either IResolvable or (either IResolvable or CfnDataSource.IHierarchicalChunkingLevelConfigurationProperty)[]

OverlapTokens

The number of tokens to repeat across chunks in the same layer.

public double OverlapTokens { get; set; }
Property Value

double

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-datasource-hierarchicalchunkingconfiguration.html#cfn-bedrock-datasource-hierarchicalchunkingconfiguration-overlaptokens

Implements

CfnDataSource.IHierarchicalChunkingConfigurationProperty
Back to top Generated by DocFX