Nexolve

Architecture · Operations

LLMOps: Evaluation, Guardrails And Monitoring For AI In Production

The short answer

LLMOps is the practice of running language-model systems reliably. Before release, changes are scored against evaluation sets built from real cases. In production, guardrails check inputs and outputs, uncertain or risky results go to people, and every request is traced for quality, latency and cost. Prompts and models are versioned and released behind evaluation gates, so regressions are caught before users see them.

By Maitreya Kulkarni · Updated · 10 min read

01 · The architecture

Where Do Evaluation And Guardrails Sit In An AI System?

On both sides of the model and around the release process. Input guardrails screen requests, output guardrails validate responses, risky or low-confidence results go to a review queue, traces record everything, and offline evaluations gate every change before it reaches production.

NX-AR-08 · Architecture

A guarded, observable AI system

  • Outside world
  • Data & integration
  • AI agent
  • Your people
  • System of record
  1. L1

    Traffic

    (Outside world)
    • User requests

      . Hands work to: Input guardrails.
  2. L2

    Input checks

    (Data & integration)
    • Input guardrails

      PII, injection, scope

      . Hands work to: Model and tools.
  3. L3

    Model

    (AI agent)
    • Model and tools

      Versioned prompts

      . Hands work to: Output guardrails.
  4. L4

    Output checks

    (Data & integration)
    • Output guardrails

      Schema, grounding, safety

      . Hands work to: Response, Review queue.
  5. L5

    Delivery

    (Your people)
    • Response

      To the user

      . Hands work to: Traces and metrics.
    • Review queue

      Flagged or uncertain

      . Hands work to: Traces and metrics, Offline evaluations.
  6. L6

    Observe

    (System of record)
    • Traces and metrics

      Quality, latency, cost

    • Offline evaluations

      Gate every release

      . Hands work to: Model and tools.
Guardrails are code and classifiers around the model, not instructions inside it. Offline evaluations decide whether a new prompt or model version is allowed to replace the current one.

02 · Evaluation

How Do You Evaluate An LLM Application?

With a test set built from real inputs and the outputs you need, scored automatically on every change and checked by people where automatic scores are weak. The test set grows every time production finds a new failure.

Common evaluation metrics
Task accuracyWhat it measuresRight answer or extractionHow it's scoredExact match, field-level comparison
FaithfulnessWhat it measuresClaims supported by sourcesHow it's scoredModel-graded against context
Tool-call accuracyWhat it measuresRight tool, right argumentsHow it's scoredCompared with expected calls
Helpfulness and toneWhat it measuresQuality as a person sees itHow it's scoredCalibrated LLM judge plus human sampling
Latency (p95)What it measuresSpeed users feelHow it's scoredTraces
Cost per taskWhat it measuresEconomicsHow it's scoredToken and tool usage

03 · Guardrails

What Are AI Guardrails?

Checks that run outside the model, before and after it acts. They catch what instructions alone cannot: injected commands, personal data, malformed outputs, unsupported claims and actions beyond what a request is allowed to do.

01

Input guardrails

Redact personal data, detect prompt injection, keep requests within the system's scope.

02

Output guardrails

Validate against a schema, check claims against sources, run safety classifiers.

03

Action guardrails

Tool permissions, limits enforced in code, and approvals for consequential actions.

04

Fail safe

When a check fails, the system declines or escalates rather than guessing.

04 · Monitoring

What Should You Monitor In Production?

Quality, safety, speed and cost, per feature and over time. Models and data drift, providers update models, and users find new ways to break things, so production behaviour has to be watched, not assumed.

01

Traces

Every prompt, tool call, result and score, following OpenTelemetry's generative AI conventions where possible.

02

Quality sampling

A sample of live outputs scored automatically and by people each week.

03

Cost and latency

Spend and response times per feature, tenant and model, with alerts.

04

Drift

Shifts in input types, refusal rates or scores that signal something changed.

05 · Releases

How Do You Ship Changes To An AI System Safely?

Like any other code, with one more gate. Prompts, models and retrieval settings are versioned; every change runs the evaluation suite in CI; new versions go to a small share of traffic first; and rollback is one switch.

01

Version everything

Prompts, model versions, retrieval settings and tool schemas live in source control.

02

Evaluation gates

A change that lowers scores on the test set does not merge.

03

Canary releases

A small share of traffic tries the new version before everyone does.

04

Instant rollback

The previous version stays deployable at all times.

The ecosystem

  • OpenAI
  • Claude
  • Sentry
  • PostHog
  • GitHub Actions
  • Python

Build it with us

We Build This For Real Businesses.

The services where this architecture does the work, designed, built and handed over by Nexolve.

FAQ

Questions About LLMOps, Evals And Guardrails.

Still unsure about something? Ask us

Using a language model to grade another model's outputs against criteria. It scales evaluation well but must be calibrated against human judgements, because judges have biases of their own.

Start with fifty to a few hundred real cases that cover the important types of input, then add every production failure. Coverage matters more than size.

No single check can. Defence in depth works: detection on inputs, treating retrieved content as untrusted, least-privilege tools and approvals for consequential actions.

Contact

Want This Architecture Built For You?

A 20-minute call. We'll listen to the problem, tell you honestly whether we're the right team for it, and outline what the build would look like.

  1. 01Tell us the problemA 20-minute call. Rough is fine.
  2. 02Get a scoped planWhat we'd build and what it takes, within 48 hours.
  3. 03Start on your timelineOnce the scope is signed off, we build in milestones.