An AI support bot that keeps a trail of its answers
Customer support bots answering “Why was my last bill high?” or “Where is my last order?” may need old tickets and product documents to respond. But those records can contain personal details, and a smooth answer is not automatically accurate or safe. AWS’s reference design tackles that trade-off with Aurora PostgreSQL, retrieval-augmented generation (RAG), Bedrock and responsible-AI controls.
First, an ingestion pipeline redacts personally identifiable information from support tickets, FAQs and product documents. Aurora ML can create text embeddings from SQL, with pgvector storing them for semantic search. That turns historical prose into material the database can retrieve by meaning, while keeping preparation close to where the records live.
When a customer asks a question, Lambda searches for relevant passages in Aurora. Guardrails check the context, and the Bedrock model drafts a response grounded in those passages; row-level access controls help prevent one customer’s information from appearing to another. The answer can cite its sources, so the user can see what supports an explanation about a bill or order.
Behind the answer, an interaction log saves retrieved chunks and similarity scores, which sources were actually cited, guardrail traces and the model used. That distinction matters: a bot may find a passage without relying on it. AWS says the managed Amazon Bedrock Knowledge Bases service is simpler if default retrieval and citations suffice; a custom design makes sense when teams need this provenance in their own SQL schema.
AI-generated discussion · Different perspectives
The strongest idea here is that “show your work” becomes a database design choice, not a hopeful slogan. Keeping both the material the bot found and what it actually cited makes the answer’s trail inspectable.
Exactly. A fluent answer is easy to admire until you need to know what it relied on. I’d rather have a bot with an audit trail than one that sounds polished and leaves everyone guessing.