[{"data":1,"prerenderedAt":67},["ShallowReactive",2],{"pattern-s3-vectors-lambda-bedrock-cdk":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-vectors-lambda-bedrock-cdk.json","Amazon S3 Vectors with AWS Lambda and Amazon Bedrock RAG",null,{"text":8},[9],"Delete the stack: \u003Ccode>cdk destroy\u003C\u002Fcode>.",[11],"content\u002Fcontributors\u002Fnithin-chandran-r.json",{"text":13},[14],"cdk deploy","Build a serverless RAG pipeline using Amazon S3 Vectors for cost-optimized vector storage, Lambda for orchestration, and Amazon Bedrock for embeddings and generation.","json","AWS CDK",{"template":19},{"repoURL":20,"templateURL":21,"projectFolder":22,"templateFile":23},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fs3-vectors-lambda-bedrock-cdk","serverless-patterns\u002Fs3-vectors-lambda-bedrock-cdk","s3-vectors-lambda-bedrock-cdk","lib\u002Fs3-vectors-lambda-bedrock-stack.ts",{"headline":25,"text":26},"How it works",[27,28,29],"This pattern deploys two Lambda functions backed by Amazon S3 Vectors and Amazon Bedrock to implement a serverless Retrieval-Augmented Generation (RAG) pipeline.","The Ingest function takes text documents, generates vector embeddings using Bedrock Titan Embeddings V2, and stores them in an S3 vector index with metadata. The Query function takes a natural language question, embeds it, performs a similarity search against S3 Vectors, and uses Bedrock Claude to generate an answer grounded in the retrieved context.","S3 Vectors provides purpose-built, cost-optimized vector storage with sub-second query latency — no vector database infrastructure to manage.","TypeScript","300",{},{"icon1":34,"icon2":39,"icon3":42,"line1":46,"line2":49},{"x":35,"y":36,"service":37,"label":38},20,50,"s3","Amazon S3 Vectors",{"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},"Amazon S3 Vectors Documentation","https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonS3\u002Flatest\u002Fuserguide\u002Fs3-vectors.html",{"text":57,"link":58},"Getting started with S3 Vectors","https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonS3\u002Flatest\u002Fuserguide\u002Fs3-vectors-getting-started.html",{"text":60,"link":61},"Amazon Bedrock Titan Embeddings","https:\u002F\u002Fdocs.aws.amazon.com\u002Fbedrock\u002Flatest\u002Fuserguide\u002Ftitan-embedding-models.html","patterns\u002Fs3-vectors-lambda-bedrock-cdk",{"text":64},[65],"See the GitHub repo for detailed testing instructions.","iDZ6O-K5KbhA1vdierIFAw3WLwYkGhJCngCeVOQPhs8",1782815710536]