Interface CfnDataSourcePropsMixin.ParsingConfigurationProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnDataSourcePropsMixin.ParsingConfigurationProperty.Jsii$Proxy
- Enclosing class:
CfnDataSourcePropsMixin
@Stability(Stable)
public static interface CfnDataSourcePropsMixin.ParsingConfigurationProperty
extends software.amazon.jsii.JsiiSerializable
Settings for parsing document contents.
If you exclude this field, the default parser converts the contents of each document into text before splitting it into chunks. Specify the parsing strategy to use in the parsingStrategy field and include the relevant configuration, or omit it to use the Amazon Bedrock default parser. For more information, see Parsing options for your data source .
If you specify
BEDROCK_DATA_AUTOMATIONorBEDROCK_FOUNDATION_MODELand it fails to parse a file, the Amazon Bedrock default parser will be used instead.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.cfnpropertymixins.services.bedrock.*;
ParsingConfigurationProperty parsingConfigurationProperty = ParsingConfigurationProperty.builder()
.bedrockDataAutomationConfiguration(BedrockDataAutomationConfigurationProperty.builder()
.parsingModality("parsingModality")
.build())
.bedrockFoundationModelConfiguration(BedrockFoundationModelConfigurationProperty.builder()
.modelArn("modelArn")
.parsingModality("parsingModality")
.parsingPrompt(ParsingPromptProperty.builder()
.parsingPromptText("parsingPromptText")
.build())
.build())
.parsingStrategy("parsingStrategy")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnDataSourcePropsMixin.ParsingConfigurationPropertystatic final classAn implementation forCfnDataSourcePropsMixin.ParsingConfigurationProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default ObjectIf you specifyBEDROCK_DATA_AUTOMATIONas the parsing strategy for ingesting your data source, use this object to modify configurations for using the Amazon Bedrock Data Automation parser.default ObjectIf you specifyBEDROCK_FOUNDATION_MODELas the parsing strategy for ingesting your data source, use this object to modify configurations for using a foundation model to parse documents.default StringThe parsing strategy for the data source.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getBedrockDataAutomationConfiguration
If you specifyBEDROCK_DATA_AUTOMATIONas the parsing strategy for ingesting your data source, use this object to modify configurations for using the Amazon Bedrock Data Automation parser.Returns union: either
IResolvableorCfnDataSourcePropsMixin.BedrockDataAutomationConfigurationProperty- See Also:
-
getBedrockFoundationModelConfiguration
If you specifyBEDROCK_FOUNDATION_MODELas the parsing strategy for ingesting your data source, use this object to modify configurations for using a foundation model to parse documents.Returns union: either
IResolvableorCfnDataSourcePropsMixin.BedrockFoundationModelConfigurationProperty- See Also:
-
getParsingStrategy
The parsing strategy for the data source.- See Also:
-
builder
-