Skip to main content

Hands-on AI Toolkit for classrooms

Project description

HandsOnAI: Your AI Learning Lab

Python 3.6+ MIT License Classroom Ready Beginner Friendly

AI learning made simple for students and educators

HandsOnAI is a unified educational toolkit designed to teach students how modern AI systems work — by building and interacting with them directly.

It provides a clean, modular structure that introduces core AI concepts progressively through three tools:

🧱 Module Overview

Module Purpose CLI Name
chat Simple chatbot with system prompts chat
rag Retrieval-Augmented Generation (RAG) rag
agent ReAct-style reasoning with tool use agent

Each module is:

  • 🔌 Self-contained
  • 🧩 Installable via one package: pip install hands-on-ai
  • 🧠 Designed for progressive learning

🗂 Project Structure

hands_on_ai/
├── chat/           ← A simple prompt/response chatbot
├── rag/            ← Ask questions using your own documents
├── agent/          ← Agent reasoning + tools (ReAct-style)
├── config.py       ← Shared config (model, chunk size, paths)
├── cli.py          ← Meta CLI (list, config, version)
└── utils/          ← Shared tools, prompts, paths, etc.

🧑‍🏫 Why This Matters for Students

Each tool teaches a different level of modern AI interaction:

  • chat – Prompt engineering, roles, and LLMs
  • rag – Document search, embeddings, and grounded answers
  • agent – Multi-step reasoning, tool use, and planning

🚀 Getting Started

Installation

# Install from PyPI
pip install hands-on-ai

# Or directly from GitHub
pip install git+https://github.com/teaching-repositories/hands-on-ai.git

Prerequisites

  • Python 3.6 or higher
  • For local LLM usage: Ollama or similar local LLM server

Quick Start

Run a local Ollama server, then import and start chatting:

from hands_on_ai.chat import pirate_bot
print(pirate_bot("What is photosynthesis?"))

For more options:

from hands_on_ai.chat import get_response, friendly_bot, pirate_bot

# Basic usage with default model
response = get_response("Tell me about planets")
print(response)

# Use a personality bot
pirate_response = pirate_bot("Tell me about sailing ships")
print(pirate_response)

Contributing

We welcome contributions! See CONTRIBUTING.md for guidelines on how to get involved.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

  • Built with education in mind
  • Powered by open-source LLM technology
  • Inspired by educators who want to bring AI into the classroom responsibly

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hands_on_ai-0.1.1.tar.gz (109.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hands_on_ai-0.1.1-py3-none-any.whl (131.7 kB view details)

Uploaded Python 3

File details

Details for the file hands_on_ai-0.1.1.tar.gz.

File metadata

  • Download URL: hands_on_ai-0.1.1.tar.gz
  • Upload date:
  • Size: 109.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.10.12

File hashes

Hashes for hands_on_ai-0.1.1.tar.gz
Algorithm Hash digest
SHA256 dbd57d77b7336ee821d036a71993c69caf98d20163bbd7e47b4057ed47b9872d
MD5 73d4c8df7ca8c6aa07a2a3bc33f086c2
BLAKE2b-256 43019e316748f2bd2abe8297e6ea4f04e2b68561a5e0e21c1ed69d6a7ebdcdab

See more details on using hashes here.

File details

Details for the file hands_on_ai-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: hands_on_ai-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 131.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.10.12

File hashes

Hashes for hands_on_ai-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b732b5148bc11933ec8620fd64d485f38f8ca36ed719faaafb1887cbfe82c43f
MD5 6e6652c2316fff8e4ba14e3622b43ad6
BLAKE2b-256 2599b3829d21741a7d9fa1925d142807c5d0de23f379b445a52abab5735e5c1c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page