/Streamlit-Ollama-Chatbot

AI Chatbot with Streamlit and Ollama

Primary LanguagePythonMIT LicenseMIT

CI/CD Pipeline

Try the Project quickly with Python Venv's:

python -m venv streamllama #create it

streamllama\Scripts\activate #activate venv (windows)
source streamllama/bin/activate #(linux)
pip install -r requirements.txt #all at once
streamlit run ollama_chatbot.py

Make sure to have ollama ready and running your desired model!


Streamlit Ollama Chatbot

This repo contains the completed code for the YouTube tutorial video series:

Build Your Own AI Chatbot with Streamlit and Ollama: A Step-by-Step Tutorial

Completed Code

Run the command below to clone the completed project code.

git clone https://github.com/DevTechBytes/Streamlit-Ollama-Chatbot.git

Getting Starter Project Code

Run the command below to clone the starter project.

git clone --single-branch --branch starter_project https://github.com/DevTechBytes/Streamlit-Ollama-Chatbot.git

Chatbot Features include:

  • Ability to select different Ollama models to be used by the chatbot
  • Streaming output when responding to users like ChatGPT

Ollama

Download ollama

Ollama Commands

Start Ollama Server

ollama serve

Run Ollama Model

ollama run <model_name>
ollama run llama2-uncensored

Download Ollama Model

ollama pull <model_name>
ollama pull llama2-uncensored

List Installed Ollama Models

ollama list

Delete Installed Ollama Models

ollama rm <model_name>
ollama rm llama2-uncensored