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

31 Oct. 2024 - - Total Reads 1,197

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

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

Testimonials

I strongly recommend AndMine and Michael's work to any forward thinking company. They have helped us rapidly evolve our business with great success in a very difficult period in retail. From online to offline they are the new generation of advertising delivering brilliant results and service. From simple EDM's to our new online store and creative campaigns, they have gone above and beyond, engrained themselves in our business and amplified our brand. We look forward to what Michael and the team achieve for us next. Harry Goles, OJAY Clothing

More Testimonials
AndMine-Google-Partner-Signature