<?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 Alissa on Medium]]></title>
        <description><![CDATA[Stories by Alissa on Medium]]></description>
        <link>https://medium.com/@alissabr?source=rss-95d70fe58e11------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*ksp74nsCGPiwWRo8YosoQQ@2x.jpeg</url>
            <title>Stories by Alissa on Medium</title>
            <link>https://medium.com/@alissabr?source=rss-95d70fe58e11------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 09:16:07 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@alissabr/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[Deploy Your Own API using FastAPI + Docker + Poetry + Kubernetes]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://python.plainenglish.io/deploy-your-own-api-using-fastapi-docker-poetry-kubernetes-8f26fc22ac51?source=rss-95d70fe58e11------2"><img src="https://cdn-images-1.medium.com/max/1200/1*Bi2NkDVVLCEXwdXtDK5oAQ.png" width="1200"></a></p><p class="medium-feed-snippet">If you have an ML model or another application you&#x2019;ve created and want to deploy it, there are several options available. In this hands-on&#x2026;</p><p class="medium-feed-link"><a href="https://python.plainenglish.io/deploy-your-own-api-using-fastapi-docker-poetry-kubernetes-8f26fc22ac51?source=rss-95d70fe58e11------2">Continue reading on Python in Plain English »</a></p></div>]]></description>
            <link>https://python.plainenglish.io/deploy-your-own-api-using-fastapi-docker-poetry-kubernetes-8f26fc22ac51?source=rss-95d70fe58e11------2</link>
            <guid isPermaLink="false">https://medium.com/p/8f26fc22ac51</guid>
            <category><![CDATA[fastapi]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[poetry]]></category>
            <dc:creator><![CDATA[Alissa]]></dc:creator>
            <pubDate>Mon, 08 Apr 2024 11:28:15 GMT</pubDate>
            <atom:updated>2024-04-09T00:42:10.373Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Elevate your local MacBook development setup (Python & Terminal)]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@alissabr/elevate-your-local-macbook-development-setup-python-terminal-5ef79e18174b?source=rss-95d70fe58e11------2"><img src="https://cdn-images-1.medium.com/max/2600/0*SZBXrddnIlcugkP4" width="4189"></a></p><p class="medium-feed-snippet">I find myself more productive when I have a visually appealing terminal and a smoothly functioning setup. While working, I sometimes&#x2026;</p><p class="medium-feed-link"><a href="https://medium.com/@alissabr/elevate-your-local-macbook-development-setup-python-terminal-5ef79e18174b?source=rss-95d70fe58e11------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@alissabr/elevate-your-local-macbook-development-setup-python-terminal-5ef79e18174b?source=rss-95d70fe58e11------2</link>
            <guid isPermaLink="false">https://medium.com/p/5ef79e18174b</guid>
            <category><![CDATA[mac]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[terminal]]></category>
            <category><![CDATA[poetry]]></category>
            <category><![CDATA[zsh]]></category>
            <dc:creator><![CDATA[Alissa]]></dc:creator>
            <pubDate>Thu, 21 Dec 2023 11:47:27 GMT</pubDate>
            <atom:updated>2023-12-21T11:47:27.990Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Run Your Own LLM-Powered Chatbot in 5 Easy Steps]]></title>
            <link>https://python.plainenglish.io/run-your-own-llm-powered-chatbot-in-5-easy-steps-8e5c0518f1b5?source=rss-95d70fe58e11------2</link>
            <guid isPermaLink="false">https://medium.com/p/8e5c0518f1b5</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[large-language-models]]></category>
            <category><![CDATA[nlp]]></category>
            <category><![CDATA[chatgpt]]></category>
            <dc:creator><![CDATA[Alissa]]></dc:creator>
            <pubDate>Fri, 21 Jul 2023 21:15:29 GMT</pubDate>
            <atom:updated>2024-09-18T14:49:55.210Z</atom:updated>
            <content:encoded><![CDATA[<h3>🤖 = Streamlit + Langchain 🦜️ + LLaMA 🦙</h3><p>TL;DR: <a href="https://github.com/alissadb/chatbot_llm">https://github.com/alissadb/chatbot_llm</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/986/1*aEHBKhR55BM-DSPBmFV6wA.png" /><figcaption>This image was created with the assistance of DALL·E 2.</figcaption></figure><p>Large Language Models (LLMs) are a type of AI trained on massive amounts of text. They can generate text, solve math problems, answer questions, and much more. You’ve probably heard about ChatGPT using the GPT model. However, you can also build your own local chatbot using an existing LLM. In this article, we’ll explore how to create our local chatbot by combining Streamlit, Langchain, and LLaMA. Streamlit provides us with a user-friendly UI, Langchain helps us process the input of the chatbot, and we use LLaMA for generating the responses.</p><h3>Introduction</h3><p>The chatbot we’ll be discussing is a result of combining Streamlit, Langchain, and LLaMA. Instead of LLaMA, you could also use ChatGPT or another LLM.</p><ol><li><a href="https://streamlit.io/">Streamlit</a>: The app is built using Streamlit, an open-source app framework in Python. It’s super easy to use, allowing you to create an app quickly and with minimal effort. For us, it provides a user interface to interact with the chatbot.</li><li><a href="https://python.langchain.com/">Langchain</a>: Langchain is a framework for developing applications powered by language models. In our chatbot, we use Langchain to process and use the user input to create the chatbot’s answer.</li><li><a href="https://ai.meta.com/llama/">LLaMA</a>: A pre-trained large language model by Meta, LLaMA serves as the core of our chatbot’s language generation and understanding. Capable of producing creative and contextually accurate responses, LLaMA is the brains behind the chatbot.</li></ol><blockquote><strong><em>💡</em>Also learn how to build and train GPT-2 from scratch using PyTorch</strong></blockquote><p><a href="https://differ.blog/inplainenglish/here-s-how-you-can-build-and-train-gpt-2-from-scratch-using-pytorch-ace4ba">Here&#39;s how you can build and train GPT-2 from scratch using PyTorch</a></p><blockquote><em>👉</em> To read more such articles, <a href="https://differ.blog/"><strong>sign up for free on Differ</strong></a>.</blockquote><h3>Installation</h3><p>Before diving into the world of our LLM-based chatbot, let’s set up the necessary environment. Setting up the environment is made easy using <a href="https://taskfile.dev/">Task</a>, a task runner / build tool similar to GNU Make. <a href="https://github.com/pyenv/pyenv">Pyenv</a> for the managing the Python version and <a href="https://python-poetry.org/">Poetry</a> for dependency management. If you haven’t installed them already 😄, please do so.</p><p>1. Clone this repository to your local machine and navigate to the repository directory:</p><pre>git clone https://github.com/alissadb/chatbot.git<br>cd chatbot_llm</pre><p>2. To set up the local development environment with the required dependencies. Install the local environment:</p><pre>task setup-local-env</pre><h3>Running the 🤖</h3><p>Now that our environment is ready, we need to get the chatbot up and running. Here’s how you can do it:</p><ol><li>Download a pre-trained LLaMA model, such as Llama-2-7B-Chat-ggml, from Hugging Face (<a href="https://huggingface.co/localmodels/Llama-2-7B-Chat-ggml/blob/main/llama-2-7b-chat.ggmlv3.q2_K.bin">link</a>), and save it under the models/ directory.</li><li>In the app.py file, change the model name to the path of your downloaded LLaMA model:</li></ol><pre>llm_chain = get_llm_chain(model_name=&quot;models/llama-2-7b-chat.ggmlv3.q2_K.bin&quot;)</pre><p>3. To run the chatbot, use the following command:</p><pre>task run-app</pre><p>The chatbot app will now be accessible at <a href="http://localhost:8501/">http://localhost:8501</a> in your web browser.</p><h3>Conclusion</h3><p>Congratulations! 🎉 You’ve successfully created your own LLM based chatbot using Streamlit, Langchain 🦜, and LLaMA 🦙. You can explore various LLaMA models or even try out other language models, like OpenAI’s model API (this need some code changes needed in app.py).</p><p>Happy coding and enjoy your conversations with your chatbot! 🤖🚀</p><h3>In Plain English 🚀</h3><p><em>Thank you for being a part of the </em><a href="https://plainenglish.io/"><strong><em>In Plain English</em></strong></a><em> community! Before you go:</em></p><ul><li>Be sure to <strong>clap</strong> and <strong>follow</strong> the writer ️👏<strong>️️</strong></li><li>Follow us: <a href="https://twitter.com/inPlainEngHQ"><strong>X</strong></a> | <a href="https://www.linkedin.com/company/inplainenglish/"><strong>LinkedIn</strong></a> | <a href="https://www.youtube.com/channel/UCtipWUghju290NWcn8jhyAw"><strong>YouTube</strong></a> | <a href="https://discord.gg/in-plain-english-709094664682340443"><strong>Discord</strong></a> | <a href="https://newsletter.plainenglish.io/"><strong>Newsletter</strong></a></li><li>Visit our other platforms: <a href="https://cofeed.app/"><strong>CoFeed</strong></a> | <a href="https://differ.blog/"><strong>Differ</strong></a></li><li>More content at <a href="https://plainenglish.io/"><strong>PlainEnglish.io</strong></a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8e5c0518f1b5" width="1" height="1" alt=""><hr><p><a href="https://python.plainenglish.io/run-your-own-llm-powered-chatbot-in-5-easy-steps-8e5c0518f1b5">Run Your Own LLM-Powered Chatbot in 5 Easy Steps</a> was originally published in <a href="https://python.plainenglish.io/">Python in Plain English</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>