Skip to content

Engineering scenario 02

Introducing AI Into Enterprise Operations

Putting AI inside a real operational workflow, with permission-aware retrieval, bounded actions and evaluation before scale.

Engineering division
AI & Intelligent Systems
Commercial offering
Enterprise AI Implementation

Illustrative engineering scenario. It describes how we would approach this class of problem; it is not a completed client engagement, and no client identity, data or result is disclosed.

Business context

The situation behind the request.

An operations team handles a high volume of requests that arrive through email, a ticketing queue and a partner portal. Answering them requires reading policy documents, checking three systems and applying judgement that experienced staff carry in their heads. The work is not glamorous, but it is expensive to scale and slow to teach.

A first AI pilot produced impressive demonstrations and no operational change. The retrieval pipeline was built from a folder export, permissions were ignored, answers were judged by whoever was in the room, and nobody owned the system after the pilot ended. The organisation now wants a use case that reaches production with security, evidence and an operating model attached.

The challenge

What has to change, and what cannot.

The difficulty is rarely access to a capable model. It is whether the system can retrieve the right material for the person asking, distinguish a grounded answer from a plausible one, act only within clearly bounded authority, and prove that it behaved correctly after the fact. In an operational process, a confident wrong answer is more damaging than no answer at all.

Buying a general assistant leaves the hard parts unsolved: the organisational knowledge stays in documents and systems the assistant cannot see, or sees too much of. A custom model trained on the domain is usually the wrong first move, because the knowledge changes faster than the weights and the organisation cannot yet evaluate the output. The work is architecture, data access, workflow design and measurement.

Why it is difficult

The engineering decisions that matter.

01

Retrieval has to respect entitlements

An index that contains everything gives a support agent access to a contract they are not permitted to open. Access rules must be enforced from the requesting identity at query time, not described in a prompt and hoped for.

02

There is no benchmark until one is built

Teams discover quality problems in production because nothing measured them earlier. A small, reviewed set of real tasks with expected answers is the only reliable way to compare models, prompts and retrieval changes.

03

Actions are not answers

Reading a document and issuing a refund are different risk categories. Tool calls need scoped credentials, idempotency, explicit confirmation for irreversible steps and an audit trail that attributes the action to a person, not to a model.

Our engineering approach

How we would investigate, design and deliver.

Six stages, each producing something the next stage depends on. The decisions listed are the ones that change the shape of the outcome; they are agreed explicitly rather than absorbed into implementation detail.

  1. 01

    Select the workflow deliberately

    We choose a queue with measurable handling time, a clear owner and a failure mode the business can tolerate. The first production use case should prove the operating model, not carry the programme's reputation.

    • Rank candidates by volume, handling cost, data readiness and blast radius of an error.
    • Avoid starting where a wrong answer is unrecoverable or externally visible.
    • Agree the human decision the system supports, and who remains accountable for it.
  2. 02

    Map data, entitlements and freshness

    We inventory the sources that hold the knowledge, who owns them, how often they change and which parts must never enter an index. Classification and retention are settled before ingestion is built.

    • Carry source permissions and classification metadata through ingestion.
    • Exclude credentials, personal data and restricted material by policy, not by prompt.
    • Define a refresh cadence per source instead of assuming the index is current.
  3. 03

    Design the interaction and the abstention

    The workflow states where the human sits, what the system may assert, and when it must decline. Escalation is a designed path, not an error message.

    • Require citations for factual claims and make the source visible to the reviewer.
    • Define the abstention behaviour for thin or conflicting retrieval.
    • Keep a human approval step before any write to a business system.
  4. 04

    Build retrieval and orchestration

    Ingestion preserves document structure and stable identifiers. Retrieval combines lexical and vector search, then reranks. A model gateway centralises allowlisting, fallback, rate limits and cost control; a workflow layer holds state and approvals.

    • Chunk by document structure rather than fixed length so headings and clauses stay intact.
    • Route every model call through a gateway so provider changes are configuration.
    • Expose tools through a narrow service with scoped tokens and idempotent operations.
  5. 05

    Evaluate before and after release

    A reviewed golden set runs on every prompt, model or retrieval change. We track groundedness, citation coverage, abstention, task completion, latency and cost per task, and fail the change when quality regresses.

    • Score answers against source evidence, not against another model's opinion.
    • Version prompts, indexes and evaluation sets together.
    • Include the awkward cases: ambiguous requests, stale documents and conflicting policy.
  6. 06

    Operate and govern

    The system runs with tracing, cost dashboards, access reviews and a named owner. Feedback from reviewers feeds the content and retrieval configuration rather than disappearing into a backlog.

    • Trace each request end to end: retrieval, tool calls, model, latency and cost.
    • Publish a usage policy that states permitted and prohibited tasks.
    • Keep a documented route to disable a use case without disabling the platform.

Trade-offs

Alternatives we would consider, and what they cost.

Retrieval versus fine-tuning

Retrieval changes what the system knows now; fine-tuning changes how it behaves. For policy and product knowledge, retrieval is the maintainable choice. Fine-tuning is worth considering for format, tone and classification tasks with stable, well-labelled data.

Managed API versus self-hosted models

A managed model is faster to adopt and shifts capacity and patching to the provider, at the cost of data-processing terms, variable latency and price exposure. Self-hosting trades control for operational burden and a narrower quality ceiling.

Autonomy versus approval

Every removed approval increases throughput and reduces accountability. Writes to money, customer records or regulated data keep a human gate until the evaluation record justifies anything else.

Architecture considerations

Components, boundaries and the connections that matter.

Reference architecture

Fig. 02 · illustrative

  1. Sources

    • Policy library
    • Ticketing & CRM
    • Document stores
    • Internal APIs
    connectors · source permissions
  2. Retrieval

    • Ingestion pipeline
    • ACL & metadata index
    • Hybrid search + rerank
    • Tool gateway
    grounded context · scoped tools
  3. Reasoning

    • Model gateway
    • Workflow orchestrator
    • Human approval
    • Cited answer
    policy checks · traces · reviews
  4. Control

    • Identity & entitlements
    • Evaluation suite
    • Tracing & cost
    • Audit log
Illustrative reference architecture for this scenario. Boxes show responsibility boundaries rather than a specific product selection.

Four planes rather than a single pipeline: sources with their entitlements, a retrieval plane that filters by identity, a reasoning plane that can act only through narrow tools, and a control plane that measures and audits both.

Model gateway

One internal interface for model access makes allowlisting, fallback, retries, rate limits and cost attribution enforceable in code rather than by convention across teams.

Query-time access filtering

The identity of the requester is resolved before retrieval and applied as a filter, so a document the user cannot open is never placed in the context window.

Evidence with every answer

Citations are part of the response contract. If the system cannot ground a claim in a source the user is entitled to see, the correct output is an explicit abstention.

Technical considerations

  • LLM and model gateway integration
  • Retrieval-augmented generation and hybrid search
  • Vector indexing with permission metadata
  • Agent orchestration and bounded tool use
  • Data pipelines and document processing
  • Access control and data classification
  • Evaluation sets and regression testing
  • AI observability and cost governance

Expected outcomes

What the work is designed to achieve.

These describe the capabilities the solution is designed to leave behind. They are not measured results from a client engagement.

  • Less time spent locating policy and precedent across disconnected sources.
  • Answers that carry provenance, so a reviewer can verify rather than trust.
  • A bounded action surface with an audit trail for every write.
  • Quality regressions caught by evaluation before they reach operations.
  • Model spend that is attributed, capped and visible per workflow.
  • An operating model that allows a use case to be changed or retired safely.

No performance improvement, cost saving or delivery result is claimed. Metrics are only published when measured on a specific engagement with authorisation.

Related capabilities

Where this work sits in the company.

The scenario draws on one engineering division and is commercialised through a defined offering. Both describe the same capability from different starting points.

Next step

Facing a similar engineering challenge?

Describe the system, the constraint and the outcome you need. We will respond with a technical view of the options, including where we would start and what we would advise against.