Menu

Post image 1
Post image 2
Post image 3
Post image 4
Post image 5
Post image 6
Post image 7
Post image 8
1 / 8
0

AWS Bedrock KB with Glue data catalog

DEV Community·Shakir·29 days ago
#mubGsL3m
#aws#sql#claude#ai#fullscreen#enter
Reading 0:00
15s threshold

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 =…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.

Read More