llmOS-Agent / README.md
tech-envision
Add session-based conversation history
27b075e
|
raw
history blame
517 Bytes

llm-backend

This project provides a simple async interface to interact with an Ollama model and demonstrates basic tool usage. Chat histories are stored in a local SQLite database using Peewee. Histories are persisted per user and session so conversations can be resumed with context.

Usage

python run.py

The script will ask the model to compute an arithmetic expression and print the answer. Conversations are automatically persisted to chat.db and are now associated with a user and session.