Interface CfnDataSource.ParsingConfigurationProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnDataSource.ParsingConfigurationProperty.Jsii$Proxy
Enclosing class:
CfnDataSource

@Stability(Stable) public static interface CfnDataSource.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_AUTOMATION or BEDROCK_FOUNDATION_MODEL and 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.services.bedrock.*;
 ParsingConfigurationProperty parsingConfigurationProperty = ParsingConfigurationProperty.builder()
         .parsingStrategy("parsingStrategy")
         // the properties below are optional
         .bedrockDataAutomationConfiguration(BedrockDataAutomationConfigurationProperty.builder()
                 .parsingModality("parsingModality")
                 .build())
         .bedrockFoundationModelConfiguration(BedrockFoundationModelConfigurationProperty.builder()
                 .modelArn("modelArn")
                 // the properties below are optional
                 .parsingModality("parsingModality")
                 .parsingPrompt(ParsingPromptProperty.builder()
                         .parsingPromptText("parsingPromptText")
                         .build())
                 .build())
         .build();
 

See Also: