<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Cortexx</title>
    <description>The latest articles on DEV Community by Cortexx (@cortexx_ai).</description>
    <link>https://dev.to/cortexx_ai</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3495358%2F0cbda7cf-f40a-4e24-8a68-e54a3692225b.png</url>
      <title>DEV Community: Cortexx</title>
      <link>https://dev.to/cortexx_ai</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/cortexx_ai"/>
    <language>en</language>
    <item>
      <title>BUILD A CUSTOM AI CHATBOT WITH FLOWISE</title>
      <dc:creator>Cortexx</dc:creator>
      <pubDate>Sat, 13 Sep 2025 20:15:00 +0000</pubDate>
      <link>https://dev.to/cortexx_ai/build-a-custom-ai-chatbot-with-flowise-5ebj</link>
      <guid>https://dev.to/cortexx_ai/build-a-custom-ai-chatbot-with-flowise-5ebj</guid>
      <description>&lt;p&gt;&lt;strong&gt;GET API KEYS&lt;/strong&gt; - &amp;amp; save them (ideally in notepad - its appropriate to have a consistent name):&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Groq Api keys&lt;/li&gt;
&lt;li&gt;Cohere (for this, just click on the eye icon &amp;amp; copy key)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;OPEN ANOTHER TAB &amp;amp; GO TO PINECONE WEBSITE&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Open an account&lt;/li&gt;
&lt;li&gt;Get Pinecone API&lt;/li&gt;
&lt;li&gt;Create index &lt;/li&gt;
&lt;li&gt;On the boxes below, scroll to &amp;amp; select “manual configuration”&lt;/li&gt;
&lt;li&gt;Default name should be “chatbot”&lt;/li&gt;
&lt;li&gt;Set dimension to 4096&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;CREATE FLOWISE ACCOUNT&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;On the left side click on “Agent Flows”&lt;/li&gt;
&lt;li&gt;Then “Add agent” (click on the blue icon)&lt;/li&gt;
&lt;li&gt;Drag the agent to the workspace&lt;/li&gt;
&lt;li&gt;Connect the start and agent&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;CUSTOMIZING AGENT&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Double tap on the “Agent 0” (you can rename it to “chatbot”)&lt;/li&gt;
&lt;li&gt;For Model scroll down and choose “Groq chat”&lt;/li&gt;
&lt;li&gt;Click the dropdown on the parameters and fill the details as below&lt;/li&gt;
&lt;li&gt;Credentials is where you add the api details you saved earlier (name &amp;amp; keys)&lt;/li&gt;
&lt;li&gt;Model name should be llama 3.3-70b-versatile&lt;/li&gt;
&lt;li&gt;Set temperature to 0.5&lt;/li&gt;
&lt;li&gt;Skip max tokens&lt;/li&gt;
&lt;li&gt;Turn off streaming&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Messages part&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Role should be “system”&lt;/li&gt;
&lt;li&gt;Prompt should be “You are a chat assistant on accessing documents. Your role is to answer user questions bases on the documents uploaded or will upload. Make sure to give answers from the documents and If you do not, say "I do not have information about the question asked at the moment"&lt;/li&gt;
&lt;li&gt;Click outside the whole modal to save&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Back on Flowise (on the left panel)&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;GO TO DOCUMENT STORES&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Add document details - name &amp;amp; description&lt;/li&gt;
&lt;li&gt;Add documents loader - select pdf&lt;/li&gt;
&lt;li&gt;Upload the document the model will be trained on&lt;/li&gt;
&lt;li&gt;Scroll down to splitter part and select “text splitter recursive”&lt;/li&gt;
&lt;li&gt;Click “preview chunks” on the right side&lt;/li&gt;
&lt;li&gt;Then click “process” on the top right corner&lt;/li&gt;
&lt;li&gt;After processing, click on the dropdown options button&lt;/li&gt;
&lt;li&gt;Then click “upsert chunks”&lt;/li&gt;
&lt;li&gt;Select cohere embeddings&lt;/li&gt;
&lt;li&gt;At the credentials part, put the cohere details you saved earlier (name &amp;amp; API keys)&lt;/li&gt;
&lt;li&gt;Model name should stay as “embed-english-v2.0&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Go back to the flowise tab&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Connect the pinecone credentials (name &amp;amp; API)&lt;/li&gt;
&lt;li&gt;Click on “upsert” from the top right corner&lt;/li&gt;
&lt;li&gt;After upsetting, a pop up will come. Just close it&lt;/li&gt;
&lt;li&gt;Save config&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;GO BACK TO AGENTFLOWS on the flowise left panel&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Click on the created agent&lt;/li&gt;
&lt;li&gt;Double click on agent 0&lt;/li&gt;
&lt;li&gt;Scroll down to “Document store”&lt;/li&gt;
&lt;li&gt;Document store is supposed to show you the document you just upserted&lt;/li&gt;
&lt;li&gt;Save File. Always save&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  *&lt;em&gt;Your chatbot should be live now. *&lt;/em&gt;
&lt;/h2&gt;

&lt;p&gt;Click on the purple message button on the top right corner and start chatting.&lt;/p&gt;

</description>
      <category>tooling</category>
      <category>tutorial</category>
      <category>ai</category>
      <category>llm</category>
    </item>
    <item>
      <title>Chatbot with Python (Environment Setup)</title>
      <dc:creator>Cortexx</dc:creator>
      <pubDate>Thu, 11 Sep 2025 14:51:56 +0000</pubDate>
      <link>https://dev.to/cortexx_ai/chatbot-with-python-environment-setup-268b</link>
      <guid>https://dev.to/cortexx_ai/chatbot-with-python-environment-setup-268b</guid>
      <description>&lt;p&gt;Environment Setup for Building a RAG Chatbot with Python, Streamlit, Groq, LLaMA, FAISS, and VS Code&lt;/p&gt;

&lt;p&gt;This guide provides step-by-step instructions to set up a development environment for building a Retrieval-Augmented Generation (RAG) chatbot using Python, Streamlit, Groq with LLaMA, FAISS, and Visual Studio Code (VS Code). The instructions are tailored for beginners and assume you are starting from scratch on a Windows, macOS, or Linux system.&lt;/p&gt;

&lt;p&gt;Prerequisites&lt;br&gt;
Before you begin, ensure you have the following:&lt;/p&gt;

&lt;p&gt;A computer with Windows, macOS, or Linux.&lt;/p&gt;

&lt;p&gt;An internet connection to download tools and libraries.&lt;/p&gt;

&lt;p&gt;A free Groq API key for accessing LLaMA models.&lt;/p&gt;

&lt;p&gt;A GitHub account&lt;/p&gt;

&lt;p&gt;Step 1: Install Python&lt;br&gt;
Streamlit and other required libraries need Python 3.7 or higher. Follow these steps to install Python:&lt;/p&gt;

&lt;p&gt;1.Download Python:&lt;/p&gt;

&lt;p&gt;Visit the official Python website and download the latest version (e.g., Python 3.10 or higher).&lt;/p&gt;

&lt;p&gt;Choose the installer for your operating system (Windows, macOS, or Linux).&lt;/p&gt;

&lt;p&gt;2.Install Python:&lt;/p&gt;

&lt;p&gt;Windows: Run the installer. Check the box to "Add Python to PATH" during installation.&lt;/p&gt;

&lt;p&gt;macOS/Linux: Use the installer or a package manager like Homebrew (brew install python) on macOS or apt/yum on Linux.&lt;/p&gt;

&lt;p&gt;Follow the prompts to complete the installation.&lt;/p&gt;

&lt;p&gt;3.&lt;/p&gt;

&lt;p&gt;python --version&lt;br&gt;
You should see the installed Python version (e.g., Python 3.10.12). If not, ensure Python is added to your system's PATH.&lt;/p&gt;

&lt;p&gt;Step 2: Install Visual Studio Code&lt;br&gt;
VS Code is a lightweight, powerful IDE for Python development with excellent Streamlit support.&lt;/p&gt;

&lt;p&gt;1.Download VS Code:&lt;/p&gt;

&lt;p&gt;Go to the VS Code website and download the installer for your operating system.&lt;/p&gt;

&lt;p&gt;2.Install VS Code:&lt;/p&gt;

&lt;p&gt;Run the installer and follow the prompts to install.&lt;/p&gt;

&lt;p&gt;Open VS Code after installation to confirm it works.&lt;/p&gt;

&lt;p&gt;3.Install Python Extension:&lt;/p&gt;

&lt;p&gt;In VS Code, go to the Extensions view.&lt;/p&gt;

&lt;p&gt;Search for "Python" and install the official Python extension by Microsoft.&lt;/p&gt;

&lt;p&gt;This extension provides syntax highlighting, debugging, and environment management for Python.&lt;/p&gt;

&lt;p&gt;Step 3: Set Up a virtual environment with uv&lt;br&gt;
A virtual environment isolates project dependencies to avoid conflicts.&lt;/p&gt;

&lt;p&gt;uv init chatbot(You can choose a different name to use in place of the chatbot)&lt;br&gt;
Step 4: Install Required Libraries&lt;br&gt;
With the virtual environment active, install the necessary Python libraries using pip.&lt;/p&gt;

&lt;p&gt;uv add streamlit groq faiss-cpu sentence-transformers PyPDF2&lt;br&gt;
Step 5: Configure the Groq API Key&lt;br&gt;
To use LLaMA models via Groq, you need an API key.&lt;/p&gt;

&lt;p&gt;1.Obtain a Groq API Key:&lt;/p&gt;

&lt;p&gt;Sign up at Groq Console and generate an API key.&lt;/p&gt;

&lt;p&gt;Copy the key and keep it secure.&lt;/p&gt;

&lt;p&gt;2.Set Up a .env&lt;br&gt;
Create a .env file in your root directory&lt;/p&gt;

&lt;p&gt;In your .env file, have GROQ_API_KEY=your-groq-api-key&lt;br&gt;
NB: Leave no whitespaces in your .env file else API keys might not work as expected.&lt;/p&gt;

&lt;p&gt;Add .env to your .gitignore file to avoid exposing the key if using version control.&lt;/p&gt;

&lt;p&gt;Step 8: Next Steps&lt;br&gt;
With your environment set up, you can start building the RAG chatbot:&lt;/p&gt;

&lt;p&gt;Document Ingestion: Use pypdf to load documents and sentence-transformers to create embeddings.&lt;/p&gt;

&lt;p&gt;Vector Store: Use FAISS to store and search document embeddings.&lt;/p&gt;

&lt;p&gt;LLM Integration: Use with Groq to query LLaMA models for generating responses.&lt;/p&gt;

&lt;p&gt;Streamlit UI: Build an interactive chat interface with Streamlit.&lt;/p&gt;

&lt;p&gt;Deployment: Deploy your app to Streamlit Community Cloud by following the&lt;/p&gt;

&lt;p&gt;Additional Resources&lt;br&gt;
Streamlit Documentation for building web apps.&lt;/p&gt;

&lt;p&gt;FAISS Documentation for vector store setup.&lt;/p&gt;

&lt;p&gt;Groq Documentation for LLaMA model access.&lt;/p&gt;

&lt;p&gt;VS Code Python Tutorial for IDE setup.&lt;/p&gt;

&lt;p&gt;This setup provides a foundation for building a RAG chatbot. You can now proceed to implement document ingestion, vector search, and LLM-powered responses, all within an interactive Streamlit interface in the next session. Happy coding!&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
