Skip to content
Mayrian

Measuring a RAG assistant before release

Faithfulness, answer relevancy, context precision and recall: the measures that show whether an assistant is ready.

By Mayrian

· 1 min read

Share

A retrieval-augmented generation (RAG) assistant answers from your own content. Whether it's ready depends on two things: whether retrieval finds the right passages, and whether the answer stays true to them.

Retrieval

Context recall asks whether retrieval found the passages that hold the answer. Context precision asks whether those passages were ranked above irrelevant ones. Low recall means answers are missing information; low precision means the model is distracted by noise.

Generation

Faithfulness, also called groundedness, is the share of an answer's claims supported by the retrieved context. Response relevancy is whether the answer addresses the question asked. Evaluation tools such as Ragas compute these against a test set.

The test set

The measures are only as good as the questions. A few hundred questions written by subject-matter experts, with reference answers, covers the common cases and the awkward ones. Add adversarial prompts to test prompt injection, which tops the OWASP Top 10 for LLM Applications.

After launch

Keep measuring. User ratings, corrections and hand-offs to people show where answers fall short, and each fix goes back into the test set before the next release.

How we can help

Choose a service to see its capabilities. Point at one to see what it's used for and what you receive.

All services

Custom Software Development

Software development

Web platforms and internal tools built around how your business works, released in small, tested increments.

Used for

  • Customer portals
  • Internal tools
  • SaaS products
  • Workflow and approvals
  • Marketplaces and booking platforms
  • Enterprise application extensions

What you receive

  • Source code in your repository, with a documented architecture
  • CI/CD pipeline and infrastructure as code
  • Automated test suite
  • Monitoring, logging and alerting
  • Security review against the OWASP Top 10:2025 and ASVS 5.0
  • Ownership and documentation handover
More on Software development

Working on something like this?

Start with a free technical consultation: a plan covering the right tech stack, architecture, timeline and budget.

Start a project