1 Answer
- Newest
- Most votes
- Most comments
0
Hi,
I think what you want to do is to add a Lambda in the data ingestion KB as per https://docs.aws.amazon.com/bedrock/latest/userguide/kb-custom-transformation.html
As you can see the output format of this Lambda allows you to customize the metadata to adapt them to our use case
{
"outputFiles": [{
"originalFileLocation": {
"type": "S3",
"s3_location": {
"uri": "string"
}
},
"fileMetadata": {
"key1": "value1",
"key2": "value2"
},
"contentBatches": [{
"key": "string"
}]
}]
}
Best,
Didier
