Hi 👋, In this post we shall explore Bedrock's structured KB with this architecture: Upload CSVs to S3 > SNS Queue > Crawl data with Glue > Query with Redshift > Bedrock KB > Query with LLM . Setup Let's do some of this with code. Let's get started. Clone the repo and switch to the project directory. git clone git@github.com:networkandcode/networkandcode.github.io.git cd structured-kb-demo/ Enter fullscreen mode Exit fullscreen mode Do a uv sync. uv sync Enter fullscreen mode Exit fullscreen mode Setup environment variables. $ cat .env AWS_ACCOUNT_ID = AWS_ACCESS_KEY_ID = AWS_REGION = ap-south-1 AWS_SECRET_ACCESS_KEY = BEDROCK_KB = StructKb BEDROCK_KB_IAM_POLICY = StructKbIamPolicy BEDROCK_KB_IAM_ROLE = StructKbIamRole GLUE_CRAWLER = struct-kb-glue-crawler GLUE_CRAWLER_IAM_POLICY = StructKbGlueCrawlerIamPolicy GLUE_CRAWLER_IAM_ROLE = StructKbGlueCrawlerIamRole GLUE_DB = struct-kb-glue-db REDSHIFT_IAM_ROLE = StructKbRedshiftIamRole REDSHIFT_NAMESPACE = struct-kb-rs-ns REDSHIFT_WORKGROUP =…