Evaluate a Knowledge Assist Answer Generator Before Launch

Last updated: November 29, 2026

Quick Overview

You built a retrieval-augmented system that answers customer questions for agents in real time from a company's help articles. How would you evaluate it offline and online before rolling it out to a new enterprise tenant?

Cresta
Machine Learning
Machine Learning Engineer
Cresta
November 29, 2026
Machine Learning Engineer
Technical Screen
Machine Learning
Medium

0

0

0 solved


You built a retrieval-augmented system that answers customer questions for agents in real time from a company's help articles. How would you evaluate it offline and online before rolling it out to a new enterprise tenant?

Cresta's Knowledge Assist generates answers from customer knowledge sources during live calls, where a wrong policy answer read aloud by an agent is costly. The interviewer checks that the candidate evaluates retrieval and generation separately, defines groundedness, builds a tenant-specific test set, and ties offline metrics to online agent behavior.

What the Interviewer Expects
  • Split evaluation into retrieval quality and answer quality
  • Build a labeled question set from real tenant transcripts
  • Define groundedness and correctness and how to judge them at scale
  • Include no-answer cases and measure abstention
  • Propose online metrics such as answer usage and agent edits
  • Set latency as an explicit constraint
Key Topics to Cover
RAG evaluation
Recall@k
Groundedness
LLM as judge
Abstention
How to Approach This
  1. Understand the bias-variance trade-off. High training accuracy but low test accuracy signals overfitting.
  2. Choose evaluation metrics carefully based on the problem. Accuracy alone is often insufficient.
  3. Feature engineering is often more impactful than model selection.
  4. Know when to use tree-based models (tabular data) vs neural networks (unstructured data).
  5. Handle class imbalance with SMOTE, class weights, or appropriate loss functions.
Possible Follow-up Questions
  • How would you validate that your LLM judge agrees with human reviewers?
  • Articles conflict with each other; how should the system behave?
  • How do you detect that a knowledge base update broke previously correct answers?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Explore ML Interview Prep
Sample Answer
Clarify

The question is detected from the customer turn, retrieval runs over the tenant's articles, and an LLM drafts a short answer with citations shown in the agent panel. Constraints: under about 1.5s, ten...

Approach

Build an eval set of 300 to 500 real customer questions mined from the tenant's transcripts, stratified by topic and frequency, including 15 to 20% questions that the knowledge base cannot answer. Hav...


Submit Your Answer
Markdown supported

Related Questions