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
orBEDROCK_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:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnDataSource.ParsingConfigurationProperty
static final class
An implementation forCfnDataSource.ParsingConfigurationProperty
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
default Object
If you specifyBEDROCK_DATA_AUTOMATION
as the parsing strategy for ingesting your data source, use this object to modify configurations for using the Amazon Bedrock Data Automation parser.default Object
If you specifyBEDROCK_FOUNDATION_MODEL
as the parsing strategy for ingesting your data source, use this object to modify configurations for using a foundation model to parse documents.The parsing strategy for the data source.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getParsingStrategy
The parsing strategy for the data source.- See Also:
-
getBedrockDataAutomationConfiguration
If you specifyBEDROCK_DATA_AUTOMATION
as the parsing strategy for ingesting your data source, use this object to modify configurations for using the Amazon Bedrock Data Automation parser.- See Also:
-
getBedrockFoundationModelConfiguration
If you specifyBEDROCK_FOUNDATION_MODEL
as the parsing strategy for ingesting your data source, use this object to modify configurations for using a foundation model to parse documents.- See Also:
-
builder
-