Skip to content

Ollama based chatting interface written in python !

License

Notifications You must be signed in to change notification settings

LilCloudCoder/Termbots

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TERMBOTS

GitHub
Python
Pip
Ollama
LangChain
Rich

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.


Overview

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, and exit.
  • Change the template in main.py to suit your needs.

Prerequisites

  • 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

Installation (all systems)

  1. 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

How to run it in Termux:

  • 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 :)

About

Ollama based chatting interface written in python !

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages