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

31 Oct. 2024 - - Total Reads 914

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: 0.9K

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 183 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

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

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