[{"data":1,"prerenderedAt":64},["ShallowReactive",2],{"pattern-s3-lambda-bedrock-js-sam":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":10,"deploy":13,"description":17,"extension":18,"framework":19,"gitHub":20,"highlight":6,"introBox":26,"language":30,"level":31,"meta":32,"patternArch":33,"resources":51,"s3URL":6,"services":6,"stem":59,"testing":60,"videoId":6,"__hash__":63},"patterns\u002Fpatterns\u002Fs3-lambda-bedrock-js-sam.json","Amazon S3 to AWS Lambda to Amazon Bedrock using AWS SAM",null,{"text":8},[9],"sam delete",[11,12],"content\u002Fcontributors\u002Fachintya-veer-singh.json","content\u002Fcontributors\u002Frohit-raj.json",{"text":14},[15,16],"sam build","sam deploy --guided","This pattern uses AWS Lambda to generate vector embeddings from text data uploaded to S3 using Amazon Bedrock.","json","AWS SAM",{"template":21},{"repoURL":22,"templateURL":23,"projectFolder":24,"templateFile":25},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fs3-lambda-bedrock-js-sam","serverless-patterns\u002Fs3-lambda-bedrock-js-sam","s3-lambda-bedrock-js-sam","template.yaml",{"headline":27,"text":28},"How it works",[29],"When a new object is uploaded to an S3 bucket, S3 detects the putObject event and invokes a Lambda function asynchronously, passing details about the uploaded object. The Lambda function then retrieves the object's content and sends it to the Amazon Bedrock Titan Embedding service, which generates vector embeddings representing the content's meaning and context.","Node.js","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,55,57],{"text":38,"link":54},"https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonS3\u002Flatest\u002Fuserguide\u002FWelcome.html",{"text":41,"link":56},"https:\u002F\u002Fdocs.aws.amazon.com\u002Flambda\u002Flatest\u002Fdg\u002Fwelcome.html",{"text":45,"link":58},"https:\u002F\u002Fdocs.aws.amazon.com\u002Fbedrock\u002Flatest\u002Fuserguide\u002Fwhat-is-bedrock.html","patterns\u002Fs3-lambda-bedrock-js-sam",{"text":61},[62],"See the GitHub repo for detailed testing instructions.","tvbvq3bYgnFrrBK2NuXd4zcaAfiLXW4x-ji95gMjito",1778846887296]