Skip to content
Yitsy Mosqueda.
← Volver al journal

Inside IAnversic EVAL: Measuring Quality, Performance and Cost of LLM Applications

17 de noviembre de 2026 · Evaluación de IA · Arquitectura · Aprendizajes

Building an LLM-powered application is not just about getting a model to generate a good response.

Once an application moves beyond experimentation, other questions become important:

  • Are the answers actually correct?
  • Are they grounded in the information available to the model?
  • Did a prompt change improve the results or introduce regressions?
  • Is the application becoming slower?
  • How much does each evaluation or inference run cost?
  • Can we reliably compare two different versions of the system?

These questions matter most when working with RAG applications, AI assistants, and other LLM-powered products.

In my previous article, Why I Built IAnversic EVAL: Making LLM Evaluation Part of AI Engineering, I explained how these challenges led me to develop IAnversic EVAL.

In this article, I want to explore the practical side: how evaluation runs are organized, what metrics matter, and why comparing results requires more than looking at two scores.

1. Evaluation Starts with Reproducibility

One of the first challenges in evaluating an LLM application is ensuring that results can be reproduced and meaningfully compared. A single test with a few manually selected questions can identify obvious problems, but it isn't enough to understand how an application behaves across scenarios.

A more structured approach starts with evaluation datasets. An evaluation dataset contains the inputs used to test an application, together with the expected information or reference criteria needed by the evaluation process.

For example, when evaluating a RAG application, a dataset might contain:

  • User questions.
  • Expected answers or reference information.
  • Relevant source documents or context.
  • Additional metadata used to organize and analyze test cases.

The same dataset can then be used to evaluate different prompts, models, or retrieval configurations. This makes it possible to observe how changes affect the application's behavior under consistent test conditions.

In IAnversic EVAL, evaluation suites provide a structured way to organize these tests and execute them repeatedly.

2. What Should We Measure?

A common mistake is to evaluate an LLM application using only one overall score. Response quality is important, but it is not the only dimension that determines whether an application is ready for production.

I generally think about evaluation across three main dimensions.

Response Quality

Does the application generate useful and reliable answers?

Depending on the use case, relevant evaluation criteria include:

  • Correctness: Does the answer contain accurate information?
  • Groundedness: Is the answer supported by the available context?
  • Relevance: Does it address the user's actual question?
  • Faithfulness: Does it remain consistent with the retrieved information?
  • Completeness: Does it cover the relevant aspects of the request?

Different applications require different evaluation criteria. A customer support assistant, for example, may prioritize correctness and relevance, while a document-based RAG application may place greater emphasis on groundedness and faithfulness.

Performance

Even a high-quality response can result in a poor user experience if it takes too long to generate.

Performance metrics can include:

  • Mean latency.
  • Percentile latency, such as P95.
  • Time to first token (TTFT), when available.
  • Retrieval and generation time.
  • Error and failure rates.

Looking only at average latency can hide important problems. P95 latency, for example, helps identify how slow the experience can become for users in the slower portion of requests.

Cost and Resource Consumption

The cost of operating an LLM application can increase significantly as usage grows.

Some useful metrics include:

  • Total tokens consumed.
  • Input and output tokens.
  • Estimated inference cost.
  • Evaluation or judge cost.
  • Cost per request or evaluation sample.

These metrics help identify whether a seemingly successful optimization is actually sustainable. A faster application that consumes significantly more tokens may not represent a better overall solution.

3. Organizing Evaluation Runs

Measuring these dimensions requires a consistent way to organize evaluation experiments. An evaluation run represents the execution of a particular configuration against a dataset.

That configuration may involve:

  • An evaluation dataset or suite.
  • The prompt being tested.
  • The model used for generation.
  • The graders used to evaluate the responses.
  • Additional execution settings and parameters.

Graders are particularly important because they define how responses are evaluated. Depending on the criterion, evaluation can use deterministic rules or an LLM-as-a-Judge approach.

For example:

  • A deterministic grader can check whether an expected phrase or value appears in a response.
  • An LLM-based grader can assess whether an answer is grounded in the supplied context or correctly addresses a question.

Neither approach is universally better. The choice depends on the evaluation criterion, the available reference data, and the level of judgment required. The important part is making these configurations explicit so that evaluation results have enough context to be understood later.

Evaluation dashboard

The dashboard provides an overview of evaluation activity and results, helping teams inspect their experiments and understand how their applications are performing.

IAnversic EVAL dashboard

4. Comparing Runs: Higher Scores Don't Always Mean Better Results

This is one of the most important aspects of evaluation. Imagine that you run an evaluation, modify your prompt, and execute the same tests again. The second run reports a higher overall score.

Is the application better? Not necessarily.

What if you also changed the dataset? What if you replaced the graders? What if the evaluation criteria are no longer the same? In those situations, comparing the overall scores as if they represented the same measurement can lead to incorrect conclusions. This is why I consider comparability a fundamental part of evaluation.

IAnversic EVAL includes comparison logic that identifies when evaluation runs are not comparable, rather than automatically interpreting every score difference as an improvement or regression.

For example, if two runs use different graders, the platform can identify that the overall quality scores should not be treated as a direct comparison. This distinction matters because evaluation should help engineering teams make better decisions, not simply produce numbers that look good.

Run comparison

The comparison view makes it easier to identify changes between evaluation runs and distinguish meaningful improvements from regressions or results that cannot be directly compared.

IAnversic EVAL run comparison

5. A Practical Example: What the Metrics Can Reveal

During one of my evaluation exercises, I analyzed two runs with different results across quality, performance, and cost metrics. The comparison revealed something interesting. At first glance, the overall mean score increased from 50.0% to 74.2%, and the overall pass rate increased from 0% to 38.7%.

However, these quality results were flagged as NOT COMPARABLE because the graders used in the two runs were different. The baseline included criteria such as contains and relevance, while the current run included correctness, groundedness, and length. The measurements were not equivalent.

The operational metrics revealed another part of the story:

IAnversic EVAL metrics

The results showed an interesting trade-off:

  • Mean latency improved by approximately 70%.
  • P95 latency improved by approximately 80%.
  • Token consumption increased by more than 460%.
  • Evaluation judge costs increased significantly.

In other words, the system became faster, but the cost of running it increased. This is exactly the kind of trade-off that can go unnoticed when evaluation focuses exclusively on response quality or execution speed.

The overall comparison classified the results into:

  • 9 regressions.
  • 5 improvements.
  • 3 OK.
  • 59 not comparable.

The important takeaway is not simply whether the second run performed better or worse. It is understanding which measurements can be trusted, which changes represent actual improvements, and where further investigation is necessary.

6. Evaluation Should Help Identify Regressions

Evaluation becomes particularly valuable when it is integrated into the development lifecycle.

Consider a typical workflow:

  1. Establish a baseline using an existing evaluation dataset.
  2. Modify a prompt, model, retrieval strategy, or application configuration.
  3. Execute a new evaluation run.
  4. Compare the results against the baseline.
  5. Identify improvements, regressions, and non-comparable metrics.
  6. Investigate unexpected changes before deploying.

This process can be extended with configurable thresholds. For example, an engineering team might define acceptable limits for latency, cost, or quality metrics. If a new version exceeds a cost threshold or falls below a quality requirement, the result can be flagged for review.

The objective is not necessarily to automate every deployment decision. It is to provide enough information to make those decisions with greater confidence.

7. From Metrics to Engineering Decisions

An evaluation dashboard is useful, but metrics alone do not improve an application. Their real value comes from the engineering decisions they support.

For example:

  • If groundedness decreases, investigate retrieval quality, context construction, or prompt instructions.
  • If latency increases, examine retrieval, model response time, and execution overhead.
  • If token consumption increases, investigate context size, prompt structure, and response length.
  • If judge costs increase, review the evaluation strategy and the number of LLM-based grading calls.
  • If results are not comparable, establish consistent evaluation conditions before drawing conclusions.

This is how evaluation becomes part of an engineering feedback loop. Instead of relying exclusively on manual testing or subjective impressions, developers can use repeatable measurements to understand how their applications evolve.

8. Building with Evaluation in Mind

IAnversic EVAL was initially developed to address evaluation needs within IAnversic RAG. Over time, it evolved into an independent platform for organizing evaluation experiments and analyzing LLM application quality, performance, and cost.

Its purpose is not to declare one model or prompt universally better than another. It is to help engineering teams understand what changes, why those changes matter, and whether the evidence supports a particular decision.

For me, this is an important distinction. An LLM application should not be considered production-ready simply because it performed well in a demonstration. It should be tested against representative scenarios, evaluated using meaningful criteria, and monitored across the dimensions that matter to its users and business.

Evaluation is not just a final quality check. It is part of building reliable AI applications.


Explore IAnversic EVAL

If you are developing a RAG application, an AI assistant, or another LLM-powered product, I would be interested in exploring how IAnversic EVAL could fit into your development and evaluation workflows.

Learn more: https://ianversic.com/eval

If you are interested in integrating or testing IAnversic EVAL in your processes, feel free to reach out. I'd be happy to discuss potential use cases.