AIToday
Large Language ModelsAI Business & IndustryAmazon AI BlogPublished: Nov 4, 2026, 04:00 JST

EDB Postgres AI builds semantic layer on Amazon Bedrock AgentCore

Send on LINE
EDB Postgres AI builds semantic layer on Amazon Bedrock AgentCore

3 Key Points

  1. What happened

    EDB Postgres AI demonstrates a semantic layer built as an AIDB extension inside the operational Postgres database, using COMMENT statements, foreign keys, and Postgres grants. An agent on Amazon Bedrock AgentCore answers customer 360 questions, and a single column comment on purchases.price changes a top-customer answer from roughly $502,529 to $27,991.66.

  2. Why it matters

    Keeping business definitions in the same Postgres database means there is no second system to deploy or catalog to synchronize, so the semantic layer stays in one place that every agent reads from. The purchases.price comment shows that a definitional detail alone can mean the difference between a wrong and a right answer.

Not sure about something? Ask the AI

Questions and answers are published on this page.

Summaries like this, every morning.

Context & Analysis

The post is part of a series that has already shown the same customer 360 pattern built on Stardog's knowledge graph, Denodo's data virtualization platform, AtScale's dimensional model, and Strategy Mosaic's linked models. The difference here is where the meaning layer lives: instead of a separate system, EDB Postgres AI places it inside the operational Postgres database as an AIDB extension, so schema and business definitions are indexed together and Postgres GRANT, row-level security, and column-level grants enforce access rather than an advisory system prompt. That design removes the need for a second system to deploy and a catalog to synchronize.

The post walks through the mechanics: COMMENT ON statements and aidb.create_semantic_alias act as the authoring surface, foreign keys crawl into join paths, and the built-in EDB MCP endpoint is fronted by an Application Load Balancer and registered as an MCP target on AgentCore Gateway. The concrete example of purchases.price shows why the semantic work matters: the column records the order total, not the unit price, and an agent that misreads it and multiplies by quantity returns roughly $502,529 for the top customer instead of $27,991.66. The same model, prompt, and tool catalog produce the wrong answer without the comment and the right one with it.

The governance section traces how identity flows from an Amazon Cognito user pool through AgentCore to the Postgres role that evaluates the SQL, with AgentCore Identity injecting the Postgres credential so the agent code never sees it. Two roles that differ only in a column-level GRANT produce different results for the same question, and AIDB captures OpenTelemetry traces for every SQL execution as rows in the aidb_otel schema queryable with ordinary SQL. The post also notes that in-database agents can be confined to a named Postgres role through AIDB purposes, while the external AgentCore path governs through Postgres roles at the MCP endpoint. For production, it recommends pairing Postgres GRANT with Amazon Bedrock Guardrails, since the database layer stops the agent from reading sensitive columns while Guardrails help prevent PII patterns from leaking through other paths in the model response.

FAQ
How does the semantic layer handle different access levels?
The post defines two Postgres roles, mcp_agent_full and mcp_agent_restricted, that differ only in a column-level GRANT. The restricted role sees every column except customers.ssn, and when the agent tries to read that column Postgres returns a permission-denied error.
Do I need AWS Lambda to connect AgentCore to EDB Postgres AI?
No. AIDB already speaks MCP, so AgentCore Gateway talks to it as an MCP server target directly through an Application Load Balancer, and no AWS Lambda is required.
What embedding model does the semantic knowledge base use?
The example uses a local llama.cpp model named bge-small-en-v1.5-f16 that ships with the AIDB Amazon Machine Image. The post notes you can swap it for a remote model such as Amazon Titan Text Embeddings on Amazon Bedrock.
Amazon AI BlogRead Original Article
Send on LINE

AI news that matters for your work, delivered every morning.

Pick your industry and the AI tools you use, and get news related to your work every day.

Free · 30 seconds with Google · unsubscribe anytimeWhat is AIToday? →

Ask AI

Ask AI anything about this article. The AI reads this article, earlier AIToday articles, and Wikipedia, and cites its sources. Q&As are published on this page for other readers too.

Questions and answers are published on this page.

Related Articles

Next articleGoogle Antigravity cuts drug discovery loop to about an hour