Enterprise AI knowledge assistant
An AI knowledge assistant for a large, long-lived enterprise platform, delivered as a Claude Code plugin whose skills query a Bedrock knowledge base through an MCP server. It is designed for developers, BAs, QAs, product owners and domain experts across multiple teams, and as the foundation for future AI-enabled development across the organisation.
- Role
- Co-architect & developer
- Type
- Internal platform
- Timeline
- 2026 — present
- Stack
- Amazon Bedrock Knowledge Bases · S3 Vectors · MCP · Claude Code · AWS Lambda · API Gateway · DynamoDB · RAGAS · AWS CDK
The problem
Knowledge about the platform (domain business rules, data models, and how dozens of services connect) was spread across Confluence and about 80 GitHub repositories. Developers, BAs and QAs spent real time finding answers, and when Confluence and the code disagreed, it was hard to know which one to trust.
The approach
The assistant is a Claude Code plugin. Its skills call a single MCP tool, which goes through API Gateway to a Lambda that searches an Amazon Bedrock knowledge base and returns ranked passages with their sources. The client model does the reasoning, so every answer cites where it came from.
The knowledge base holds Confluence content, per-repository topic documents summarised from the code, and generated maps of how the repositories connect: API consumers, events and queues, shared libraries and database coupling.
On that one knowledge base, the plugin ships six skills:
- Domain Q&A in plain business English, with diagrams for flows that branch.
- Current-state analysis that works out how a feature behaves today and publishes it to Confluence.
- Future-state requirements that turn workshop notes into numbered, testable requirements.
- Epics and story maps that turn requirements into Jira epics and stories with acceptance criteria.
- Architecture review that checks designs against the organisation’s enterprise architecture guidance.
Evaluation
Retrieval quality is measured, not assumed. A golden set of 50 real questions with known answers is scored with RAGAS for context precision and recall, and the scores decide what to improve next.
What comes next
- Entra ID single sign-on, so the assistant can be reached from both Claude and GitHub Copilot.
- Multiple domain-specific golden datasets, run nightly, with CloudWatch metrics and alarms when quality drops.
- Event-driven ingestion with an auditable run registry, so the knowledge base stays in sync as code and documentation change.
- A move to pgvector with metadata filtering, and a wider set of guardrails.
What I learned
- Measure retrieval before tuning it. The golden set showed that precision was good but recall was the real gap. Without it, we would have tuned the wrong thing.
- Keep the backend boring. A retrieve-only backend made the system cheap to run and easy to extend. Adding a new application is a content change, not an infrastructure change.
- Regional constraints shape the design. Keeping data in ap-southeast-2 ruled out the managed reranker, and working around it was a design decision, not just a configuration change.
Key decisions
A retrieve-only backend
The backend only finds and ranks source passages. The AI client the user already has (Claude Code today, Copilot next) does the reasoning, so we never pay for the same model call twice, and one backend can serve any MCP client.
Trade-off: Answer quality depends partly on the client model, and the backend cannot control how retrieved passages are used, so guardrails have to live in the skills as well as the server.S3 Vectors for the MVP, pgvector next
S3 Vectors was the cheapest way to prove the value with close-to-zero running cost. The roadmap moves to Aurora PostgreSQL with pgvector for metadata filtering, so searches can be scoped to one application or section.
Trade-off: A migration is planned from the start, and filtering is limited until it happens.Code wins over documentation
When Confluence and the code disagree about how something works, every skill follows the code and flags the difference. That gives answers a predictable source of truth.
Trade-off: Documentation gaps surface as noise in answers until they are fixed at the source.An LLM-based reranker
Bedrock’s managed reranker is not available in ap-southeast-2, and all data stays in-region, so we added an LLM-based reranking step instead.
Trade-off: Extra latency and token cost on every query, and one more component to evaluate.