<?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 Elhadji Ngom on Medium]]></title>
        <description><![CDATA[Stories by Elhadji Ngom on Medium]]></description>
        <link>https://medium.com/@ngomel.ehn?source=rss-aea5a3f8bfcd------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*qpiwATIhU8IhTi89</url>
            <title>Stories by Elhadji Ngom on Medium</title>
            <link>https://medium.com/@ngomel.ehn?source=rss-aea5a3f8bfcd------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 16:13:38 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ngomel.ehn/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[Choosing the Right Open-Source Vector Database: Why Milvus Stands Out]]></title>
            <link>https://medium.com/@ngomel.ehn/choosing-the-right-open-source-vector-database-why-milvus-stands-out-f9c321a33131?source=rss-aea5a3f8bfcd------2</link>
            <guid isPermaLink="false">https://medium.com/p/f9c321a33131</guid>
            <dc:creator><![CDATA[Elhadji Ngom]]></dc:creator>
            <pubDate>Wed, 13 Nov 2024 10:36:53 GMT</pubDate>
            <atom:updated>2024-11-13T10:36:53.196Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Pnlq3sDjXfvwNIp28wWvXw.jpeg" /><figcaption>Image from <a href="https://milvus.io/blog/ai-in-.md">https://milvus.io/blog/ai-in-.md</a></figcaption></figure><p>In the rapidly evolving landscape of AI and machine learning, the need for efficient and scalable vector databases has become paramount. Among the top contenders, Milvus has emerged as a leading choice for developers. This article delves into why Milvus is ranked among the top five vector databases for its performance and scalability, and why it might be the right choice for your next project.</p><h4>Why Milvus?</h4><p>Milvus is an open-source vector database that has garnered significant attention for several reasons:</p><ol><li><strong>Performance</strong>: Milvus is engineered for high performance, capable of handling large-scale vector data with minimal latency. <a href="https://milvus.io/">It supports efficient similarity search, which is essential for applications that require quick and accurate retrieval of information</a>.</li><li><strong>Scalability</strong>: One of Milvus’s standout features is its ability to scale horizontally. <a href="https://blog.milvus.io/blog/2021-12-21-milvus-2.0.md">This means you can expand your database across multiple instances, ensuring consistent performance even as your dataset grows</a>. This scalability is crucial for applications that need to handle billions of vectors.</li><li><strong>Ease of Use</strong>: Milvus is designed with developers in mind. <a href="https://milvus.io/intro">It offers a user-friendly interface and comprehensive documentation, making it easy to get started and integrate into your existing workflows</a>. Whether you’re a seasoned developer or new to vector databases, Milvus provides the tools and support you need.</li><li><strong>Community and Support</strong>: As an open-source project, Milvus benefits from a vibrant community of developers and contributors. <a href="https://zilliz.com/blog/introduction-to-milvus-architecture">This community-driven approach ensures continuous improvement and a wealth of resources for troubleshooting and learning</a>.</li><li><strong>Deployment Flexibility</strong>: Milvus offers various deployment options to suit different needs. <a href="https://milvus.io/">Whether you prefer a lightweight, single-machine setup for prototyping or a robust, distributed system for production, Milvus has you covered</a>.</li></ol><h4>Real-World Applications</h4><p>Milvus’s capabilities make it ideal for a range of applications:</p><ul><li><strong>Image and Video Search</strong>: Milvus excels in handling high-dimensional data, making it perfect for image and video search applications where quick and accurate retrieval is critical.</li><li><strong>Recommendation Systems</strong>: By leveraging Milvus’s efficient similarity search, you can build powerful recommendation systems that enhance user experience.</li><li><strong>Natural Language Processing (NLP)</strong>: Milvus supports NLP applications by enabling fast and accurate retrieval of relevant information from large text corpora.</li></ul><h4>Conclusion</h4><p>Choosing the right vector database is crucial for the success of your AI-driven applications. Milvus stands out for its performance, scalability, ease of use, and strong community support. Whether you’re building a recommendation system, an image search application, or any other AI-driven solution, Milvus provides a robust foundation to help you achieve your goals.</p><p>More about Milvus, visit <a href="https://milvus.io/intro">https://milvus.io/intro</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f9c321a33131" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[“Les Transformers : pourquoi l’Attention  est tout ce dont vous avez besoin”]]></title>
            <link>https://medium.com/@ngomel.ehn/les-transformers-pourquoi-lattention-est-tout-ce-dont-vous-avez-besoin-177f575b7dc5?source=rss-aea5a3f8bfcd------2</link>
            <guid isPermaLink="false">https://medium.com/p/177f575b7dc5</guid>
            <category><![CDATA[transformers]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Elhadji Ngom]]></dc:creator>
            <pubDate>Mon, 23 Jan 2023 16:15:47 GMT</pubDate>
            <atom:updated>2023-01-23T16:15:47.346Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>“Les Transformers : pourquoi l’Attention 🧠 est tout ce dont vous avez besoin”</strong></h3><figure><img alt="Made by Medhi F." src="https://cdn-images-1.medium.com/max/645/1*3szsgVQaYd6TICWcyV8BaA.png" /></figure><p>Le “<strong>Mécanisme d’Attention</strong>” est une technique utilisée dans les réseaux neuronaux pour permettre à un modèle de se concentrer sur des parties spécifiques du texte reçu en entrée lors de son traitement. Il est devenu très vite un élément crucial dans le domaine du Deep learning, en particulier dans le domaine du traitement du langage naturel (<strong>NLP</strong>). Il est <strong>la composante clé</strong> de la technologie Transformer, qui est un type de modèle de <strong>NLP</strong> qui a été présenté dans l’article <strong>“Attention Is All You Need”</strong> par les chercheurs de Google en 2017. L’architecture de cette technologie utilise des mécanismes d’attention pour pondérer l’importance des différentes parties de texte d’entrée, lui permettant de traiter efficacement les séquences de longueurs variables.</p><p>Avant l’introduction du Transformer, les modèles de NLP étaient principalement basés sur les réseaux de neurones récurrents (<strong>RNNs</strong>) tels que le Long Short-Term Memory (<strong>LSTM</strong>) et le Gated Recurrent Unit (<strong>GRU</strong>). Ces modèles présentent un <em>inconvénient majeur</em>, à savoir leur incapacité à traiter efficacement des séquences d’entrée de longueurs variables. En effet, les <strong>RNNs</strong> traitent les séquences d’entrée élément par élément, ce qui signifie que la capacité du modèle à traiter une séquence est limitée par la longueur de la séquence.</p><p>Le modèle du Transformer est composé de deux composants principaux : l’encoder et le<strong> decoder</strong>.</p><ul><li>L’<strong>encoder</strong> prend la séquence d’entrée et la convertit en un ensemble d’états cachés, qui sont ensuite passés au<strong> decoder</strong>.</li><li>Le<strong> decoder</strong> prend les états cachés et génère la séquence de sortie.</li></ul><p>Le <strong>mécanisme d’attention</strong> est appliqué à la fois dans l’<strong>encoder</strong> et le<strong> decoder</strong>. Il effectue le calcul d’un ensemble de poids d’attention pour chaque élément de la séquence d’entrée. Ces poids d’attention sont utilisés pour déterminer l’importance des différentes parties de la séquence d’entrée.</p><p>Le modèle du Transformer présente alors deux avantages majeurs par rapport aux modèles <strong>RNN</strong> traditionnels :</p><ul><li>Il peut traiter efficacement des séquences d’entrée de longueurs variables,</li><li>Il est muni d’un mécanisme d’attention.</li></ul><p>Le model a donc ce qui qu’il faut pour être en mesure de comprendre le contexte dans une séquence de texte. En effet, il peut gérer des tâches telles que la traduction automatique, le résumé de texte ou bien encore tenir une conversation. Le modèle du Transformer est également utilisé dans d’autres tâches de <strong>NLP</strong> telle que la modélisation du langage.</p><p>L’architecture du <strong>Transformer</strong> est également la base de plusieurs variations et extensions telles que le model de <strong>BERT</strong> (Bidirectional Encoder Representations from Transformers) qui est introduit par Google (Jacob Devlin) en 2018 et <strong>GPT</strong> (Generative Pre-trained Transformer) introduit la même année par OpenAI. Tous deux ont réalisé des performances de pointe sur un large éventail de tâches <strong>NLP</strong>.</p><p>Dans la forme, les acronymes <strong>BERT</strong> et <strong>GPT</strong>-3 ont en commun la lettre “<strong>T</strong>” pour <strong>Transformer</strong> dans leur nom. En ce qui concerne leur fonctionnement, ces deux modèles utilisent le mécanisme d’attention et peuvent traiter des séquences de longueur variable. Le <strong>ChatGPT</strong>, développé récemment par Microsoft en collaboration avec OpenAI, est une version plus légère du <strong>GPT</strong>-3, optimisée pour gérer des conversations comme un humain, idéale pour les chatbots. L’intégration du mécanisme d’attention a été un moment clé dans l’évolution de l’état de l’art en<strong> NLP</strong> et en Intelligence Artificielle en général.</p><p>L’architecture du <strong>Transformer </strong>est aussi utilisée dans d’autres domaines tels que la vision par ordinateur ou la reconnaissance vocale.</p><p>Merci à toutes et à tous !!</p><p>Vos suggestions &amp; remarques sont les bienvenues !</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=177f575b7dc5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building Your Own Chatbot with ChatGPT from GPT-3 in Python]]></title>
            <link>https://medium.com/@ngomel.ehn/building-your-own-chatbot-with-chatgpt-from-gpt-3-in-python-86f58aecfa34?source=rss-aea5a3f8bfcd------2</link>
            <guid isPermaLink="false">https://medium.com/p/86f58aecfa34</guid>
            <category><![CDATA[python-programming]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Elhadji Ngom]]></dc:creator>
            <pubDate>Tue, 10 Jan 2023 15:50:38 GMT</pubDate>
            <atom:updated>2023-01-10T15:53:07.699Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/475/1*8SDsHiiL0z2rbCRnTBBh6A.png" /></figure><h3>Context:</h3><p><strong><em>Using </em></strong><strong><em>ChatGPT within your </em></strong><strong><em>Python program is easy. Simply import the </em></strong><strong><em>openai library, set up the API client with your API key, and use the </em></strong><strong><em>openai.Completion.create() method to send a prompt to </em></strong><strong><em>ChatGPT and receive a response.</em></strong></p><p><strong><em>As an example, this program uses ChatGPT to ask the difference between </em></strong><strong><em>GPT-3 and </em></strong><strong><em>ChatGPT. With just a few lines of code, ChatGPT&#39;s powerful language processing capabilities can be easily integrated into your Python program.</em></strong></p><p>Ready to code, let’s go …</p><p>First of all, install the OpenAI API client library for Python:</p><pre># To install the library, run the following command:<br>!pip install openai</pre><p>The full python script is below:</p><pre># Import the OpenAI library<br>import openai<br><br><br># Set up the OpenAI API client :<br>openai.api_key = &quot;YOUR_API_KEY&quot;<br><br># Set up the model (more models, visit https://beta.openai.com/playground)<br>model_engine = &quot;text-davinci-003&quot;<br><br><br># Define a function that sends a message to ChatGPT<br>def chat_query(prompt):<br>    completions = openai.Completion.create(<br>        engine=model_engine,<br>        prompt=prompt,<br>        max_tokens=2048,<br>        n=1,<br>        temperature=0.5,<br>    )<br><br>    message = completions.choices[0].text<br>    return message<br><br><br># Define a function that handles the conversation<br>def conversation_handler(prompt):<br>    # Send the prompt to ChatGPT<br>    response = chat_query(prompt)<br>    print(f&quot;ChatGPT: {response}&quot;)<br>    <br>    # End the conversation if ChatGPT says goodbye<br>    if &quot;goodbye&quot; in response.lower():<br>        return<br>    <br>    # Otherwise, get user input and continue the conversation<br>    prompt = input(&quot;You: &quot;)<br>    conversation_handler(prompt)<br><br><br># Main program starts here:<br>if __name__ == &quot;__main__&quot;:<br>  # Example of prompt to query<br>  prompt = &quot;GPT-3 vs ChatGPT: What is the difference?&quot;<br><br>  # Start the conversation<br>  conversation_handler(prompt)</pre><p>Script output tests:</p><ul><li><strong>1st output:</strong></li></ul><blockquote>GPT-3 is a large-scale language model developed by OpenAI, which uses deep learning techniques to generate human-like text. ChatGPT is a smaller, more specialized version of GPT-3 specifically designed for conversational AI applications. GPT-3 is capable of generating text on any topic, while ChatGPT is optimized for generating natural-sounding dialogue.</blockquote><ul><li><strong>2nd output:</strong></li></ul><blockquote>GPT-3 is a large-scale language model developed by OpenAI which is trained on a dataset of 45TB of text. It is capable of generating human-like text and has been used for a variety of tasks, including summarization, question answering, and natural language generation. ChatGPT is a smaller version of GPT-3 developed by Microsoft. It is trained on a dataset of only 1TB of text and is optimized for conversational language. ChatGPT is used for tasks such as dialogue generation and chatbot development.</blockquote><ul><li><strong>3rd output:</strong></li></ul><blockquote><em>GPT-3 is a large-scale language model developed by OpenAI. It is an autoregressive language model trained on a large amount of text data. GPT-3 can generate human-like text, complete tasks like question-answering, and generate text in response to user input.</em></blockquote><blockquote><em>ChatGPT is a conversational language model developed by Microsoft. It is trained on conversations from Reddit and other sources, and is designed to generate contextually relevant responses to user input. ChatGPT is also capable of generating natural-sounding dialogue and can be used to build chatbots.</em></blockquote><p><strong>Note:</strong> <em>May, your runs will give different outputs but the main idea will remain the same !</em></p><p>Thank you for reading !!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=86f58aecfa34" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>