@cdklabs/generative-ai-cdk-constructs
@cdklabs/generative-ai-cdk-constructs / bedrock / CustomTransformation
Represents a custom transformation configuration for a data source ingestion.
https://docs.aws.amazon.com/bedrock/latest/userguide/kb-chunking-parsing.html#kb-custom-transformation
new CustomTransformation():
CustomTransformation
CustomTransformation
abstractconfiguration:CustomTransformationConfigurationProperty
The CloudFormation property representation of this custom transformation configuration.
abstractgeneratePolicyStatements(scope):PolicyStatement[]
Construct
PolicyStatement[]
staticlambda(props):CustomTransformation
This feature allows you to use a Lambda function to inject your own logic into the knowledge base ingestion process.
LambdaCustomTransformationProps
CustomTransformation
https://github.com/aws-samples/amazon-bedrock-samples/blob/main/knowledge-bases/features-examples/02-optimizing-accuracy-retrieved-results/advanced_chunking_options.ipynb