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

31 Oct. 2024 - - Total Reads 135

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

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 184 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

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

Testimonials

Thank you for all of your hard work in getting our beautiful Melrose website live today. Woohoo!From the incredible design, to all of the behind the scenes technical aspects, to making it all come together and managing all of our feedback. - Lucinda Hobson, Melrose Project Manager Thank you to each and everyone of you for your dedication and hard work in getting this live and running and for your continuous hard work over the week in ironing out the issues that come with a website launch. Kat Heath, Melrose Group Marketing Manager

More Testimonials
AndMine-Google-Partner-Signature