[{"data":1,"prerenderedAt":65},["ShallowReactive",2],{"pattern-kendra-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":52,"s3URL":6,"services":6,"stem":60,"testing":61,"videoId":6,"__hash__":64},"patterns\u002Fpatterns\u002Fkendra-bedrock-cdk-python.json","AWS Lambda from Amazon Kendra to Amazon Bedrock",null,{"text":8},[9],"Delete the stack: \u003Ccode>cdk destroy\u003C\u002Fcode>.",[11],"content\u002Fcontributors\u002Fkruthi-jayasimha-rao.json",{"text":13},[14],"cdk deploy BedrockKendraStack --parameters S3DSBucketName=${YourS3BucketName}","AWS Lambda function to retrieve documents from an Amazon Kendra index and pass it to Amazon Bedrock for a generated response.","json","AWS CDK",{"template":19},{"repoURL":20,"templateURL":21,"projectFolder":22,"templateFile":23},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fkendra-bedrock-cdk-python","serverless-patterns\u002Fkendra-bedrock-cdk-python","kendra-bedrock-cdk-python","app.py",{"headline":25,"text":26},"How it works",[27,28,29],"AWS Lambda: Two AWS Lambda functions are created. DataSourceSync Lambda function crawls and indexes the content. InvokeBedrockLambda AWS Lambda function that invokes the specified model by passing the retrieved content from Amazon Kendra as context to the generative AI model.","Amazon Kendra: An Amazon Kendra index is created with a S3 data source. When a the InvokeBedrockLambda function is called, documents are retrieved from the Amazon Kendra index.","Amazon Bedrock: Documents retrieved from the Amazon Kendra index are sent to Amazon Bedrock which responds with a generated response.","Python","200",{},{"icon1":34,"icon2":39,"icon3":42,"line1":46,"line2":50},{"x":35,"y":36,"service":37,"label":38},20,50,"kendra","Amazon Kendra",{"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,"label":49},"icon1","icon2","",{"from":48,"to":51,"label":49},"icon3",{"bullets":53},[54,57],{"text":55,"link":56},"Amazon Kendra - Enterprise Search Engine","https:\u002F\u002Faws.amazon.com\u002Fkendra\u002F",{"text":58,"link":59},"Amazon Bedrock - Generative AI","https:\u002F\u002Faws.amazon.com\u002Fbedrock\u002F","patterns\u002Fkendra-bedrock-cdk-python",{"text":62},[63],"See the GitHub repo for detailed testing instructions.","3CNdw2FWES_3DYweccr39CWwDFUHZJKq8eD4GTmwT00",1778846885689]