跳到正文
DEV Community· Paragon·· 3 小時前AI 評分54

ChatGPT 為何會編造內容,以及如何用 RAG 降低錯誤

Why ChatGPT Makes Things Up — And the Fix Nobody Told You

AI 導讀

ChatGPT 會在缺乏可查核資料時,按最可能的後續文字生成答案;文章説明可先用 RAG 檢索相關來源,再要求模型根據來源作答。Mata v. Avianca 案中,兩名律師及其律師事務所因提交六宗虛構判例,被處以 $5,000 罰款。文章示範上載文件、要求只按文件回答並核對引文和頁碼,也指出 RAG 仍可能檢索錯誤內容,或讓模型混入外部推測。

正文

Originally published on Substack: https://paragonaimag.substack.com/p/why-chatgpt-makes-things-up-and-the

Full video: https://youtu.be/tI_02Sl3gHM

Podcast: [podcast URL once known; edit in after step 16]

Why ChatGPT Makes Things Up — And the Fix Nobody Told You, from Paragon AI MAG. ChatGPT invented six court cases that never existed — and real lawyers filed them in a real court — and got fined $5,000. This is not a story about AI lying. It is a story about a tool that guesses beautifully when it has nothing to check. Today: why models invent facts, the Mata v. Avianca case and its $5,000 lesson, how RAG actually works, a 3-step walkthrough you can use today, and the 5-rule check-before-you-trust list. Subscribe free to Paragon AI MAG for one source-checked AI story every day.

Why ChatGPT Makes Things Up — And the Fix Nobody Told You

By Paragon AI MAG — one video and one podcast episode every day, every fact checked against sources several times before release.

ChatGPT invented six court cases that never existed — and real lawyers filed them in a real court — and got fined $5,000.

That is not a hypothetical. It is the story of Mata v. Avianca, Inc., and it is the clearest warning we have about how AI works — and how to use it safely. This is not a story about AI lying to you on purpose. It is a story about a tool that guesses beautifully when it has nothing to check.

Why AI invents facts

Large language models like ChatGPT are not databases. They are next-word prediction machines. They are trained to predict the most plausible next word, not to look up a fact. They have no fact book inside. And their confidence is fluency, not truth: if an answer sounds smooth and confident, it feels true — even when it is completely invented.

The US National Institute of Standards and Technology prefers the term "confabulation" over "hallucination" for this reason — the AI does not literally see things that are not there. It strings together highly probable words that happen to be totally false. In its Generative AI Profile (NIST AI 600-1, July 2024), NIST describes hallucination as the production of confidently stated but erroneous or false content.

Two kinds of made-up answers

Not all hallucinations look the same. There are two main types.

Intrinsic hallucinations: the answer directly contradicts the source material. You upload a contract and ask for the renewal date, and the AI gives you a date that is not in the document at all.

Extrinsic hallucinations: the answer sounds right but cannot be verified from the source. This is the more dangerous type. It includes invented citations, wrong dates, invented software functions, and made-up quotations. It sounds authoritative, so you are less likely to check it.

In Mata v. Avianca, the lawyers fell into the second trap. They asked ChatGPT for legal research, received six cases that sounded perfectly real, and filed them — without verifying a single one.

The $5,000 legal disaster

In February 2022, Roberto Mata filed a personal injury lawsuit against the airline Avianca. In March 2023, his lawyers, opposing a motion to dismiss, filed a legal brief citing six federal decisions. None of them actually existed.

When the court could not find them and requested copies, the lawyer did something remarkable: instead of checking a real law library, he went back to ChatGPT and asked whether cases like Varghese were real. Optimizing for fluency, the AI cheerfully assured him that yes, they definitely were. The lawyer then submitted the AI's completely fabricated full-text opinions to the federal court.

On 22 June 2023, Judge P. Kevin Castel of the US District Court for the Southern District of New York issued the sanctions opinion (reported at 678 F. Supp. 3d 443): a $5,000 penalty, jointly and severally, on the two lawyers and their firm for submitting those six fictitious cases. The crucial detail: the judge's sanction was for the unchecked output, not for the mere use of AI itself. As the opinion put it, there is nothing inherently improper about using a reliable AI tool for assistance — but existing rules impose a gatekeeping role to ensure the accuracy of filings.

And Mata was not a one-off. A public hallucination-cases database tracked more than 1,300 court decisions globally dealing with this exact issue by April 2026, and more than 1,500 US cases by October 2026, as reported. The problem has also reached the public sector: Washington Post voter-guide tests, as reported, found that six chatbots named the wrong congressional district up to 48% of the time. When real decisions are on the line, the stakes could not be higher.

The fix: give AI the book

Here is the fix nobody told you: make AI look things up first.

Think of it like an exam. A closed-book exam forces the student to rely on memory — and memory fails. An open-book exam lets the student check the source before answering. AI works the same way.

This is called retrieval-augmented generation, or RAG. It was named in a 2020 paper by Patrick Lewis and colleagues at Facebook AI Research, working alongside University College London and New York University.

How RAG works, step by step:

  1. Chunking. Your documents are split into small passages, a few paragraphs each.
  2. Embedding. Each chunk is turned into a number pattern — a mathematical representation of its meaning, like coordinates on a map — so the system can search by meaning, not just keywords.
  3. Retrieval. When you ask a question, the system searches that map and pulls the few most relevant passages.
  4. Augmentation. Those exact passages are pasted into the prompt, right alongside your question.
  5. Generation. The model writes its answer strictly from those passages — and, critically, shows you exactly which page it used.

You already use RAG in everyday tools: the ChatGPT file-upload feature, chatting with your documents in NotebookLM, Microsoft 365 Copilot summarizing a thread, and Gemini's search grounding all work this way. They do not just guess from memory — they retrieve first. That is why RAG has become the industry-wide standard for safely chatting with your own data.

Your 3-step walkthrough

You can use this method yourself, right now:

Step 1: Upload YOUR document. Use file-upload mode, not general chat. Use a clearly labelled invented handbook example for a test — and never upload real private documents into a test you do not control.

Step 2: Ask only from that document. Say: "Answer only from the document I uploaded. Do not use outside knowledge."

Step 3: Demand the quote and the page, and check it yourself. Say: "Quote the exact passage and give me the page number." Then open the document and verify the quote yourself. If the AI cannot quote it, do not trust it.

This turns AI from a guesser into a research assistant with receipts.

Honest limits: RAG is not magic

RAG heavily reduces made-up answers. It never entirely eliminates them. Failures happen in two distinct ways.

A search failure: the system retrieves the wrong passage — say, an outdated employee handbook from three years ago that nobody bothered to delete — and the AI perfectly quotes the wrong answer. It inherits your messy files and delivers a beautifully, faithfully wrong answer.

A model failure: the AI straight-up ignores the chunks it was handed and blends in outside guesses from its general training data anyway.

That is why AI systems must be explicitly built to just say "I don't know" when the answer is not clearly in the text — and why human responsibility remains paramount. An unchecked guess from an AI is a massive liability, no matter how advanced the system seems.

The 5-rule check-before-you-trust list

For your daily workflow, live by this list before you trust any AI output:

  1. Never accept an uncited claim for money, health, legal or school decisions.
  2. Always ask for the source. Make the AI show its work.
  3. Open the source yourself to verify it actually exists.
  4. Check specific numbers, dates and names separately. These are the hardest tokens for an AI to predict correctly, making them highly susceptible to invention.
  5. Use file-upload mode for your own documents and make it quote the exact page.

The payoff

AI does not lie to you on purpose. It guesses beautifully when it has nothing to check.

Give it the book — and check the page it points to — and the guessing stops. That one habit is the difference between being fooled by AI and using it well. In an age of automated answers, are you willing to be the human gatekeeper of the truth?


Watch the full Paragon AI MAG video and listen to the podcast episode on this topic. Subscribe to Paragon AI MAG for one source-checked AI story every day. Sources: Mata v. Avianca, Inc. (S.D.N.Y., Judge Castel, 22 June 2023); Lewis et al. (2020) RAG paper; NIST Generative AI Profile (AI 600-1, July 2024); Washington Post voter-guide tests as reported; SmartChunks, ToolBit, Regulayer and JustWebWorld explainers. Note: specific model hallucination rates mentioned in the video's narration are not repeated here, because they were not independently verified from the production sources.

來源:DEV Community · dev.to