<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Damien Mascheix on Medium]]></title>
        <description><![CDATA[Stories by Damien Mascheix on Medium]]></description>
        <link>https://medium.com/@d.mascheix?source=rss-5d94240d8174------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Stories by Damien Mascheix on Medium</title>
            <link>https://medium.com/@d.mascheix?source=rss-5d94240d8174------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 02:46:06 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@d.mascheix/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[L’IA générative, un bouleversement à double tranchant ?]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@d.mascheix/lia-g%C3%A9n%C3%A9rative-un-bouleversement-%C3%A0-double-tranchant-e67bd8851ddc?source=rss-5d94240d8174------2"><img src="https://cdn-images-1.medium.com/max/1024/1*_6aAli2PLWmBx0g3tIxKsg.jpeg" width="1024"></a></p><p class="medium-feed-snippet">En voyant l&#x2019;enthousiasme d&#xE9;bordant autour de l&#x2019;arriv&#xE9;e de ChatGPT et autres IA g&#xE9;n&#xE9;ratives, je ne peux m&#x2019;emp&#xEA;cher de ressentir un m&#xE9;lange&#x2026;</p><p class="medium-feed-link"><a href="https://medium.com/@d.mascheix/lia-g%C3%A9n%C3%A9rative-un-bouleversement-%C3%A0-double-tranchant-e67bd8851ddc?source=rss-5d94240d8174------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@d.mascheix/lia-g%C3%A9n%C3%A9rative-un-bouleversement-%C3%A0-double-tranchant-e67bd8851ddc?source=rss-5d94240d8174------2</link>
            <guid isPermaLink="false">https://medium.com/p/e67bd8851ddc</guid>
            <category><![CDATA[climate]]></category>
            <category><![CDATA[humanity]]></category>
            <category><![CDATA[geopolitical]]></category>
            <category><![CDATA[genai]]></category>
            <category><![CDATA[climate-change]]></category>
            <dc:creator><![CDATA[Damien Mascheix]]></dc:creator>
            <pubDate>Fri, 05 Jul 2024 11:00:35 GMT</pubDate>
            <atom:updated>2024-07-05T11:00:35.313Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Inbreeding of LLMs: when AI becomes its own threat]]></title>
            <link>https://medium.com/@d.mascheix/inbreeding-of-llms-when-ai-becomes-its-own-threat-064f41015041?source=rss-5d94240d8174------2</link>
            <guid isPermaLink="false">https://medium.com/p/064f41015041</guid>
            <category><![CDATA[nlp]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[threat-intelligence]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[curation]]></category>
            <dc:creator><![CDATA[Damien Mascheix]]></dc:creator>
            <pubDate>Fri, 08 Dec 2023 15:47:33 GMT</pubDate>
            <atom:updated>2023-12-08T15:47:33.041Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Inbreeding of LLMs" src="https://cdn-images-1.medium.com/max/1024/1*P_ufi5TYlEuva97YhD0L_A.jpeg" /></figure><p>Inbreeding is a term we usually associate with biology, but did you know it has also found its way into the world of artificial intelligence (AI)? No, we are not talking about a dark family story, but about a very real phenomenon which is affecting the quality of the information we obtain online as well as these technological monsters that are LLMs. Let’s see together what it is.</p><h3>Quick reminder: What is an LLM?</h3><p>An LLM or “Large Language Model” is a type of artificial intelligence model designed to understand and generate human language. These models are trained on large linguistic datasets collected from the internet to learn grammatical structures, semantic contexts and other aspects of language.</p><h3>What is LLM inbreeding?</h3><p>To fully understand the concept and stay on topic, let’s imagine a large family that passes down the prowess of an ancestor from generation to generation, without ever being able to verify the facts. Over time, this story will likely be distorted, losing its original truth. This is a bit like what happens with LLMs when they are fed information generated by other AIs. This is the inbreeding of LLMs, a very particular form of bias linked to AI.</p><h3>Why does LLM inbreeding occur?</h3><p>The power of LLMs lies in their technology but also in their enormous volume of training data. However, if this data includes erroneous information generated by other chatbots or AI, LLMs can be “misled.” It’s a bit like a student learning lessons from a book written by another student, without verification.</p><p>However, the direct connection of LLMs to the Internet has amplified this phenomenon. Although it has strengthened their capacities, it has also opened the door to hallucinatory information hence the risk of amplification of this phenomenon which is the inbreeding of LLMs.</p><h3>Proven example of the effect of inbreeding of LLMs:</h3><p>A striking example of LLM inbreeding is that of Bing, Microsoft’s search engine. It displayed incorrect information about Claude Shannon, a renowned mathematician, because it had relied on text generated by two chatbots, Pi and Claude. These chatbots had “hallucinated” this information, and Bing took it as true.</p><h3>The Challenges to Face</h3><p>Faced with this situation, several questions arise:</p><ul><li><strong>Are we heading towards an information pandemic?</strong> If LLMs continue to be trained with unverified data, we could find ourselves overwhelmed with inaccurate information.</li><li><strong>Disconnecting LLMs from the Internet, is this a solution?</strong> This could reduce the risk, but also limit the power of LLMs.</li><li><strong>How to fight against false information?</strong> In other words, can LLMs be “educated” to recognize and avoid false information?</li><li><strong>Should we think more generally about information curation?</strong> Before training the models, should we filter and verify the data?</li></ul><h3>Conclusion</h3><p>AI has the potential to transform the way we access information. However, like any powerful technology, it comes with its challenges and limitations. LLM inbreeding is one, and its resolution is essential to preserving the reliability of the Internet. So the next time you search online, keep in mind that behind each result there could be an AI trying to do its best with the information it was given but potentially are erroneous.</p><h3>Authors</h3><ul><li><a href="https://www.linkedin.com/in/adeline-chion/">Adeline Chion</a></li><li><a href="https://www.linkedin.com/in/damien-mascheix/">Damien Mascheix</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=064f41015041" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What are docstrings?!]]></title>
            <link>https://medium.com/@d.mascheix/what-are-docstrings-f10deb87e40e?source=rss-5d94240d8174------2</link>
            <guid isPermaLink="false">https://medium.com/p/f10deb87e40e</guid>
            <category><![CDATA[tips-and-tricks]]></category>
            <category><![CDATA[code]]></category>
            <category><![CDATA[python-programming]]></category>
            <category><![CDATA[python-docstring]]></category>
            <dc:creator><![CDATA[Damien Mascheix]]></dc:creator>
            <pubDate>Thu, 27 Jul 2023 12:19:42 GMT</pubDate>
            <atom:updated>2023-08-24T11:29:26.091Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Docstrings for python code" src="https://cdn-images-1.medium.com/max/587/1*bTKPvRquVnL-fBe3jOFF-g.jpeg" /></figure><h3>Docstring definition</h3><p>No offense to fans of misguided translations, docstrings are not documentation on ropes but an unassigned string of characters. Just after the explicit naming of variables, and in all humility, the use of s docstrings is an essential rule of the art for a clear and collaborative code.</p><h4>Where can I find docstrings?</h4><p>The docstring can be placed primarily in two separate locations:</p><ul><li>at a specific point in the code to describe it</li><li>in a function or class to provide information on its functioning</li></ul><h4>Here is a trivial example of Docstrings:</h4><pre>def divide(a, b):<br>    &quot;&quot;&quot;<br>        Divide two numbers and return the result.<br>    &quot;&quot;&quot;<br>    return a / b</pre><p><em>N.B.: The character string s must be placed just below the signature of the function.</em></p><h4>What are the other benefits of docstrings?</h4><p>Apart from the readability aspect of its code which is just essential, the docstrings will bring other rather appreciable advantages:</p><ul><li>It is a standard that allows developers to navigate from one code to another.</li><li>Programming tools such as IDEs display this documentation during input phases.</li><li>In the Shell, it is possible to use the help() function to display the documentation.</li><li>It is possible to do automatic generation of documentation from Docstrings.</li></ul><p>You can also document a class and its methods:</p><pre>class GuardianOfTheGalaxy(object):<br>    &quot;&quot;&quot;<br>        This class create the Guardian Of The Galaxy universe<br>    &quot;&quot;&quot;<br> <br>    def groot(self):<br>        &quot;&quot;&quot;<br>            Return Groot object ready for the adventure.<br>        &quot;&quot;&quot;<br>    def star_lord(self):<br>        &quot;&quot;&quot;<br>            Return Star Lord object ready for the adventure.<br>        &quot;&quot;&quot;</pre><p>Most standard Python libraries have Docstrings allowing them to be documented. We let you check in your prompt with the following commands:</p><pre>python -i<br>&gt;&gt;&gt; import os<br>&gt;&gt;&gt; help(os)<br>&gt;&gt;&gt; import urllib<br>&gt;&gt;&gt; help(urllib)</pre><h3>Standards</h3><p>As early as <a href="https://peps.python.org/pep-0008/">PEP 8</a>, Python developers issued guidelines that are comprehensively detailed in <a href="https://www.python.org/dev/peps/pep-0257/">PEP 257</a>. It describes how to write Docstrings correctly. Here is a very condensed summary of the contents:</p><ul><li>Typically, Docstrings should be written for modules, functions, classes, and methods.</li><li>We always start and end with triple quotation marks.</li><li>When the description is short and compact, as in some simple functions or methods, one-line Docstrings must be used:</li></ul><pre>&quot;&quot;&quot;Docstring simple d&#39;une ligne se finissant par un point.&quot;&quot;&quot;</pre><ul><li>When you need to provide more detail on more complex topics, you should use multi-line docstrings.</li></ul><pre>&quot;&quot;&quot;Docstring of many lines, the first is a sum up<br><br>After jumping one line, we describe all details about the function.<br>blablabla<br>blablabla<br>blablabla<br>&quot;&quot;&quot;</pre><p>However, <a href="https://www.python.org/dev/peps/pep-0257/">PEP 257</a> does not explicitly say what the Docstrings must contain. Human nature abhors a vacuum, several proposals have emerged. Here they are.</p><h4>The Google solution with the <a href="https://sphinxcontrib-napoleon.readthedocs.io/en/latest/example_google.html">Google Style Python Docstrings</a></h4><pre>def docstrigs_ex_func(param1, param2):<br> &quot;&quot;&quot;Example function with types documented in the docstring.<br> <br> `PEP 484`_ type annotations are supported. If attribute,<br> parameter, and return types are annotated according to <br> `PEP 484`_, they do not need to be included in the docstring:<br><br>    Args:<br>        param1 (int): The first parameter.<br>        param2 (str): The second parameter.<br><br>    Returns:<br>        bool: The return value. True for success, False otherwise.<br><br>    .. _PEP 484:<br>        https://www.python.org/dev/peps/pep-0484/<br><br> &quot;&quot;&quot;</pre><h4>The NumPy solution with the <a href="https://numpydoc.readthedocs.io/en/latest/format.html">NumPy Style Python Docstrings</a></h4><pre>def multiplier(num1, num2):<br>    &quot;&quot;&quot;Multiply two integers.<br><br>    This function is useless :p .<br><br>    Parameters<br>    ----------<br>    num1: int<br>        The first number.<br>    num2: int<br>        The second number.<br><br>        Here we can put a longer descritpion.<br>        On several lines.<br><br>    Returns<br>    -------<br>    int<br>        The result of the multiplication.<br>    &quot;&quot;&quot;<br>    return num1* num2</pre><h4>The Sphinx solution with the <a href="https://sphinx-rtd-tutorial.readthedocs.io/en/latest/docstrings.html">Sphinx docstring format</a></h4><pre>def multiplier(num1, num2):<br>  &quot;&quot;&quot; Multiply two integers.<br>  <br>  :param num1: number one to multiply<br>  :type num1: int<br>  :param num2: number one to multiply<br>  :type num2: int<br>  :return: The result of the multiplication<br>  :rtype: int<br>  &quot;&quot;&quot;<br>  return num1* num2</pre><h3>Synthesis</h3><p>Regardless of the choice of solution, we will systematically find:</p><ul><li>A synthesis of the function or method</li><li>What the function or method does in detail</li><li>The input arguments and the type</li><li>What is returned</li></ul><p>The advantage of the Sphynx solution is that it is in RST format. RST is a markup convention for formatting text. It keeps the text readable, but allows you to generate HTML, PDF, and a bunch of other cleaner stuff. The generation of your documentation will therefore be facilitated.</p><p>Some Python libraries allow you to automatically generate documentation from docstrings. This is, for example, the case of the <a href="https://docs.python.org/3/library/pydoc.html">pydoc</a> library which, from the Sphinx format, allows you to automatically create documentation.</p><h3>Sources</h3><p>Rossum Guido van, Warsaw Barry, Coghlan Nick, <em>PEP 8 — Style Guide for Python Code</em>, <a href="https://peps.python.org/pep-0008/">https://peps.python.org/pep-0008/</a>, published the 05/07/2001 (updated the 01/08/2013), consulted the 24/05/2023.</p><p>Goodger David, Rossum Guido van, <em>PEP 257 — Docstring Conventions</em>,<strong> </strong><a href="https://peps.python.org/pep-0257/">https://peps.python.org/pep-0257/</a>, published the 29/05/2001 (updated the 13/06/2001), consulted the 24/05/2023.</p><p>Fuchs Pierre, Poulain Pierre, <em>15.2 Les docstrings et la PEP 257</em>, <a href="https://python.sdv.univ-paris-diderot.fr/15_bonnes_pratiques/#152-les-docstrings-et-la-pep-257">https://python.sdv.univ-paris-diderot.fr/15_bonnes_pratiques/#152-les-docstrings-et-la-pep-257</a>, consulted the 24/05/2023.</p><p><a href="https://docs.python.org/3/library/pydoc.html#module-pydoc">pydoc</a> — Documentation generator and online help system, <a href="https://docs.python.org/3/library/pydoc.html">https://docs.python.org/3/library/pydoc.html</a>, consulted the 24/05/2023.</p><p><em>Docstrings in Python Tutorial,</em><strong> </strong><a href="https://www.datacamp.com/tutorial/docstrings-python">https://www.datacamp.com/tutorial/docstrings-python</a>, updated in 2022, consulted the 24/05/2023.</p><h3>Authors</h3><ul><li><a href="https://www.linkedin.com/in/damien-mascheix/">Damien Mascheix</a></li><li><a href="https://www.linkedin.com/in/cl%C3%A9ment-gautier-baudhuit-762b6714a/">Clément Gautier-Baudhuit</a></li></ul><p><em>Reviewed and optimized (SEO) by </em><a href="https://red-ac-seo.fr/"><em>Adeline Chion</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f10deb87e40e" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>