Simple Python scripts to chat with large language models (LLMs) from various sources. This README will guide you step by step—even if you’re new to Python or command-line tools.
- Python 3.8+ installed.
- pip (Python package installer).
- uv cli tool (for virtual env & scripts).
- ollama installed if you plan to use the Ollama model backend.
-
Clone the repository:
git clone cd chat-llm -
Create and activate a virtual environment using
uv:uv venv uv activate -
Install Python dependencies:
uv install -r requirements.txt
All scripts use uv run. For example, to start a simple chat prompt with Ollama:
uv run prompt-chat-ollama.py