Abah_chat – Persistent Memory Local Chatbot

JA20261 pts0 comments

GitHub - john-abah/ABAH_CHAT: Persistent Memory Local Chatbot · GitHub

/" data-turbo-transient="true" />

Skip to content

Search/

Sign in<br>Sign upAppearance settings

You signed in with another tab or window. Reload to refresh your session.<br>You signed out in another tab or window. Reload to refresh your session.<br>You switched accounts on another tab or window. Reload to refresh your session.

Dismiss alert

{{ message }}

john-abah

ABAH_CHAT

Public

Notifications<br>You must be signed in to change notification settings

Fork

Star

main

BranchesTags

Go to file

CodeOpen more actions menu

Latest commit

History<br>9 Commits<br>9 Commits

Folders and files<br>NameNameLast commit message<br>Last commit date<br>.vscode

.vscode

__pycache__

__pycache__

src/abah_chat

src/abah_chat

ABAH_CHAT_AD.png

ABAH_CHAT_AD.png

LICENSE

LICENSE

README.md

README.md

pyproject.toml

pyproject.toml

View all files

Repository files navigation

💬 abah_chat — Persistent Memory Local Chatbot

A local-first conversational AI tool featuring persistent memory. Return to your chat history at any time or seamlessly switch models while retaining full context of your previous conversations.

📖 Table of Contents

Overview

Key Features

Prerequisites

Installation

Usage

Switching Models

Credits

Contacts

Buy Me a Coffee

📌 Overview

abah_chat is designed to eliminate session loss during local LLM interactions. It stores conversation histories across sessions in persistent storage, allowing you to:

Resume conversations exactly where you left off.

Switch between different local models without losing chat context.

Query the LLM about past discussions and saved history.

✨ Key Features

Persistent Chat History: Conversations are saved locally across restarts.

Model Interoperability: Swap the underlying LLM at any point and continue referencing prior context.

Context Querying: Prompt the LLM directly to summarize or recall where you left off in past sessions.

100% Local & Private: Powered locally through Ollama.

⚙️ Prerequisites

Python: 3.12.13 (or Python 3.12+)

Ollama: Installed and running locally

📥 Installation

Clone the repository and navigate to the project root:

git clone https://github.com/john-abah/ABAH_CHAT.git<br>cd ABAH_CHAT

Install the package in editable mode:

pip install -e .

Pull the model in Ollama:

ollama pull gemma4:12b

🚀 Usage

Start the Ollama background service:

ollama serve

Launch the chat assistant in your CLI:

abah_chat

Interact with the assistant:

Type your messages normally to chat.

Ask contextual questions such as "Where did we leave off last time?" or "Summarize our previous conversation".

🔄 Switching Models

If you wish to use a different model pulled from Ollama:

Pull your desired model:<br>">ollama pull your-model-name>

Open abahchat.py and update:

self.model_client to your new model name.

model_info to match the specifications of the newly pulled model.

If the program is currently running, exit the session and run abah_chat again for the changes to take effect.

👥 Credits

Author: John Abah

📬 Contacts

Email: john.abah@stud.hshl.de

LinkedIn: John Abah

☕ Buy Me a Coffee

If you found this project helpful, feel free to support the development:

About<br>Persistent Memory Local Chatbot<br>Resources<br>Readme<br>Apache-2.0 license<br>Activity<br>Stars<br>0 stars<br>Watchers<br>0 watching<br>Forks<br>0 forks<br>Report repository

Releases

Packages

Contributors

Languages

You can’t perform that action at this time.

abah_chat local ollama persistent model john

Related Articles