PGoCareerGoCareer prep tools
Home
LoginSign up
  • Java
  • Python
  • AI
  • React
  • Angular
  • PHP
  • Node.js
  • SQL
  • DSA
  • HTML
  • CSS
  • JS
  • Spring
  • ML
  • MongoDB

AI · Theory

AI Hallucination

← All stacks

Theory

191/215

AI Hallucination

Hallucination: the model outputs fluent text that is false — fake citations, wrong dates, invented APIs. LLMs predict likely words, not a truth database. Mitigate: retrieval (RAG), citations, human check, lower temperature for facts.

Classroom — ask for a paper title that does not exist — a chat model may invent one. That demo is the warning.

AI Hallucination — output — warning. LLMs predict likely words, not a library catalogue.

Exam tip

What it is + one mitigation.

Example

# Hallucination
print("Asked: cite the 2019 Sharma paper on jug algorithms.")
print("Model: invents author, title, year — looks real.")
print("Fix: retrieve docs / ask a human / lower temperature.")

AI Hallucination — output: warning. LLMs predict likely words, not a library catalogue.

Short notes

  • DefFluent but false.
  • RuleFix : RAG + human check.

Questions

1

Explain AI Hallucination as if you are teaching a junior — definition, then one example.

2

What does the example print, and what does that prove?

3

What mistake do freshers make with AI Hallucination?

Previous← Simple Reflex AgentNextSituation Calculus →
P

GoCareerGo

Utilities · Preparation Hub · Resume · CV · Tools — one workspace.

Workspace

DashboardProfilePreparation HubResume builderCV builderCareer planning

PDF Tools

Merge PDFSplit PDFCompress PDFImage to PDFAll toolsJobs

Image & QR

Compress ImageResize ImageQR ScannerQR GeneratorBlogIT interview prep

Company

FAQFeedbackContactPrivacyTermsSitemap

© 2026 GoCareerGo. Keep moving forward.