interface ParsingConfigurationProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.Wisdom.Mixins.CfnKnowledgeBasePropsMixin.ParsingConfigurationProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awswisdom/mixins#CfnKnowledgeBasePropsMixin_ParsingConfigurationProperty |
Java | software.amazon.awscdk.mixins.preview.services.wisdom.mixins.CfnKnowledgeBasePropsMixin.ParsingConfigurationProperty |
Python | aws_cdk.mixins_preview.aws_wisdom.mixins.CfnKnowledgeBasePropsMixin.ParsingConfigurationProperty |
TypeScript | @aws-cdk/mixins-preview » aws_wisdom » mixins » CfnKnowledgeBasePropsMixin » ParsingConfigurationProperty |
Settings for parsing document contents.
By default, the service converts the contents of each document into text before splitting it into chunks. To improve processing of PDF files with tables and images, you can configure the data source to convert the pages of text into images and use a model to describe the contents of each page.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins as wisdom_mixins } from '@aws-cdk/mixins-preview/aws-wisdom';
const parsingConfigurationProperty: wisdom_mixins.CfnKnowledgeBasePropsMixin.ParsingConfigurationProperty = {
bedrockFoundationModelConfiguration: {
modelArn: 'modelArn',
parsingPrompt: {
parsingPromptText: 'parsingPromptText',
},
},
parsingStrategy: 'parsingStrategy',
};
Properties
| Name | Type | Description |
|---|---|---|
| bedrock | IResolvable | Bedrock | Settings for a foundation model used to parse documents for a data source. |
| parsing | string | The parsing strategy for the data source. |
bedrockFoundationModelConfiguration?
Type:
IResolvable | Bedrock
(optional)
Settings for a foundation model used to parse documents for a data source.
parsingStrategy?
Type:
string
(optional)
The parsing strategy for the data source.

.NET
Go
Java
Python
TypeScript