A minimal command-line chatbot built with LangChain and Ollama that runs locally using open-source LLMs like llama3.
Local LLM chat with no API key needed
Supports conversation history
Simple CLI interface
Built with Python, LangChain, and Ollama
Python 3.9+
Ollama installed and running
An Ollama model pulled (e.g. llama3:8b or llama3:1b)
- Clone the repository
git clone <repository-url>
cd chatbot- Set up a virtual environment
source venv/bin/activate # Windows: venv\Scripts\activate- Install dependencies
pip install -r requirements.txt
- Run the chatbot
python3 main.py