You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
closing as duplicate of #587
The new chunking strategies and associated parameters (see here) are available in cfn but not in cdk yet. They should be added in an upcoming release, we will then implement it.
Describe the feature
It would be useful to add support to hierarchical and semantic chunking, besides the already supported, fixed size.
generative-ai-cdk-constructs/src/cdk-lib/bedrock/s3-data-source.ts
Lines 32 to 50 in 16e15cd
https://docs.aws.amazon.com/bedrock/latest/userguide/kb-chunking-parsing.html#kb-hiearchical-chunking
https://docs.aws.amazon.com/bedrock/latest/userguide/kb-chunking-parsing.html#kb-semantic-chunking
Use Case
Semantic chunking improves retrieval accuracy by focusing on the semantic content rather than just syntactic structure.
Proposed Solution
modify
s3-data-source.ts
moduleOther Information
Semantic and Hierarchical Chunking are already supported by L1 construct
https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_bedrock.CfnDataSource.ChunkingConfigurationProperty.html#chunkingstrategy
Acknowledgements
The text was updated successfully, but these errors were encountered: