Build a semantic layer for agentic AI with EDB Postgres AI and Amazon Bedrock AgentCore
AWS•How-to••by Rajesh Nagpal, Brady Paterson, Henning Els, Ian Kinsey, JP Boreddy, Saunak Chandra and Sahil Thapar•AWS Artificial Intelligence Blog
Learn how to build a governed semantic layer for agentic AI inside EDB Postgres AI and query it from a Strands Agents agent on Amazon Bedrock AgentCore. Business meaning, join paths, and access control all live in Postgres, with GRANT and row-level security enforcing what each agent can read.
A Postgres-native semantic layer (AIDB SemKB) indexes schema comments, foreign-key join paths and semantic aliases, and an AgentCore agent queries it through an MCP endpoint with Postgres grants enforcing access.
Who it is for
Teams running Strands agents on Bedrock AgentCore against live Postgres data who need governed text-to-SQL with column-level access control.
Key points
Access is enforced by Postgres GRANT and row-level security, so a restricted role gets a permission-denied error on the ssn column regardless of the prompt.
Connection is via an ALB in front of the AIDB edb-endpoints MCP server, registered as an AgentCore Gateway MCP target.
Query results and the governance rerun are illustrated on the Stardog C360 sample dataset.
AI:Both let agents query PostgreSQL data through MCP, but Azure does it as a native Foundry integration while the ITEM uses a Postgres-native semantic layer.
Related posts
AWS•How-to••by Edwin Sandanaraj, Charlie Lee and Hasan Poonawala•AWS Artificial Intelligence Blog
AI:A reference architecture where HealthOmics annotates VCF files with VEP, S3 Tables stores them as Iceberg, and a Strands agent on AgentCore Runtime answers natural-language genomic queries.
AI:A reference architecture shows a LangChain orchestrator on ECS calling a Strands agent on Bedrock AgentCore over A2A, with OAuth in both directions and no shared SDK or secrets.
AI:TCS built an agentic test orchestrator on Bedrock AgentCore that turns requirements into executable, governed tests for BFSI clients, with specialized agents and per-tenant isolation.