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

31 Oct. 2024 - - Total Reads 913

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

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

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