sasitha.dev
Download CV
← All projectsProject 01 / 07
Client · Generative AI

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:

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

What I learned

Key decisions

Decision

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.
Decision

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.
Decision

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.
Decision

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.

Outcomes

~80GitHub repositories indexed, plus Confluence
6Skills, from domain Q&A to architecture review
50Golden questions in the first evaluation set
1MCP tool behind every skill
Next project →Feature delivery plugin for AI-assisted development