AI Cloud Architect

Build a semantic layer for agentic AI with EDB Postgres AI and Amazon Bedrock AgentCore

AWSHow-to by Rajesh Nagpal, Brady Paterson, Henning Els, Ian Kinsey, JP Boreddy, Saunak Chandra and Sahil ThaparAWS 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.

Read the original (opens the source's page in a new tab)

AI: Summary

What it is

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.

The same at other vendors