Bias, Hallucination and Responsible AI

Recognize the ways LLM products can cause harm (bias, fabrication, overreliance) and build transparency and accountability in.

Intermediate · about 3 hours · difficulty 2/5

Learn first: Guardrails and Content Moderation, Citations and Grounded Answers

Even a secure, well-guarded app can harm people if it is confidently wrong, unfair, or trusted more than it deserves. Responsible AI is about anticipating these harms and designing against them.

Key risks

  • Hallucination: plausible but false statements. Mitigate with retrieval, citations, "I don't know" permission in prompts, and grounding checks. Never let an unverified model answer be the final word on health, legal or financial matters.
  • Bias: models absorb patterns from training data. Outputs can differ by name, gender, dialect or nationality. Test by swapping demographic details in otherwise identical inputs and comparing results, especially for screening, scoring or recommendation features.
  • Overreliance: users trust fluent text. Show sources, confidence cues and clear AI disclosure.
  • Misuse: think about how your feature could be abused at scale (spam, harassment, fraud).

Practices

  • Write a short model card or system card for your feature: intended use, known limitations, evaluation results.
  • Keep humans in the loop for consequential decisions.
  • Provide appeal and feedback channels for users affected by AI decisions.
  • Follow established frameworks such as the NIST AI Risk Management Framework to structure reviews.

Good enough to move on

You can run a counterfactual bias test on a feature, write a one-page system card for your app, and name the decisions in your product that must stay with a human.

Key concepts

  • Hallucination mitigation
  • Counterfactual bias testing
  • Overreliance and AI disclosure
  • Misuse and abuse scenarios
  • System and model cards
  • NIST AI RMF

Mini project

Take a resume-screening or recommendation prompt, create 40 paired inputs that differ only in name or gender, measure score differences, and write a one-page system card with your findings.

Check yourself

Why is a disclaimer saying 'AI can make mistakes' not enough for a feature that gives medication advice?

Free resources