A terminal chatbot built using LangChain Core Templates, Ollama, and Rich. This project provides an interactive, context-aware chat interface right in your terminal, complete with advanced commands, conversation history, logging, and dynamic prompt generation.
This terminal chatbot allows you to:
- Interact with a large language model via the Ollama server.
- Enjoy a colorful terminal UI powered by Rich.
- Maintain context with recent conversation history using LangChain prompt templating.
- Use advanced commands such as
help,history,reset,clear, andexit. - Change the template in
main.pyto suit your needs.
-
Ollama
Make sure you have the Ollama installed and running on your system. -
System Requirements for Ollama:
The required model for Ollama full may need a specific amount of RAM. Ensure your system meets the necessary RAM requirements for the model you plan to use. -
Python 3.12.9 (for no errors) & pip 25.0.1 or higher
-
git for cloning the repo
-
Clone the Repository
git clone https://github.com/lilcloudcoder/Termbots.git cd Termbots pip install -r libs.txt ollama serve # in a new session run : cd Termbots python main.py
- Install termux from f-droid
- Run the commands below:
apt upgrade -y ; apt install binutils python rust clang -y ; apt install python-numpy git -y ; git clone https://github.com/lilcloudcoder/Termbots.git ; cd Termbots ; pip install -r libs.txt ; clear && python main.py 😁 Fun Fact: I've created it in TERMUX :)