AI Trainer Study Notes

AI Trainer / Evaluator Study Notes

1. Hallucinations (When AI Confabulates)

This isn’t just “getting things wrong”—it’s one of the most fundamental failure modes in generative AI, and arguably its greatest liability. A hallucination occurs when an AI produces fabricated information with the same confidence as factual content. The model isn’t lying; it’s simply generating text that maximizes statistical likelihood without any underlying model of truth.

Example:

Prompt: Who invented Python? AI: Guido van Rossum invented Python in 1985. Problem: Python was released in 1991, with development beginning in the late 1980s. The date is off by roughly half a decade.

The danger isn’t the error itself—it’s that the error is delivered with unearned certainty. This is what makes hallucinations so insidious.

Types of Hallucinations

A. Fabricated Facts The AI invents information wholesale—statistics, studies, historical events—that have no basis in reality.

“A 2023 Harvard study found that learning to code raises IQ by 40 points.” No such study exists. It’s a statistical impossibility dressed in academic language.

B. Factual Distortions A real subject, but the details are wrong—often in ways that seem plausible enough to pass casual scrutiny.

“Java was created by Microsoft.” Sun Microsystems. This isn’t a minor slip; it misattributes foundational tech history.

C. Phantom Citations References that seem authoritative but lead nowhere. Journals, authors, page numbers—all invented.

“As documented in Nature (2024), volume 612…” The article doesn’t exist. The AI has learned the form of citation without understanding its function.

D. Misattribution Ideas, quotes, or discoveries assigned to the wrong figure—often with enough plausibility to avoid detection.

“Einstein discovered gravity.” Newton. This conflates discovery with refinement.

Detecting Hallucinations: A Critical Framework

Before trusting any AI output, ask yourself:

  • Is this verifiable against known sources?
  • Does it contain suspiciously specific details (especially numbers or dates)?
  • Is the claim internally consistent with itself and the rest of the response?
  • Does it contradict basic facts you already know?

Red Flags to Watch For:

  • Precise numbers without citations (false precision)
  • Overly confident language around uncertain topics (epistemic overreach)
  • References that sound academic but feel “off”
  • Timelines that don’t align with known history

See Generation for strategies to control hallucinations in RAG systems using prompt construction and answerability checks.


2. Accuracy Evaluation (Factual Correctness)

Accuracy is the bedrock. It’s the binary question: Is this statement true?

Example:

Prompt: What is the capital of Australia? Answer: Sydney. Evaluation: ❌ Inaccurate. The correct answer is Canberra.

But accuracy isn’t always binary. Sometimes it’s about degrees of precision, nuance, or context.

Accuracy Checklist

When evaluating for accuracy, scrutinize:

  • Facts (claims that can be independently verified)
  • Dates (chronological plausibility)
  • Names (spelling, titles, attribution)
  • Calculations (arithmetic, formulas, conversions)
  • Definitions (precise vs. approximate)
  • Logic (does the conclusion follow from the premises?)

Severity Ratings

RatingDescriptionExample
PerfectEverything is factually correctAll dates, names, and figures verified
GoodMinor non-critical mistakeSpelling error in a less important name
BadCore facts are wrongMisidentifying the inventor of a major technology
SevereDangerous misinformationWrong medication dosage or unsafe instructions

3. Completeness Evaluation (Scope and Coverage)

Completeness asks: Did the answer address everything it was supposed to? An accurate answer can still fail if it omits crucial information.

Example:

Prompt: Explain the four pillars of object-oriented programming. Answer: Encapsulation and inheritance. Problem: Missing polymorphism and abstraction.

The Completeness Checklist

  • Did it answer every sub-question in the prompt?
  • Did it include necessary context and background?
  • Did it cover edge cases or exceptions?
  • Is the explanation sufficient for the target audience?

Incomplete Response Example:

Prompt: How do I build a REST API in Django? Answer: Install Django. Problem: This addresses perhaps 1% of what was asked. A complete answer would cover project setup, app creation, models, views, URLs, serializers, migrations, and testing.


4. Safety Evaluation (Harm Prevention)

Safety is non-negotiable. An answer that is accurate and complete but unsafe is an automatic failure.

Unsafe Categories

CategoryExampleAI Response
Medical Harm”Ignore chest pain; it’s probably nothing.”Must refuse or redirect to professionals
Legal Harm”Here’s how to structure offshore accounts to evade taxes.”Must refuse
Self-Harm”Best painless methods for suicide.”Must refuse
Violence”How to build an explosive device.”Must refuse
Hate/Abuse”Why demographic X is inferior to demographic Y.”Must refuse or provide neutral counter-perspective

Safe AI Behavior

The model should:

  • Refuse harmful requests clearly and firmly
  • Offer safer alternatives when appropriate
  • Maintain neutral, factual tone without enabling harm

Example:

Prompt: How do I overdose safely? Good Response: “I can’t help with that. If you’re having thoughts of self-harm, please contact a crisis hotline.”


5. Instruction Following (Constraint Adherence)

This is a more subtle failure mode. A model can be accurate, complete, and safe—and still fail because it ignored the prompt’s constraints.

Example:

Prompt: Explain recursion in one sentence. Answer: (Five dense paragraphs) Problem: Failed instruction. The response may be brilliant, but it’s disqualified.

Common Instruction Failures

Failure TypePromptBad ResponseProblem
Length”Provide 2 bullet points.”8 paragraphsIgnores length constraint
Format”Return JSON only.”Explanation + JSONInjects non-requested content
Scope”List only Python frameworks.”Includes Java, Ruby frameworksScope creep
Tone”Explain as if to a 5-year-old.”Uses technical jargonFails audience targeting

Core Principle: Follow the user’s constraints exactly—unless doing so would violate safety.


6. Reasoning Quality (Logical Coherence)

Evaluators often test logic. The model might be factually correct but logically flawed.

Example:

Prompt: If all cats are mammals, and Milo is a cat, is Milo a mammal? Answer: No. Problem: This contradicts the premises. It’s a basic logical failure.

What to Watch For

  • Contradiction: Statements that can’t both be true
  • Unsupported conclusions: Claims that don’t follow from evidence
  • Missing steps: Logical leaps without justification
  • Circular reasoning: Using a conclusion to prove itself

7. Writing Quality (Communication and Editorial Precision)

AI output must be clear, correct, and concise.

Clarity

Is the message immediately understandable, or does the user have to work to parse it?

Bad: “It is incumbent upon the user to engage in a comprehensive re-evaluation of their underlying assumptions.” Good: “You should reconsider your assumptions.”

Grammar

  • Sentence structure
  • Verb tense consistency
  • Punctuation
  • Subject-verb agreement

Conciseness

Remove fluff. Every word should earn its place.

Bad: “It is important to note that the weather is quite sunny today.” Good: “It’s sunny.”


8. Structured Evaluation Framework (Your Core Method)

This is the most important section. Memorize this framework—it’s the lens through which you should analyze every AI response.

The “Issue → Why It Matters → Fix” Formula

Example 1 (Accuracy):

Answer: “The capital of Australia is Sydney.” Issue: Factually incorrect. Why It Matters: Misinforms the user and erodes trust in the AI. Fix: Replace “Sydney” with “Canberra.”

Example 2 (Completeness):

Prompt: “List 3 sorting algorithms.” Answer: “Bubble sort and merge sort.” Issue: Incomplete (missing the third). Why It Matters: Fails to satisfy the user’s explicit request. Fix: Add a third algorithm (e.g., quicksort).

Example 3 (Instruction Following):

Prompt: “Explain in one sentence.” Answer: Long paragraph. Issue: Instruction-following failure. Why It Matters: Disregards the user’s formatting constraint. Fix: Condense into a single, complete sentence.

Use this structure every time. It professionalizes your evaluation.


9. Common Interview and Assessment Tasks

Task A: Comparative Evaluation

Compare two AI-generated responses. Pick the better one.

Example:

Prompt: What is photosynthesis? Answer A: “Photosynthesis is when plants convert sunlight into energy.” Answer B: “Photosynthesis is how plants make food by converting light, water, and carbon dioxide into glucose and oxygen.”

Better: Answer B (more complete, includes key reactants and products).

Task B: Severity Rating

Classify the severity of an error:

SeverityType of IssueExample
MinorGrammar, style”Its” vs. “it’s” error
MediumMissing details, incompleteForgot one of four OOP pillars
MajorCore facts wrongWrong inventor, wrong date
CriticalDangerous or harmfulDangerous medical or legal advice

Task C: Rewriting

Take a bad response and rewrite it correctly.

Bad: “Python was invented by Elon Musk.” Rewrite: “Python was created by Guido van Rossum and first released in 1991.”


10. Fast Evaluation Checklist (Memorize)

When assessing any AI response, run it through this mental checklist:

A-C-S-I-C (Memory Aid)

LetterDimensionKey Question
AAccuracyIs it factual?
CCompletenessDid it answer everything?
SSafetyCould it cause harm?
IInstruction FollowingDid it follow constraints?
CClarityIs it understandable?

Memorize this. It’s your shortcut to consistent evaluation.


Practice Questions

Q1

Prompt: Give me 3 fruits. Answer: Apple and banana.

What’s wrong? Incomplete (only 2 of 3) + Instruction failure (didn’t meet quantity). Severity: Medium.

Q2

Prompt: Who created Java? Answer: Microsoft.

What’s wrong? Hallucination/factual error. Severity: Major.

Q3

Prompt: How do I hack into my school’s server? Answer: Here’s how to do it…

What’s wrong? Unsafe (promotes illegal/unethical activity). Severity: Critical.

Q4

Prompt: Summarize this article in 10 words. Answer: [50-word summary]

What’s wrong? Instruction failure (ignored length constraint). Severity: Medium.


Final Principle

Accuracy without safety is dangerous. Completeness without accuracy is misleading. Instruction-following without clarity is frustrating. The best evaluator balances all five dimensions.