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

31 Oct. 2024 - - Total Reads 178

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: 178

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

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

Testimonials

Michael and his team have just launched our new website and the team at AndMine have been professional and a pleasure to deal with. From the very start, it was evident that Michael was able to deliver a first class website and gave great advice about social media and other tools we need to consider, given the nature of our business. After several design phases, we worked closely together and achieved a result that we are very happy with. I wouldn’t hesitate recommending AndMine for web and online marketing related services. Illona Vak, C Squared Executive

More Testimonials
AndMine-Google-Partner-Signature