AI Hallucinations, why AI Makes stuff up and how to code your App to solve it.

31 Oct. 2024 - - Total Reads 1,825

Hallucinations - Why AI Makes Stuff Up

One of the most persistent and dangerous problems in enterprise AI is hallucination — when the model confidently outputs false information. This can include made-up statistics, invented names, incorrect summaries, or even citations that look real but don’t exist.

To the average user, hallucinated content appears valid. The AI sounds sure of itself, which makes it easy to believe. But inside your business, this can cause operational confusion, support overload, and decision-making errors. Externally, it risks damaging your reputation, triggering legal trouble, or violating compliance standards.

What Causes Hallucination?

Large language models (LLMs) are probabilistic. They generate the next most likely word based on patterns — not a database of verified facts. Without strong prompt grounding or contextual reference, they may fabricate details to complete a response.

Example: Hallucinated Product Description

Prompt: “Write a product overview for our new MediScan X5 diagnostic device.”

AI Response (Hallucinated):

“The MediScan X5 features TGA-certified AI imaging, 30TB of data capacity, and was named Product of the Year by the Australian Healthcare Awards.”

Reality:

  • No TGA certification (yet)
  • No such award
  • Spec exaggeration

Strategy 1: Require Source Attribution or References

Force your AI to cite sources, or refuse to answer if none exist.

Strategy 2: Post-Process Outputs for Fact-Checking

Use classification or rule-based tools to verify outputs before releasing them to users. You can layer on API checks (e.g., search-based retrieval) or even human QA for high-risk outputs.

Strategy 3: RAG – Retrieval Augmented Generation

Rather than letting AI invent from scratch, combine it with an external search layer. Here’s a basic flow:

This approach dramatically reduces hallucination by grounding the model in real data.

AI hallucinations aren’t bugs — they’re part of how language models work. The key is to never treat them as authoritative without safeguards. Enterprises need structured fact-checking, data grounding, and output validation to use AI responsibly.

Want to build AI tools that are helpful and accurate? AndMine can help you architect hallucination-resistant systems that scale without compromising trust.

Michael Simonetti, BSc BE MTE
Posted by:

Post Reads: 1.8K

Share this

Go on, see if you can challenge us on "AI Hallucinations, why AI Makes stuff up and how to code your App to solve it." - Part of our 184 services at AndMine. We are quick to respond but if you want to go direct, test us during office hours.

Add Your Comment

Trusted by

One Shift
Cleanfit
Kadac
Victorian Government
Brisbane Times
OMS – Order Management System
Smart Company
HGG 
Mamma Lucia
Gadens
Metricon
skillhire logo
POSTER Magazine
Unsw Australia
Beaumont
DUSA, Deakin University Student Association
Gilchrist Connell
Street Kitchen
Associated Press
itfe logo
Forbes
Carlton Football Club
Adobe Professional
nara logo
Think & Grow Rich Inc
Peter Mac
NextTech
Scrum.org
Maxine
Boston Consulting Group
Federation Square
Mecca Brands
McArthur Skincare
High Street Armadale
Dinosaur Designs
Bigcommerce
Inferflora
King Wood Mallesons
ACTUATE IP
Craft CMS
Oakdale Meat Co
Fit My Car
Hairhouse Warehouse
Federation University Australia
Passage To India
Grainshaker
Garmin
Launtel
help logo
Aqium Gel
Xavier
Australian Government
findstaff logo
Appstore
CCI
Jalna
Arc One
Melbourne Heart
Etihad Stadium
The Age
Palace Cinemas
White Suede
Magento Solution Specialist
OpenAI
Cell Therapies
intojobs logo
Sports Power
Melbourne Sports and Aquatic Centre – MSAC
Max’s
Instant RockStar
Plants
Catholic Insurance
Amino Active
SwinBurne University of Technology
Castran Gilbert
The Burger Cheese
Toni&Guy
Switzer Media+Publishing
WTFN
Google
Grow Your Business
Ego Pharmaceuticals
Kay&Burton
Globird
Parker Lane
Telstra
Fresh Cheese Company
Acquia Certified Site Builder Drupal
Positive Poster
Magento
Florsheim Shoes
kestrel logo
Microsoft Certified Azure Fundamentals
Bondi Sands
Viktoria & Woods
learning partners logo
SunSense Digital Agency
Matchbox Homewares
Australian Anthill
RMIT University
QV Skincare
Rydges
Heat Holders
Green St Juice CO
Eway
Engineers Without Borders
Bulk Nutrients
The Fortune Institute
ISO CERTIFIED 27001
Marshall White
LBG Australia and New Zealand
The Canberra Times
Royal Freemasons
Cooper Mills
Vitura Health
Gilbert+Tobin
Novvi
Vendor Advocacy Australia
French Tables
Uber
Tomorrow Stars Basketball
iPrimus
GooglePlay
Van Egmond Group
Focus On Furniture
NMI Insurance
ADP Payroll
PranaOn
mas national logo
Bolle Safety
htn logo
Madman Entertainment
Wild Rhino Shoes
interact logo
University of South Australia
ATT logo
Sunday Creek
Naturtint
GPT Group
Chia
Melrose MCT
Ebay
NGS Super
Tek Ocean
OJAY
DeeWhy Market
Loan Market
intowork logo
Fairfax Media
Jetstar
Schiavello
Tassal
Celebrate Health
CAN- Common Wealth Bank
Australian Physiotherapy Association
National Relay Services
Australian Organic Food CO
James Buyer Advocates
Drupal
Fast.co
Crumpler
Banki Haddock Fiora
nextgenskills logo
Coles
Bostik
131 Pizza
Rackspace
Herbert Smith Freehills
Thomson Geer
AC/DC
Mark Alexander Design
News
VISSF
Passage Foods
Macmillan Publishing
Melrose Health
SMH – The Sydney Morning Herald
TPP
Atlantic Group of Companies
ISO Certified
ctc logo
Macpherson Kelley
Cronos Australia
Oracle
CB Richard Ellis
Rock Pool Group
The University Of Melbourne
Tribe
Watches of Switzerland
Elucent
ABC
Movember
Windsorsmith
Melbourne Central
The Royal Melbourne Hospital
Bank of Cyprus
Taylor Rose
Ubertas Group
Ello
MAP
Dial Before You Dig
Toy World
MyAccount
Engine Swim
National Museum of Australia
Shell
Hanover
liberal
Grays Ecommerce
Bintani Australia
Moov Head Lice
21st Century Australia Party
BlackMores
Natralus Australia
Arthur Galan
work and training logo
Corrs chambers westgarth
Paypal
aga logo

Testimonials

Not only is Michael professional but he is also a great friend to have in your court. He is balanced in his advice, fair in his quotes and has the best twitter feed for all things tech - i highly recommend you follow him and also hire him! Clare Smith, GM – Brand & Marketing Communications at Sensis

More Testimonials
AndMine-Google-Partner-Signature