https://github.com/mdn/yari/issues/9208 Skip to content Toggle navigation Sign up * Product + Actions Automate any workflow + Packages Host and manage packages + Security Find and fix vulnerabilities + Codespaces Instant dev environments + Copilot Write better code with AI + Code review Manage code changes + Issues Plan and track work + Discussions Collaborate outside of code Explore + All features + Documentation + GitHub Skills + Blog * Solutions For + Enterprise + Teams + Startups + Education By Solution + CI/CD & Automation + DevOps + DevSecOps Case Studies + Customer Stories + Resources * Open Source + GitHub Sponsors Fund open source developers + The ReadME Project GitHub community articles Repositories + Topics + Trending + Collections * Pricing [ ] * # In this repository All GitHub | Jump to | * No suggested jump to results * # In this repository All GitHub | Jump to | * # In this organization All GitHub | Jump to | * # In this repository All GitHub | Jump to | Sign in Sign up You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. {{ message }} mdn / yari Public * Notifications * Fork 431 * Star 998 * Code * Issues 199 * Pull requests 74 * Discussions * Actions * Projects 0 * Security * Insights More * Code * Issues * Pull requests * Discussions * Actions * Projects * Security * Insights New issue Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community. Pick a username [ ] Email Address [ ] Password [ ] [ ] Sign up for GitHub By clicking "Sign up for GitHub", you agree to our terms of service and privacy statement. We'll occasionally send you account related emails. Already on GitHub? Sign in to your account Jump to bottom MDN can now automatically lie to people seeking technical information #9208 Open 3 tasks done eevee opened this issue Jun 30, 2023 * 20 comments Open 3 tasks done MDN can now automatically lie to people seeking technical information #9208 eevee opened this issue Jun 30, 2023 * 20 comments Labels needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. Comments @eevee Copy link eevee commented Jun 30, 2023 * edited Summary MDN's new "ai explain" button on code blocks generates human-like text that may be correct by happenstance, or may contain convincing falsehoods. this is a strange decision for a technical reference. URL https://developer.mozilla.org/en-US/docs/Web/CSS/grid Reproduction steps as soon as i heard about this, i visited the first MDN article in my address bar history (for the grid property), hit "ai explain" on the first code block encountered (the syntax summary), and received the following information: grid: "a" 100px "b" 1fr;: This value sets the grid template to have two rows and two columns. The first row has a height of 100 pixels and the second row has a height of 1 fraction unit (1fr). The columns are named "a" and "b". which is deeply but subtly incorrect -- this creates only one column (more would require a slash), and the quoted strings are names of areas, not columns. but it's believable, and it's interwoven with explanations of other property values that are correct. this is especially bad since grid is a complex property with a complex shorthand syntax -- exactly the sort of thing someone might want to hit an "explain" button on. the generated text appears to be unreviewed, unreliable, unaccountable, and even unable to be corrected. at least if the text were baked into a repository, it could be subject to human oversight and pull requests, but as best i can tell it's just in a cache somewhere? it seems like this feature was conceived, developed, and deployed without even considering that an LLM might generate convincing gibberish, even though that's precisely what they're designed to do. and far from disclaiming that the responses might be confidently wrong, you have called it a "trusted companion". i don't understand this. Expected behavior i would like MDN to contain correct information Actual behavior MDN has generated a convincing-sounding lie and there is no apparent process for correcting it Device Desktop Browser Firefox Browser version Stable Operating system Linux Screenshot No response Anything else? No response Validations * [*] I have read the Community Participation Guidelines. * [*] I have verified that there isn't already an issue that reports the same bug to avoid creating a duplicate. * [*] I have checked that this is a concrete bug. For Q&A open a GitHub Discussion. The text was updated successfully, but these errors were encountered: 334 ambersz, unascribed, maxeaubrey, hirnsushi, lizard-business, elliprime, MrLightningBolt, Rylius, krishean, diosmosis, and 324 more reacted with thumbs up emoji 9 crackwitz, randomstuff, edgarogh, Lewiscowles1986, nurdann, piotr-yuxuan, bob6664569, nicolas17, and martok reacted with laugh emoji [?] 30 skyqrose, jackahenderson, Nekkowe, Eragonfr, zaguragit, andy-j, lunaisnotaboy, mvsde, bdosorio, k4y3ff, and 20 more reacted with heart emoji 8 K4rakara, alexisart, Nekkowe, k4y3ff, lubelski, AMDAndy, tschoffelen, and edgarogh reacted with rocket emoji 16 ShadowJonathan, hakamadare, drewcassidy, alexisart, Johann150, Nekkowe, george-steel, wkleinhenz, Afif13, johnsonjsyuen, and 6 more reacted with eyes emoji All reactions * 334 reactions * 9 reactions * [?] 30 reactions * 8 reactions * 16 reactions @github-actions github-actions bot added the needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. label Jun 30, 2023 @MrLightningBolt Copy link MrLightningBolt commented Jun 30, 2023 Confirming. This "AI" snake oil is worse than useless for the reasons described above; other examples are trivial to create. It makes MDN worse just being there. 147 Moth-Tolias, joshbrand, DavidBuchanan314, rtyler, arnemart, ngoomie, gmalmquist, ZackBoe, f0x52, cgranade, and 137 more reacted with thumbs up emoji All reactions * 147 reactions Sorry, something went wrong. @catleeball Copy link catleeball commented Jun 30, 2023 Generated code with out any human vetting for correctness and human curation for relevance is a hazard since it can produce plausible-sounding disinformation. I strongly feel that the AI help feature is likely to cause damage much more than it would possibly help. 64 squili, hokaze, alexisart, anneke, ranok, EricE549X, flaviusb, bgvaughan, mimuki, krishean, and 54 more reacted with thumbs up emoji All reactions * 64 reactions Sorry, something went wrong. @MrPetovan Copy link MrPetovan commented Jun 30, 2023 You don't explain code blocks using plausibly-sounding plain text, you explain it visually by linking to a JsFiddle page with that code. This is a deeply misled feature that will produce disinformation at scale, like all other LLM applications. 42 Nekkowe, desttinghim, eldang, toshokan, wingmatt, lunaisnotaboy, wkleinhenz, k4y3ff, crackwitz, lazar-mitrovic, and 32 more reacted with thumbs up emoji All reactions * 42 reactions Sorry, something went wrong. @Eragonfr Copy link Eragonfr commented Jun 30, 2023 You don't explain code blocks using plausibly-sounding plain text, you explain it visually by linking to a JsFiddle page with that code. I don't agree that linking to a fiddle is enough, you need plain text explanation of what the code do. But the explanation need to be peer-reviewed and fact checked. Not being some plausible garbage generated by an AI. 30 ambersz, toshokan, lunaisnotaboy, lunasorcery, bdosorio, wkleinhenz, k4y3ff, crackwitz, SG101, Cellivar, and 20 more reacted with thumbs up emoji All reactions * 30 reactions Sorry, something went wrong. @lifning Copy link lifning commented Jun 30, 2023 and it's hardly a isolated occurrence. this is pervasively impossible to trust. the AI incorrectly claiming that a given code example isn't valid CSS 33 lunasorcery, chapmanjacobd, Ongion, jimj316, Afif13, lunaisnotaboy, andywillis, kforney, SG101, JamoDevNich, and 23 more reacted with thumbs up emoji 3 cassidyjames, nathansgithub, and Lewiscowles1986 reacted with confused emoji All reactions * 33 reactions * 3 reactions Sorry, something went wrong. @mandynicole Copy link mandynicole commented Jun 30, 2023 Releasing this alongside the long-awaited Play was also a choice. We should be empowering the community to create examples built on MDN itself. 8 bdosorio, lunaisnotaboy, sprocklem, WhyNotHugo, bgvaughan, BurnerWah, DagAgren, and kizu reacted with thumbs up emoji All reactions * 8 reactions Sorry, something went wrong. @Xkeeper0 Copy link Xkeeper0 commented Jun 30, 2023 As another example, https://developer.mozilla.org/en-US/docs/Web/HTML /Element/portal From the page text (emphasis mine): A is similar to an