interface ParsingConfigurationProperty
Language | Type name |
---|---|
![]() | Amazon.CDK.aws_bedrock.CfnDataSource.ParsingConfigurationProperty |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsbedrock#CfnDataSource_ParsingConfigurationProperty |
![]() | software.amazon.awscdk.services.bedrock.CfnDataSource.ParsingConfigurationProperty |
![]() | aws_cdk.aws_bedrock.CfnDataSource.ParsingConfigurationProperty |
![]() | aws-cdk-lib » aws_bedrock » CfnDataSource » ParsingConfigurationProperty |
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 { aws_bedrock as bedrock } from 'aws-cdk-lib';
const parsingConfigurationProperty: bedrock.CfnDataSource.ParsingConfigurationProperty = {
parsingStrategy: 'parsingStrategy',
// the properties below are optional
bedrockDataAutomationConfiguration: {
parsingModality: 'parsingModality',
},
bedrockFoundationModelConfiguration: {
modelArn: 'modelArn',
// the properties below are optional
parsingModality: 'parsingModality',
parsingPrompt: {
parsingPromptText: 'parsingPromptText',
},
},
};
Properties
Name | Type | Description |
---|---|---|
parsing | string | The parsing strategy for the data source. |
bedrock | IResolvable | Bedrock | If you specify BEDROCK_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. |
bedrock | IResolvable | Bedrock | If you specify BEDROCK_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. |
parsingStrategy
Type:
string
The parsing strategy for the data source.
bedrockDataAutomationConfiguration?
Type:
IResolvable
|
Bedrock
(optional)
If you specify BEDROCK_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.
bedrockFoundationModelConfiguration?
Type:
IResolvable
|
Bedrock
(optional)
If you specify BEDROCK_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.