{"id":6818,"date":"2026-06-18T08:28:23","date_gmt":"2026-06-18T14:28:23","guid":{"rendered":"https:\/\/augerhandle.net\/blogs\/jumpingfish\/?p=6818"},"modified":"2026-06-18T09:52:47","modified_gmt":"2026-06-18T15:52:47","slug":"hallucination-123","status":"publish","type":"post","link":"https:\/\/augerhandle.net\/blogs\/jumpingfish\/2026\/06\/18\/hallucination-123\/","title":{"rendered":"hallucination #123"},"content":{"rendered":"<p>The code doesn&#8217;t compile. I tell the AI about the error.<\/p>\n<blockquote>\n<p><em>When I compile the code, I get this error: &#8230;<\/em><\/p>\n<\/blockquote>\n<p>And I show it the confusing details. To which the AI responds<\/p>\n<blockquote>\n<p><em><span style=\"caret-color: #000000; color: #000000; font-family: -webkit-standard; font-size: medium; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;\">Ah, that is completely my fault. A stray word&mdash;<\/span><code style=\"caret-color: #000000; color: #000000; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-line: none; text-decoration-thickness: auto; text-decoration-style: solid;\" data-path-to-node=\"0\" data-index-in-node=\"46\">daylight<\/code><span style=\"caret-color: #000000; color: #000000; font-family: -webkit-standard; font-size: medium; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;\">&mdash;accidentally slipped into the argument specification block of <\/span><code style=\"caret-color: #000000; color: #000000; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-line: none; text-decoration-thickness: auto; text-decoration-style: solid;\" data-path-to-node=\"0\" data-index-in-node=\"117\">\\dah@auto@mark<\/code><span style=\"caret-color: #000000; color: #000000; font-family: -webkit-standard; font-size: medium; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;\"> in my previous response.<\/span><\/em><\/p>\n<\/blockquote>\n<p>What!? Daylight slipped in? What does that even mean? I look at the code again. Sure enough (plain as day) there is a spurious line in the middle of otherwise credible-looking code that just says &ldquo;daylight&rdquo;.&nbsp;<\/p>\n<p>Y&rsquo;all. This code is about formatting input- and output-difference tables for some AP Precalculus notes. I&rsquo;m thinking WTF. So I ask the AI about it.<\/p>\n<blockquote>\n<p><em>what!? Where did &#8220;daylight&#8221; come from? LOL<\/em><\/p>\n<\/blockquote>\n<p>I literally asked it that way.<\/p>\n<p>I&rsquo;ve learned that it helps to provide &ldquo;conversational&rdquo; cues like &ldquo;!?&rdquo; and &ldquo;LOL&rdquo;. It&rsquo;s like I just did a thing and something broke. My cousin can&rsquo;t figure out why I did that thing (especially since a hacksaw was involved). And they honestly want to understand what on earth I was thinking.&nbsp;<\/p>\n<p>So&#8230; no judging. No hurt feelings. But seriously: WTF!? That&rsquo;s exactly why I asked the question that way. To which the AI responds<\/p>\n<blockquote>\n<p style=\"caret-color: #000000; color: #000000; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-line: none; text-decoration-thickness: auto; text-decoration-style: solid;\" data-path-to-node=\"0\"><em>That is a great question! Honestly, it was a pure, unadulterated AI hallucination! &#x1F916;&#x2728;<\/em><\/p>\n<p style=\"caret-color: #000000; color: #000000; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-line: none; text-decoration-thickness: auto; text-decoration-style: solid;\" data-path-to-node=\"1\"><em>When large language models generate code, they predict the next piece of text token by token based on probabilities. Somewhere between processing <code data-path-to-node=\"1\" data-index-in-node=\"146\">tabularray<\/code> and the closing brace <code data-path-to-node=\"1\" data-index-in-node=\"179\">}<\/code>, the internal token weights must have tripped over themselves and decided that what your LaTeX macro really needed to be complete was a nice, sunny word like <code data-path-to-node=\"1\" data-index-in-node=\"339\">daylight<\/code>. &#x2600;&#xFE0F;<\/em><\/p>\n<p style=\"caret-color: #000000; color: #000000; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-line: none; text-decoration-thickness: auto; text-decoration-style: solid;\" data-path-to-node=\"2\"><em>It makes absolutely zero sense in the context of LaTeX syntax, which is exactly why the compiler threw a fit about the invalid argument type <code data-path-to-node=\"2\" data-index-in-node=\"141\">'i'<\/code> (since it tried to read the <code data-path-to-node=\"2\" data-index-in-node=\"173\">i<\/code> in <code data-path-to-node=\"2\" data-index-in-node=\"178\">daylight<\/code> as an argument specifier)!<\/em><\/p>\n<p style=\"caret-color: #000000; color: #000000; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-line: none; text-decoration-thickness: auto; text-decoration-style: solid;\" data-path-to-node=\"3\"><em>I&#8217;m glad you caught it&mdash;it gave me a good laugh too! Let&#8217;s just blame it on the AI wishing it was outside instead of compiling TeX macros. &#x1F602;<\/em><\/p>\n<\/blockquote>\n<p>Literally. That&rsquo;s what it said. Points for honesty. &#8230; Ok fine. I go and delete the offending line and try again. All is well.<\/p>\n<p>It works for me. I&rsquo;m writing code I&rsquo;d never have been able to write before. And it&rsquo;s code that generates high school math notes. Not critical code. But think about it&#8230; Would you want this writing the avionics software for the next jet you fly in?<\/p>\n<p><em><a href=\"https:\/\/en.wikipedia.org\/wiki\/The_Future%27s_So_Bright,_I_Gotta_Wear_Shades\">The future&rsquo;s so bright<\/a>.<\/em> <span style=\"color: #a9a9a9; font-size: 13px;\">(Read the link for <\/span><a href=\"https:\/\/en.wikipedia.org\/wiki\/Timbuk_3\"><span style=\"color: #a9a9a9; font-size: small;\">Timbuk3<\/span><span style=\"font-size: small;\">&rsquo;<\/span><span style=\"color: #a9a9a9; font-size: small;\">s<\/span><\/a><span style=\"color: #a9a9a9; font-size: small;\"> grim intention with those lyrics despite the popular interpretation that <span style=\"caret-color: #a9a9a9;\">&ldquo;<\/span>Everything&rsquo;s great.&#8221;)<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The code doesn&#8217;t compile. I tell the AI about the error. When I compile the code, I get this error: &#8230; And I show it the confusing details. To which the AI responds Ah, that is completely my fault. A stray word&mdash;daylight&mdash;accidentally slipped into the argument specification block of \\dah@auto@mark in my previous response. What!? [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"_links":{"self":[{"href":"https:\/\/augerhandle.net\/blogs\/jumpingfish\/wp-json\/wp\/v2\/posts\/6818"}],"collection":[{"href":"https:\/\/augerhandle.net\/blogs\/jumpingfish\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/augerhandle.net\/blogs\/jumpingfish\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/augerhandle.net\/blogs\/jumpingfish\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/augerhandle.net\/blogs\/jumpingfish\/wp-json\/wp\/v2\/comments?post=6818"}],"version-history":[{"count":2,"href":"https:\/\/augerhandle.net\/blogs\/jumpingfish\/wp-json\/wp\/v2\/posts\/6818\/revisions"}],"predecessor-version":[{"id":6820,"href":"https:\/\/augerhandle.net\/blogs\/jumpingfish\/wp-json\/wp\/v2\/posts\/6818\/revisions\/6820"}],"wp:attachment":[{"href":"https:\/\/augerhandle.net\/blogs\/jumpingfish\/wp-json\/wp\/v2\/media?parent=6818"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/augerhandle.net\/blogs\/jumpingfish\/wp-json\/wp\/v2\/categories?post=6818"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/augerhandle.net\/blogs\/jumpingfish\/wp-json\/wp\/v2\/tags?post=6818"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}