TechByteByByte

Human Feedback & Model Improvement Strategy

Closing Level 7: how user feedback flows back into improving prompts, retrieval, and models — and the systematic optimization hierarchy for deciding what to change first when a system underperforms.

#AI Engineering#Feedback#Level 7

Begin with the problem

A thumbs-down is a clue, not a diagnosis. Improvement starts by grouping evidence, locating the failing layer, testing the smallest change, and measuring whether it helped.

feedback + traces → categorize failure → choose smallest intervention → evaluate → release

What you will learn

  • Turn explicit and implicit feedback into actionable categories.
  • Choose among prompt, context, retrieval, tool, model, and fine-tuning changes.
  • Avoid reacting to isolated feedback without representative evaluation.

Current production grounding: OpenAI’s Evals documentation shows dataset- and grader-based evaluation for model applications.

These links document current public features and practices. They do not reveal a provider’s private implementation or guarantee that every product uses identical defaults.

1. The Engineering Problem

A system is underperforming. Which of the eight things you’ve learned to build — the prompt, the context assembly, the retrieval, the model, a fine-tune — do you actually fix? Without a systematic decision process, teams guess, often reaching for the most expensive fix (a bigger model, a fine-tune) when the real problem is a cheap, upstream issue.

This module closes Level 7 with exactly that decision process, plus the feedback loop that feeds it real signal.


2. Explicit vs. Implicit Feedback

EXPLICIT feedback: a user, deliberately signals quality --
                   a thumbs up/down, a rating, a correction

IMPLICIT feedback: inferred from user behavior -- did
                   they immediately rephrase the question (suggesting
                   the first answer was unhelpful)? Did they abandon
                   the conversation? Did they escalate to a human?

Implicit feedback is more abundant (every interaction produces it) but noisier to interpret. Explicit feedback is clearer but far rarer — most users don’t click a thumbs- down button even when unsatisfied. A mature system uses BOTH.


3. Feedback Pipelines

Feedback (explicit or implicit)
   |
   v
LOGGED, attributed to the SPECIFIC request/trace (Module 12)
   |
   v
AGGREGATED and analyzed for PATTERNS -- not acted on per single
data point
   |
   v
Feeds INTO: golden dataset additions (Module 10), prompt revisions
           (Module 5), or a signal that RETRIEVAL/model
           needs attention

4. The Systematic Optimization Hierarchy — The Decision

Tree

When a system UNDERPERFORMS, check levers in THIS order -- cheapest
and fastest FIRST:

1. RETRIEVAL: is the RIGHT information even being found? (Module 7)
   -- if NOT, fix this FIRST; nothing downstream matters if the
   model never sees the right context

2. CONTEXT ASSEMBLY: is relevant retrieved content
   actually making it into the final context? (Module 6)

3. PROMPT: are instructions clear and well-structured?
   (Module 5)

4. MODEL: does this task exceed the current model's
   reasoning capability? (Module 4) -- only reached after 1-3 are
   ruled out

5. FINE-TUNING: is this a style/behavior consistency
   issue, not a knowledge or reasoning gap? (Module 21)

6. ARCHITECTURE: do the individual levers all seem fine, but the
   overall APPROACH itself needs rethinking? (Module 22-23)

Incorrect idea: The single most common mistake: reaching for Step 4 or 5 (a bigger model, a fine-tune) when the actual problem is Step 1 or 2 — retrieval or context. A more expensive model cannot compensate for information it never received, directly your RAG course’s core diagnostic principle, generalized here across the entire system.

Why it is incorrect: This shortcut removes a validation or control boundary, allowing an error to pass into later stages where it becomes harder and more expensive to detect.


5. A Real-World Analogy — The Hospital, Once More

Module 2 and 10's doctor analogy: if a patient's TREATMENT
outcome is poor, a good hospital doesn't IMMEDIATELY
assume "we need a smarter doctor" -- it FIRST checks: was the
correct DIAGNOSTIC information even GATHERED (retrieval)? Was it
REVIEWED (context)? Were instructions to the CARE TEAM
clear (prompt)? Only AFTER ruling these out does it
consider whether the case exceeds current staff
EXPERTISE (model capability).

6. A worked developer example

TechCorp diagnoses two different underperformance scenarios using Section 4’s hierarchy:

ScenarioDiagnosisCorrect Fix
Responses miss key information present in the knowledge baseRetrieval isn’t finding the right documentsFix retrieval (Module 7) — NOT a bigger model
Responses are factually correct but inconsistent in tone across requestsA style/behavior consistency issue, not a knowledge gapConsider fine-tuning (Module 21) — NOT more context

7. How Is This Used in the Industry?

🤖 How Is This Used in the Industry?

Mature AI engineering teams apply this hierarchy as a disciplined diagnostic checklist before any improvement work begins — directly preventing the expensive, common mistake of reaching for a bigger model or a fine-tune when a cheap retrieval or prompt fix would have solved the actual problem.


8. Common Mistakes

Incorrect idea: Jumping straight to “we need a better model” without ruling out retrieval and context first.

Why it is incorrect: As shown directly in Section 4, this is the most common expensive misdiagnosis.

Incorrect idea: Acting on a single piece of feedback rather than aggregated patterns.

Why it is incorrect: As shown directly in Section 3, one data point is noise; a pattern across many is a real signal.

Incorrect idea: Relying only on explicit feedback (thumbs up/down).

Why it is incorrect: As shown directly in Section 2, this misses the majority of real user signal, most of which is implicit.


9. Code — A Systematic Optimization Hierarchy Diagnostic

What this shows: implementing Section 4’s decision tree directly — a diagnostic function that checks levers in the correct, cheapest-first order, exactly Section 6’s worked developer example made into working, repeatable logic rather than an ad-hoc team guess.

from dataclasses import dataclass
from enum import Enum

class ImprovementLever(Enum):
    PROMPT = "adjust_prompt"
    CONTEXT = "improve_context_selection"
    RETRIEVAL = "improve_retrieval"
    MODEL = "switch_model"
    FINE_TUNE = "fine_tune"
    ARCHITECTURE = "redesign_architecture"

@dataclass
class DiagnosisResult:
    lever: ImprovementLever
    rationale: str

def recommend_improvement_lever(prompt_is_clear: bool, context_is_relevant: bool,
                                  retrieval_finds_right_docs: bool, model_capability_sufficient: bool,
                                  issue_is_stylistic_not_factual: bool) -> DiagnosisResult:
    """Directly implements Section 4's SYSTEMATIC optimization
    hierarchy -- cheapest, fastest fixes FIRST, more
    expensive structural changes LAST."""
    if not retrieval_finds_right_docs:
        return DiagnosisResult(ImprovementLever.RETRIEVAL,
                                "Right information isn't even being found -- fix retrieval before anything else.")
    if not context_is_relevant:
        return DiagnosisResult(ImprovementLever.CONTEXT,
                                "Retrieval finds the right docs, but context assembly isn't using them well.")
    if not prompt_is_clear:
        return DiagnosisResult(ImprovementLever.PROMPT,
                                "Context is good, but prompt instructions aren't guiding the model correctly.")
    if not model_capability_sufficient and not issue_is_stylistic_not_factual:
        return DiagnosisResult(ImprovementLever.MODEL,
                                "Context and prompt are good, but this task exceeds current model's reasoning ability.")
    if issue_is_stylistic_not_factual:
        return DiagnosisResult(ImprovementLever.FINE_TUNE,
                                "Factual accuracy is fine -- this is a STYLE/behavior consistency issue.")
    return DiagnosisResult(ImprovementLever.ARCHITECTURE,
                            "All individual levers seem fine -- the underlying architecture itself may need rethinking.")

# Exactly Section 6's first scenario -- retrieval is broken,
# should be fixed BEFORE considering a bigger model.
result1 = recommend_improvement_lever(
    prompt_is_clear=True, context_is_relevant=True, retrieval_finds_right_docs=False,
    model_capability_sufficient=True, issue_is_stylistic_not_factual=False,
)
print(f"[{result1.lever.value}] {result1.rationale}")

# Exactly Section 6's second scenario -- a style/tone issue,
# not a knowledge gap.
result2 = recommend_improvement_lever(
    prompt_is_clear=True, context_is_relevant=True, retrieval_finds_right_docs=True,
    model_capability_sufficient=True, issue_is_stylistic_not_factual=True,
)
print(f"[{result2.lever.value}] {result2.rationale}")

Expected Output:

[improve_retrieval] Right information isn't even being found -- fix
retrieval before anything else.
[fine_tune] Factual accuracy is fine -- this is a STYLE/behavior consistency issue.

What this confirms: The function recommends fixing retrieval in the first scenario. It rules out a larger model and fine-tuning because the failure occurs earlier in the pipeline.

For the stylistic problem, it recommends fine-tuning rather than more context or a larger model. This turns Section 6’s worked example into a systematic, repeatable diagnostic instead of an individual guess.


10. Production Considerations

  • Feed, aggregated feedback patterns (Section 3) directly into Module 10’s golden dataset — real user-reported failures are valuable evaluation examples
  • Track which lever (Section 4) actually resolved each real improvement effort — this builds empirical confidence in the hierarchy’s ordering for YOUR specific system over time

11. Trade-offs

  • Rigorously working through the hierarchy in order takes more upfront diagnostic time than jumping straight to a guess — a real, worthwhile trade-off against the risk of an expensive, incorrect fix
  • Implicit feedback requires, careful interpretation — it’s more abundant than explicit feedback but noisier and easier to misread

12. Chapter Summary

Human feedback — both explicit (ratings, corrections) and implicit (behavior patterns) — should be aggregated and analyzed for patterns, then fed into a systematic optimization hierarchy: check retrieval, then context assembly, then prompt clarity, before ever reaching for a bigger model or a fine-tune.

The single most common expensive mistake is skipping straight to model or fine-tuning fixes when the problem is upstream — directly generalizing your RAG course’s “a good LLM can’t compensate for bad retrieval” principle across the entire AI Engineering stack this course has built.


13. Visual Cheat Sheet

Underperformance observed
   |
   v
1. RETRIEVAL right? --> 2. CONTEXT relevant? --> 3. PROMPT clear?
   |                                                    |
   NO -> fix here                                       NO -> fix
                                                              here
   (only reach 4-6 after 1-3 are ruled out)
   |
   v
4. MODEL capability sufficient? --> 5. Style issue -> FINE-TUNE
   |
   NO -> switch model

14. Top Takeaways

  1. Feedback comes in explicit (rare, clear) and implicit (abundant, noisier) forms — a mature system uses both.
  2. Act on aggregated feedback patterns, not individual data points.
  3. The systematic optimization hierarchy checks retrieval, then context, then prompt — before ever reaching for a bigger model or fine-tune.
  4. The most common expensive mistake is skipping straight to model or fine-tuning fixes when the problem is upstream.
  5. This hierarchy directly generalizes your RAG course’s core diagnostic principle across the entire AI Engineering stack.

15. Interview Questions

Q: 1. A system’s responses are missing key information. A team proposes switching to a larger, more capable model. What would you investigate first, and why?**

Ans: I’d check retrieval first — is the right information even being found and included in context? A larger model cannot answer correctly with information it was never given, directly your RAG course’s core diagnostic principle. Only after confirming retrieval and context are working correctly would model capability become a relevant hypothesis.

  • Why it matters: This is the single most common expensive misdiagnosis in AI system improvement — jumping to the most costly fix without ruling out cheaper, upstream causes.
  • Real-world example: Section 6’s first scenario.
  • Common mistake: Assuming “missing information” implies the model isn’t smart enough, rather than checking whether it ever received that information at all.
  • Interviewer is testing: Whether the candidate applies systematic diagnosis rather than jumping to the most visible or expensive fix.
  • Likely follow-up: “How would you confirm retrieval is the problem?” → Your RAG course’s Module 24 diagnostic process — check whether the correct document was even retrieved, using logged trace data (Module 12).

Q: 2. Distinguish explicit and implicit feedback, and explain why a mature system needs both.**

Ans: Explicit feedback is a deliberate user signal — a thumbs up/down, a rating, a correction — clear but rare, since most users don’t take the extra action even when dissatisfied. Implicit feedback is inferred from behavior — did the user immediately rephrase, abandon the conversation, or escalate to a human — abundant (every interaction produces it) but noisier to interpret correctly.

Relying only on explicit feedback misses the majority of real signal a system produces.

  • Why it matters: Teams relying solely on explicit feedback underestimate real dissatisfaction, since most unsatisfied users simply don’t click a feedback button.
  • Real-world example: A user who immediately rephrases their question is implicitly signaling the first answer was unhelpful, even without ever clicking thumbs-down.
  • Common mistake: Building a feedback pipeline around only explicit signals, missing the much larger implicit signal.
  • Interviewer is testing: Whether the candidate thinks broadly about feedback sources, not just the most obvious one.
  • Likely follow-up: “How would you operationalize implicit feedback?” → Log behavioral patterns (Module 12) and analyze them in aggregate (Section 3) for signals like rapid rephrasing or escalation rate.

16. Scenario-Based Question

Scenario: TechCorp’s team notices declining user satisfaction and, under deadline pressure, immediately begins evaluating a fine-tuning project to “make the model better.”

Two weeks into this effort, a newer team member reviews actual request traces (Module 12). They discover that a recent document re-indexing bug caused retrieval to silently return stale documents for roughly 30% of queries.

  • Problem Analysis: Section 8’s common mistake — the team skipped Section 4’s systematic hierarchy and jumped straight to the most expensive fix (fine-tuning) without diagnosing the actual root cause.
  • How to Think: Two weeks of fine-tuning effort were wasted on a problem fine-tuning could never have fixed — the model was never even seeing correct information for the affected 30% of requests.
  • Investigation: The newer team member’s approach — reviewing actual traces — is exactly Section 4’s correct starting point, applied after the fact.
  • Root Cause: No systematic diagnostic process was applied before committing to an expensive fix; the actual root cause was a retrieval-layer bug (Module 7), not a model capability gap.
  • Solution: Immediately halt the fine-tuning effort; fix the re-indexing bug; re-evaluate (Module 10-11) to confirm the satisfaction decline resolves before considering any further, justified improvements.
  • Trade-offs: The two weeks of fine-tuning investigation were wasted — a direct, concrete cost of skipping systematic diagnosis, which Section 4’s hierarchy is specifically designed to prevent.
  • Production Considerations: This scenario is exactly why Section 7 frames the hierarchy as a disciplined, mandatory diagnostic checklist — under deadline pressure is precisely when teams are most tempted to skip it, and precisely when skipping it is most costly.

17. Next Step

Next: Module 21 — Fine-Tuning vs. RAG vs. Prompting — Level 8 begins here: a practical decision framework for choosing between these three approaches, with real case studies for when each one wins.

Author
TechByteByByte Editorial Team
Reviewed by
TechByteByByte Admin
Published
Last reviewed