Skip to content

shalinv/chatbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

🧠 Simple Python Chatbot using Ollama and LangChain

A minimal command-line chatbot built with LangChain and Ollama that runs locally using open-source LLMs like llama3.

✨ Features

Local LLM chat with no API key needed

Supports conversation history

Simple CLI interface

Built with Python, LangChain, and Ollama

📦 Requirements

Python 3.9+

Ollama installed and running

An Ollama model pulled (e.g. llama3:8b or llama3:1b)

🚀 Installation

  1. Clone the repository
git clone <repository-url>
cd chatbot
  1. Set up a virtual environment
source venv/bin/activate  # Windows: venv\Scripts\activate
  1. Install dependencies
pip install -r requirements.txt
  1. Run the chatbot
python3 main.py

About

A minimal Python-based chatbot using LangChain and Ollama to run local LLMs like LLaMA 3 in the terminal.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages