interface VectorIngestionConfigurationProperty
Language | Type name |
---|---|
.NET | Amazon.CDK.aws_bedrock.CfnDataSource.VectorIngestionConfigurationProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsbedrock#CfnDataSource_VectorIngestionConfigurationProperty |
Java | software.amazon.awscdk.services.bedrock.CfnDataSource.VectorIngestionConfigurationProperty |
Python | aws_cdk.aws_bedrock.CfnDataSource.VectorIngestionConfigurationProperty |
TypeScript | aws-cdk-lib » aws_bedrock » CfnDataSource » VectorIngestionConfigurationProperty |
Contains details about how to ingest the documents in a data source.
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 vectorIngestionConfigurationProperty: bedrock.CfnDataSource.VectorIngestionConfigurationProperty = {
chunkingConfiguration: {
chunkingStrategy: 'chunkingStrategy',
// the properties below are optional
fixedSizeChunkingConfiguration: {
maxTokens: 123,
overlapPercentage: 123,
},
hierarchicalChunkingConfiguration: {
levelConfigurations: [{
maxTokens: 123,
}],
overlapTokens: 123,
},
semanticChunkingConfiguration: {
breakpointPercentileThreshold: 123,
bufferSize: 123,
maxTokens: 123,
},
},
customTransformationConfiguration: {
intermediateStorage: {
s3Location: {
uri: 'uri',
},
},
transformations: [{
stepToApply: 'stepToApply',
transformationFunction: {
transformationLambdaConfiguration: {
lambdaArn: 'lambdaArn',
},
},
}],
},
parsingConfiguration: {
parsingStrategy: 'parsingStrategy',
// the properties below are optional
bedrockFoundationModelConfiguration: {
modelArn: 'modelArn',
// the properties below are optional
parsingPrompt: {
parsingPromptText: 'parsingPromptText',
},
},
},
};
Properties
Name | Type | Description |
---|---|---|
chunking | IResolvable | Chunking | Details about how to chunk the documents in the data source. |
custom | IResolvable | Custom | A custom document transformer for parsed data source documents. |
parsing | IResolvable | Parsing | A custom parser for data source documents. |
chunkingConfiguration?
Type:
IResolvable
|
Chunking
(optional)
Details about how to chunk the documents in the data source.
A chunk refers to an excerpt from a data source that is returned when the knowledge base that it belongs to is queried.
customTransformationConfiguration?
Type:
IResolvable
|
Custom
(optional)
A custom document transformer for parsed data source documents.
parsingConfiguration?
Type:
IResolvable
|
Parsing
(optional)
A custom parser for data source documents.