@cdklabs/generative-ai-cdk-constructs • Docs
@cdklabs/generative-ai-cdk-constructs / bedrock / CustomTransformation
abstract
CustomTransformationRepresents 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
abstract
configuration:CustomTransformationConfigurationProperty
The CloudFormation property representation of this custom transformation configuration.
abstract
generatePolicyStatements(scope
):PolicyStatement
[]
• scope: Construct
PolicyStatement
[]
static
lambda(props
):CustomTransformation
This feature allows you to use a Lambda function to inject your own logic into the knowledge base ingestion process.
• props: LambdaCustomTransformationProps
https://github.com/aws-samples/amazon-bedrock-samples/blob/main/knowledge-bases/features-examples/02-optimizing-accuracy-retrieved-results/advanced_chunking_options.ipynb