翻篇收录说明
翻篇网页快照

AI Hallucination: What It Is and How to Catch It

https://bolt.new/resources/ai-builder-glossary/ai-hallucination

最近抓取:2026-12-05 15:22:00(北京时间)

最近内容变化:2026-12-02 13:51:29(北京时间)

这是最近一次有效抓取的文本快照,不含网页脚本、图片和动态交互内容。实际网页可能已更新。

访问原网页

页面简介

An AI hallucination is output that sounds right but is false. Learn why models hallucinate, what it looks like in generated code, and how to catch it.

正文摘录

AI & LLMs What is an AI hallucination? An AI hallucination is output that a model presents as fact but that is false, invented, or unsupported: a confident answer with nothing behind it. Start buildingStart building Browse all termsBrowse all terms New to Bolt? Sign up free. Technical definition An AI hallucination is generated content that is not grounded in the model's input or in fact, yet is produced with the same fluency and confidence as correct output. Hallucinations arise because generative models predict likely continuations rather than retrieve verified records. When the likely continuation and the true one diverge, the model produces the likely one. In code generation, hallucinations take specific and recognizable forms: calls to library functions that do not exist, imports of packages that were never published, API parameters invented to fit the shape of a request, and references to files or variables the project does not contain. In plain terms The AI made something up and did not tell you. It is not lying, and it does not know it is wrong. It produced the thing that looked most like a right answer. Hallucinations are hard to catch for one reason: they read exactly like the correct output. There is no hedge, no warning, and no change in tone. Why it matters Confidence is the whole problem. A hallucination that looked uncertain would be harmless. Instead it ships. If you are building your own software, this is the single habit that protects you: test the behavior rather than trusting the description. Click the button. Submit the form. Check that the record saved. A hallucinated feature will describe itself as working and fail on contact. The stakes rise with what the code touches. A wrong color is a nuisance. A payment flow or a permission check that only appears to work is a real problem.