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

31 Oct. 2024 - - Total Reads 522

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

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

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

Testimonials

It is great working with such a dedicated and competent team in this ever changing space and I would highly recommend Michael and his work. Stephanie Clayton, Marketing Services Manager, Ego Pharmaceuticals

More Testimonials
AndMine-Google-Partner-Signature