Generate vector embeddings for the documents uploaded to S3
This pattern creates an S3 bucket with event notification enabled to invoke a function when there is a new object. The Lambda function is integrated with Bedrock Titan Embedding Model.
When there is a new object in the S3 bucket, the S3 put request creates an event to the Lambda function that extracts the content from the object and calls Bedrock Titan Embedding Model.
The function returns the vector embeddings of the document as JSON.