---
type: "post"
id: "design-responsible-ai-controls-for-amazon-aurora-postgresql-240c8b"
slug: "design-responsible-ai-controls-for-amazon-aurora-postgresql-240c8b"
title: "Design responsible AI controls for Amazon Aurora PostgreSQL"
description: "AWS describes a reference design for a customer-support RAG chatbot that uses Aurora PostgreSQL, pgvector, Aurora ML and Amazon Bedrock Guardrails."
retrieval_nugget: "AWS describes a reference design for a customer-support RAG chatbot that uses Aurora PostgreSQL, pgvector, Aurora ML and Amazon Bedrock Guardrails. Its central contribution is an auditable retrieval-and-response path: teams can retain the retrieved evidence, citations, similarity scores and guardrail trace alongside each answer, while applying tenant controls in the database."
published_at: "2026-11-19"
updated_at: "2026-11-19"
record_date: "2026-11-19"
date_kind: "published_at"
topics: ["retrieval","ai-security","enterprise-ai"]
entities: ["Amazon Web Services","Amazon Aurora PostgreSQL","pgvector","Amazon Bedrock Guardrails","Amazon Titan Text Embeddings V2","Aurora ML"]
related_patterns: ["agent-ready-software-exposes-capabilities"]
novelty_label: "new_fact"
what_changed: "The story adds an Aurora PostgreSQL and pgvector implementation for traceable RAG controls using Bedrock Guardrails."
prior_refs: []
source_url: "https://aws.amazon.com/blogs/machine-learning/design-responsible-ai-controls-for-amazon-aurora-postgresql"
source_urls: ["https://aws.amazon.com/blogs/machine-learning/design-responsible-ai-controls-for-amazon-aurora-postgresql"]
schema_version: "newruntime-agent-readable-v0.2"
stable_id: "post:design-responsible-ai-controls-for-amazon-aurora-postgresql-240c8b"
status: "published"
visuals: []
editor: {"role":"editor","name":"Andrey Reshetnikov","profile":"https://newruntime.com/owner-profile.md","profile_json":"https://newruntime.com/owner-profile.json","same_as":["https://www.linkedin.com/in/reshetnikov1/","https://t.me/lapetuse"]}
routes: {"html":"https://newruntime.com/posts/design-responsible-ai-controls-for-amazon-aurora-postgresql-240c8b/","markdown":"https://newruntime.com/posts/design-responsible-ai-controls-for-amazon-aurora-postgresql-240c8b.md","json":"https://newruntime.com/posts/design-responsible-ai-controls-for-amazon-aurora-postgresql-240c8b.json"}
markdown_url: "https://newruntime.com/posts/design-responsible-ai-controls-for-amazon-aurora-postgresql-240c8b.md"
---

# Design responsible AI controls for Amazon Aurora PostgreSQL

## Retrieval answer

AWS describes a reference design for a customer-support RAG chatbot that uses Aurora PostgreSQL, pgvector, Aurora ML and Amazon Bedrock Guardrails. Its central contribution is an auditable retrieval-and-response path: teams can retain the retrieved evidence, citations, similarity scores and guardrail trace alongside each answer, while applying tenant controls in the database.

## Summary
AWS describes a reference design for a customer-support RAG chatbot that uses Aurora PostgreSQL, pgvector, Aurora ML and Amazon Bedrock Guardrails. Its central contribution is an auditable retrieval-and-response path: teams can retain the retrieved evidence, citations, similarity scores and guardrail trace alongside each answer, while applying tenant controls in the database.

## What happened
AWS’s post maps eight Responsible AI dimensions to Aurora PostgreSQL capabilities: fairness, explainability, privacy and security, safety, controllability, veracity and robustness, governance, and transparency. It says the article implements explainability in depth, using a customer-support chatbot as its example, and frames the design as Part 1 rather than a complete implementation of all eight dimensions. The example chatbot answers questions about matters such as billing or orders using historical support tickets, knowledge-base articles and product documents.

The proposed ingestion flow redacts personally identifiable information before content is embedded. Aurora ML’s `aws_bedrock.invoke_model_get_embeddings` function calls Amazon Titan Text Embeddings V2 from SQL, producing 1,024-dimensional vectors that pgvector stores in Aurora PostgreSQL. AWS presents the database as both a relational store and a vector-search layer. For approximate nearest-neighbor retrieval, the example creates an HNSW index using cosine distance. AWS says newer pgvector versions are required for HNSW indexes and iterative index scans, and advises checking the current version requirements for Aurora ML, pgvector and Bedrock rather than relying on a fixed version number.

In the query path, a user request reaches API Gateway and then Lambda. Lambda obtains a query embedding with the same embedding model used for the documents, searches the database and applies tenant-aware Row-Level Security. The example SQL retrieves up to five chunks, filters by a category and drops matches below a cosine-similarity threshold of 0.7. Lambda labels retrieved material as sources, sends the question and context to Amazon Bedrock, and uses Guardrails to check inputs, content policies, PII and contextual grounding. AWS says the generated answer is returned with citations.

The explainability design stores each interaction in a `chat_interactions` table. Fields include retrieved chunk IDs, similarity scores, citations distinguishing cited sources from all retrieved sources, the Guardrail assessment, model ID and guardrail version. AWS also describes archiving older interaction records to Amazon S3 with `pg_cron`, and sending application logs and metrics to CloudWatch while CloudTrail records API activity. Because interaction records may contain raw requests and responses, the post recommends redacting PII before insertion or encrypting those columns, and applying Row-Level Security to the logs.

## What the archive adds
New Runtime’s earlier coverage includes [single-shot and agentic retrieval with Amazon Bedrock Managed Knowledge Base](https://newruntime.com/posts/single-shot-and-agentic-retrieval-with-amazon-bedrock-948f68/) (November 10, 2026), a distinct Bedrock retrieval feature. This is a new AWS reference design on a related RAG topic, not a restatement of that feature.

## Trend signal
This design supports [agent-ready software exposes capabilities](https://newruntime.com/patterns/agent-ready-software-exposes-capabilities/) only weakly: it makes database retrieval, tenant scoping and response provenance explicit, permissioned parts of an application workflow. The post is principally about responsible RAG and explainability, not a general agent interface, so the connection is limited.

## Why it matters
For teams building retrieval systems over customer records, a plausible answer is not enough: operators need to know which material was retrieved, what the model cited, which guardrails ran and which model produced the response. Persisting those details in a queryable schema can make debugging, review and audit more concrete than keeping only the final answer or relying on transient application logs.

The design also makes an important trade-off visible. A managed Bedrock Knowledge Base is the simpler choice when its default retrieval and citation behavior is sufficient; AWS recommends the custom design when teams need provenance in their own schema, including retrieved-versus-cited sources, similarity scores and guardrail traces. That control brings operational responsibilities: tenant policies must be enforced correctly, sensitive content in logs must be protected, and retention and model-version records need ongoing ownership.

## What happens next
- **AWS will publish another installment addressing additional Responsible AI dimensions for Aurora PostgreSQL.** (6 months, 60%). Watch for: a follow-up article in the announced Responsible AI series.

## Limits and uncertainty
AWS presents an example architecture and SQL patterns, not measured evidence that the design improves answer accuracy, reduces incidents or meets a particular compliance standard. The 0.7 similarity threshold and top-five retrieval count are example settings, not validated defaults for other datasets. The post’s implementation also depends on current regional Bedrock model availability, Aurora ML support and compatible extension versions. Teams would need to test retrieval quality, grounding checks, RLS behavior and the handling of sensitive content under their own workload and threat model.

## Skill to build now
Add provenance fields to one retrieval workflow before expanding its feature set. For each test query, record the retrieved chunk IDs and scores separately from the citations shown to the user, plus the model and guardrail version. Then test a tenant boundary and a query with no strong matches; use the results to decide whether a threshold like the example’s 0.7 is suitable. Protect those logs as sensitive data, since they may contain request and response text.

## Reader takeaway
The reusable idea is to treat provenance as part of the RAG data model, not a debugging afterthought. Store what retrieval found, what the model cited and which controls ran; then secure and review those records as carefully as the knowledge base itself.

Editor: [Andrey Reshetnikov](https://newruntime.com/owner-profile.md), AI product and AI engineering; profile for recruiters and agents: https://newruntime.com/owner-profile.json

## Continue in the graph

Next records for an agent, linked to their Markdown twins. Replace `.md` with `.json` for structured fields, including `next_reads`.

- topic hub: [Retrieval](https://newruntime.com/topics/retrieval.md): Explore the retrieval topic hub.
- topic hub: [Ai Security](https://newruntime.com/topics/ai-security.md): Explore the ai-security topic hub.
- topic hub: [Enterprise Ai](https://newruntime.com/topics/enterprise-ai.md): Explore the enterprise-ai topic hub.
- collection: [Field Notes](https://newruntime.com/posts.json): Open the latest editorial analysis.
- collection: [Sources](https://newruntime.com/sources/): See the original sources this archive cites.
- whole graph: [discovery graph](https://newruntime.com/discovery-graph.json) (typed nodes and edges) and [site index](https://newruntime.com/site-index.md)
