1 Answer
- Newest
- Most votes
- Most comments
1
Hi,
You may have specific chunking logic, not natively supported by Amazon Bedrock knowledge bases.
Use the no chunking strategy option, while specifying a Lambda function that contains your chunking logic.
Additionally, you'll need to specify an Amazon S3 bucket for the knowledge base to write files to be chunked
by your Lambda function.
So, if you apply the above, Bedrock will not do anything re. chunking, it will defer that to your Lambda. In that case, you can do exactly what you want in the Lambda to match your chunking strategy: in particular, if you don't want to chunk some of your files at all, you can just returned them unchanged (and also skip their chunking and vectorization if you need).
Your Lambda has to contain the logic to choose between your various (non-) chunking options
Best,
Didier
Relevant content
asked 2 years ago
asked a year ago
