LLM Evaluation

LLM Evaluation and AI Quality Testing

Tepia builds evaluation and testing for AI features: golden datasets drawn from your own data, automated scoring for accuracy and groundedness, red team tests for prompt injection, and regression runs before any prompt or model change. Evaluation suites run in your CI pipeline, so a quality drop blocks a release the same way a failing unit test does.

The essentials at a glance

An AI feature is ready to ship when you can show, with your own examples, that it is accurate, grounded, safe and stable across model versions.

dream-app

Golden Datasets

Tepia builds test sets from your real tickets, documents and edge cases, labeled by your domain experts rather than invented by the vendor.

Read: QA and Automated Testing
connect-audience

Red Team Testing

Tepia attacks your feature with prompt injection, data leakage and jailbreak attempts mapped to the OWASP Top 10 for LLM Applications.

Read: LLM Application Development
smart-product

Release Gates

Evaluation suites run in CI on every prompt, retrieval or model change, and a score below the agreed threshold stops the deployment.

Read: AI Governance and Risk
optimize-ecommerce

Production Traces

Every call is logged with inputs, retrieved sources and output, so a user complaint can be replayed and turned into a new test case.

The numbers matter.

Published figures Tepia plans around when testing AI features.

97%

Missing AI Access Controls

IBM's 2025 breach research found 97 percent of organizations with AI model or app breaches lacked proper AI access controls.

66%

Almost Right Answers

Stack Overflow's 2025 survey found 66 percent of developers are frustrated by AI answers that are almost right, but not quite.

30%

GenAI Projects Dropped

Gartner predicted at least 30 percent of generative AI projects would be abandoned after proof of concept by the end of 2025.

Why AI features need a different kind of testing

Traditional QA assumes the same input produces the same output. A language model breaks that assumption. Ask the same question twice and the wording changes; ask a slightly different question and the answer may draw on a different document. There is often no single correct string to assert against, only a range of acceptable answers and a set of clearly wrong ones.

Three other things make it harder. Prompts behave like code but are edited like copy, so small wording changes ship without review. Model providers release new versions on their own schedule, and a version that is better on average can still be worse on your cases. Retrieval adds its own failure mode, where the model answers fluently from the wrong source.

Tepia treats evaluation as part of the build, not a step at the end. The test set is defined in Discovery, before the first prompt is written, so everyone agrees on what good looks like and the team can measure progress against it every day.

What to measure: an evaluation matrix

Each AI feature gets its own matrix. Tepia agrees the dimensions and thresholds with your product owner, then automates as many as possible:

Dimension How it is measured Example test
Task accuracy Rubric scoring against expert labeled answers Does the drafted reply resolve the customer’s actual question
Groundedness Each claim checked against the retrieved sources No policy detail appears that is not in the cited document
Retrieval quality Whether the right source appears in the top results The current handbook ranks above the superseded version
Format validity Output parsed against a JSON schema Every extraction returns all required fields with valid types
Refusal behavior Out of scope and unsafe prompts in a dedicated set The assistant declines legal advice and offers a handoff
Injection resistance Adversarial inputs hidden in documents and messages Instructions inside an uploaded file are ignored
Speed Response time measured at the slow end, not the average Answers return within the limit the screen can tolerate
Tone Rubric or model graded comparison with approved examples Replies match brand voice and reading level

Thresholds differ by risk. A suggestion a user edits before sending can tolerate more misses than an answer shown directly to a patient or a customer.

Building a golden dataset from your own data

Generic benchmarks tell you little about your feature. Tepia builds the test set from your own material: real support tickets, real documents, real search queries, and the awkward cases your team remembers. A first set of a few hundred examples is usually enough to separate a good prompt from a bad one, as long as it covers each category of request and includes the hard cases.

  • Representative cases sampled in proportion to how often each request type appears in production.
  • Edge cases such as ambiguous questions, missing data, conflicting documents and very long inputs.
  • Adversarial cases written to provoke leakage, invented facts or instructions the feature should ignore.
  • Expected behavior written by your domain experts, including when the right answer is to say it does not know.

The set is versioned alongside the code. Every production failure that reaches a user becomes a new test case, so the same mistake cannot return unnoticed. If your data still needs work before this is possible, see data preparation for AI projects.

How Tepia approaches LLM evaluation and testing

Tepia runs its six phase process whether we are testing a feature we built or one another team built. A US based project manager coordinates your domain experts, who do the labeling that matters most.

  1. Discovery: review of the feature, its prompts, retrieval setup and logs, plus interviews with the people who judge answer quality today. Deliverables are an Investigation Summary, an Interview Summary and User Stories such as a reviewer flagging an ungrounded answer.
  2. Design: the evaluation matrix, thresholds per dimension, labeling guidelines, and wireframes for the review screen your experts will use.
  3. Development and Testing: the golden dataset, automated graders, a model graded judge calibrated against human scores, CI integration and a red team suite. Alpha scoring runs on the current version to set a baseline.
  4. Training: hands on sessions for reviewers on labeling, and for engineers on reading evaluation reports and adding cases.
  5. Launch: evaluation gates switched on in the release pipeline and production tracing turned on with alerting.
  6. Support: quarterly test set refreshes, new model comparisons and regression triage when scores move.

An evaluation project on an existing feature usually sits at the short end of the typical ranges: 1 to 3 months of Discovery and 2 to 6 months of development and QA. See our process.

Automated graders, human review and red teaming

Automation makes evaluation fast enough to run on every change, but it has to be trusted. Tepia uses deterministic checks wherever possible: schema validation, required citations, banned phrases, exact field matches. For open ended answers we use a separate model as a grader with a written rubric, and we measure its agreement with your human reviewers before anyone relies on its scores.

Human review stays in the loop. A sample of production conversations goes to a review queue each week, scored with the same rubric, so drift shows up in numbers rather than anecdotes.

Red teaming covers the risks listed by OWASP for LLM applications, including prompt injection through uploaded files, disclosure of system prompts or other users’ data, and tool calls an agent should never make. Findings feed both the test set and your AI governance and risk documentation. Our QA and automated testing team runs the conventional test suite alongside it.

Keeping quality stable after launch and across model upgrades

Most quality regressions Tepia sees in production come from changes nobody thought of as risky: a new model version, an edited prompt, a reindexed document store. Each one gets the same treatment before release.

  • Pinned versions: the feature calls a specific model version, never a moving alias.
  • Side by side runs: a candidate model or prompt runs against the full test set and the results are compared dimension by dimension.
  • Shadow traffic: where risk is high, the candidate answers live requests silently before it serves users.
  • Alerts: spikes in negative feedback, refusals or slow responses page the on call engineer.

This is also how teams make an informed choice between providers, a topic covered in OpenAI vs Claude for business apps. If you have an AI feature live and no test set behind it, talk to Tepia.

Frequently asked questions

How do we know our AI feature is accurate enough to launch?
Tepia builds a golden dataset from your own examples and agrees a threshold for each quality dimension with your product owner before development starts. The feature launches when it clears those thresholds in automated runs and in a human review sample.
What is an LLM evaluation, and does our app need one?
An LLM evaluation is a repeatable test suite that scores a model’s answers for accuracy, groundedness, safety and format on cases drawn from your product. Tepia recommends one for any AI feature users rely on, because without it every prompt or model change is a guess.
Can you test an AI feature that another team or vendor built?
Yes. Tepia often starts by reviewing an existing feature’s prompts, retrieval setup and logs, scoring the current version to set a baseline, and then adding the test suite to your release pipeline.
How do you protect an AI feature from prompt injection?
Tepia red teams the feature with injection attempts hidden in messages and uploaded files, mapped to the OWASP Top 10 for LLM Applications. Fixes include separating instructions from content, limiting tool permissions and validating outputs before they act.
What happens to quality when OpenAI or Anthropic releases a new model?
Tepia pins your feature to a specific model version and runs any new version against your full test set before switching. You see the comparison by dimension and decide whether to upgrade.

What Our Customers Say.

A paragraph or two with information on your product/service or describes a problem your product/service is designed to solve.

Jascotina

CEO

“They customized the website’s backend to my business' specific needs and I am absolutely thrilled with the result.”

Water Saver Solutions

Senior Project Manager

"Tepia Co was always willing to go the extra mile for us."

Onward Engineering

VP & Operations Manager

"There are no hidden things, there are no surprises. We know what's going on."

Know your AI is right before users do