AVEVA Core AI Services Platform
Delivered during my AVEVA contract, September 2025 to August 2026.
Problem Space
Standardising AI consumption across AVEVA's product teams meant solving three coupled problems at once: a shared cloud-native service surface that teams could safely build on, a measurement layer that could tell whether AI changes actually helped or hurt, and a way to expose a heterogeneous backend estate (REST, GraphQL, OData, and existing MCP servers) as well-shaped tools that agents could call without getting confused. Without all three, the platform would have been either an unmeasurable demo or a thin pass-through that left every product team to reinvent its own evaluation and tool-wrapping logic.
The Core AI team's digital-twin work also used retrieval-augmented generation (RAG) to look up information in manuals and specification documents for industrial monitoring equipment. My work in this area mainly used Python and .NET and also included extensive tool selection and dynamic MCP server creation.
Architecture & Patterns
- RAG over manuals and specification documents for industrial monitoring equipment, supporting digital-twin development within the Core AI team.
- Extensive tool-selection work and dynamic MCP server creation.
- AKS-based cloud-native platform with versioned public APIs and SDKs and secure-by-design controls for enterprise consumption.
- LLM-as-Judge evaluation framework grading candidate outputs across correctness, faithfulness, tool-call accuracy, and schema compliance, with judge prompts versioned and calibrated against human-graded samples to prevent drift.
- Auto-tuning model routing: the same evaluation set runs across a panel of candidate models, and the routing loop picks the cheapest one clearing the quality threshold: FinOps for inference.
- Synthetic query generation and randomised holdout sampling, so evaluation distributions are broader than any one person's intuition and demonstrably excluded from any fine-tuning or prompt-tuning step.
- Domain-specific Profunctor that wraps REST, GraphQL, OData, and existing MCP services and re-projects them as MCP tools: one adapter layer, four input families, one consistent output shape.
- Dynamic MCP-side metadata (descriptions, tags, parameter names) exposed as a tunable layer separate from the underlying service.
- Tool-confusion as a first-class metric: wrong-tool selection, malformed parameter shapes, and ambiguous-pick retry rates are measured per metadata variant and gate which framings get promoted.
- Defence-in-depth agentic guard rails: intent classifier in front of the LLM, tool-level allow-list, and output-side action guard, so a single failure mode does not escalate into an out-of-scope action.
- Refusal correctness graded as a first-class axis by the LLM-as-Judge harness (false-allow / false-refuse rates per model and per prompt variant).
- Diagnosed-and-fixed catalog of long-running agentic failure modes: context degradation, specification drift, runtime tool-selection errors, cascade failures across multi-step agents, and silent failures.
- LLM-as-Judge harness reused as a regression suite: every diagnosed failure mode lives on as a named scenario set so future prompt or model changes cannot silently reintroduce it.
- Multi-agent / multi-sub-agent context architecture: per-sub-agent isolation with scoped views per role contract, just-in-time context retrieval at invocation, explicit hierarchical hand-off contracts between parent and sub-agents, and boundary-level context-budget pruning.
- Production-grade observability embedded in agentic workflows.
Tools & Stack
Azure, AKS, Python, .NET, MCP, OpenAPI, GraphQL, OData, pytest
Business Outcomes
- Established a reusable platform foundation that enabled consistent, secure consumption of AI capabilities across multiple product teams.
- Reduced LLM inference cost by ~30% via auto-tuned model routing backed by measured quality rather than vendor marketing.
- Reduced prompt and model evaluation cycle time by ~60% through the reusable LLM-as-Judge framework and tabulated metric grids.
- Improved detection of weak AI responses by ~35% through structured, multi-axis evaluation criteria.
- Reduced duplicated AI platform engineering by ~40% by absorbing evaluation and service-to-MCP wrapping into a shared layer rather than leaving product teams to reinvent it.
- Constrained the agentic chatbot to a sanctioned task allow-list, producing honest predictable refusals for everything else, verified via graded refusal correctness.
- Stabilised long-running agentic workflows by diagnosing and fixing five distinct classes of advanced failure and locking each as a permanent regression scenario in the evaluation harness.
- Made multi-sub-agent compositions reliably scalable by treating context as a first-class system primitive: each sub-agent saw only what it needed at the point it needed it, eliminating wholesale transcript forwarding and the unbounded cost, leakage, and confusion that produces.