[{"data":1,"prerenderedAt":67},["ShallowReactive",2],{"pattern-s3-lambda-bedrock-cdk-python":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":10,"deploy":12,"description":15,"extension":16,"framework":17,"gitHub":18,"highlight":6,"introBox":24,"language":30,"level":31,"meta":32,"patternArch":33,"resources":51,"s3URL":6,"services":6,"stem":62,"testing":63,"videoId":6,"__hash__":66},"patterns\u002Fpatterns\u002Fs3-lambda-bedrock-cdk-python.json","Generate vector embeddings using Amazon Bedrock, Amazon S3 and AWS Lambda",null,{"text":8},[9],"Delete the stack: \u003Ccode>cdk destroy\u003C\u002Fcode>.",[11],"content\u002Fcontributors\u002Fdinesh-balaaji-prabakaran.json",{"text":13},[14],"cdk deploy","This pattern facilitates the extraction of vector embeddings using Amazon Bedrock from input files uploaded to S3, triggered by a Lambda function.","json","AWS CDK",{"template":19},{"repoURL":20,"templateURL":21,"projectFolder":22,"templateFile":23},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fs3-lambda-bedrock-cdk-python","serverless-patterns\u002Fs3-lambda-bedrock-cdk-python","s3-lambda-bedrock-cdk-python","s3_lambda_bedrock_cdk_python\u002Fs3_lambda_bedrock_cdk_python_stack.py",{"headline":25,"text":26},"How it works",[27,28,29],"This pattern creates a Amazon S3 bucket, a Lambda function, which will be used to get vector embeddings for the document uploaded into Amazon S3 using Amazon Bedrock.","The Lambda function is triggered by S3 'OBJECT_CREATED' events. The Lambda function can optionally apply business logic to the S3 object. After processing, the Lambda function invokes the embedding model form Amazon Bedrock to get the vector embeddings, which is useful for LLM RAG applications.","Important: this application uses various AWS services and there are costs associated with these services after the Free Tier usage - please see the [AWS Pricing page](https:\u002F\u002Faws.amazon.com\u002Fpricing\u002F) for details. You are responsible for any AWS costs incurred. No warranty is implied in this example.","Python","200",{},{"icon1":34,"icon2":39,"icon3":42,"line1":46,"line2":49},{"x":35,"y":36,"service":37,"label":38},20,50,"s3","Amazon S3",{"x":36,"y":36,"service":40,"label":41},"lambda","AWS Lambda",{"x":43,"y":36,"service":44,"label":45},80,"bedrock","Amazon Bedrock",{"from":47,"to":48},"icon1","icon2",{"from":48,"to":50},"icon3",{"bullets":52},[53,56,59],{"text":54,"link":55},"Getting started with the AWS CDK","https:\u002F\u002Fdocs.aws.amazon.com\u002Fcdk\u002Fv2\u002Fguide\u002Fgetting_started.html",{"text":57,"link":58},"Using an amazon S3 trigger to invoke a Lambda function","https:\u002F\u002Fdocs.aws.amazon.com\u002Flambda\u002Flatest\u002Fdg\u002Fwith-s3-example.html",{"text":60,"link":61},"Getting started with Amazon Titan Text Embeddings in Amazon Bedrock","https:\u002F\u002Faws.amazon.com\u002Fblogs\u002Fmachine-learning\u002Fgetting-started-with-amazon-titan-text-embeddings\u002F","patterns\u002Fs3-lambda-bedrock-cdk-python",{"text":64},[65],"See the GitHub repo for detailed testing instructions.","AbgKkt6D2RQ0GZSpsojbJaUPZo6KKAUDWQN0JVfrnaA",1779273338591]