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

31 Oct. 2024 - - Total Reads 1,198

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.2K

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

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

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