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
models Model capability detection and utilities models

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)
├── models.py       ← Centralized model utilities
├── utils/          ← Shared tools, prompts, paths, etc.
└── commands/       ← Shared CLI commands

Examples and scripts are available in the repository:

hands-on-ai/
├── examples/       ← Example scripts for all modules
└── scripts/        ← Utility scripts for package maintenance

🧑‍🏫 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.

LLM Ready

This package is LLM-ready with a comprehensive guide for Large Language Models to understand its functionality. See the LLM Guide for detailed API references, usage examples, and best practices.

For best results when working with an LLM:

  1. Download the LLM guide file
  2. Upload it to your LLM interface/chat at the beginning of your conversation
  3. The LLM will now have detailed knowledge about the package's structure and capabilities

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.13.tar.gz (116.0 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.13-py3-none-any.whl (139.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hands_on_ai-0.1.13.tar.gz
  • Upload date:
  • Size: 116.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for hands_on_ai-0.1.13.tar.gz
Algorithm Hash digest
SHA256 1aa62b3f0c013c1b945f1d7a7bd2b5ea32e0a2246f27d92061611cbb84a71007
MD5 7a4f75412edb5cbacb64d4679098bbaa
BLAKE2b-256 798c6775425ac6d6f9b122e9f3d1f0cf938f833d5cf45f532ad288348fcd3cbf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hands_on_ai-0.1.13-py3-none-any.whl
  • Upload date:
  • Size: 139.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for hands_on_ai-0.1.13-py3-none-any.whl
Algorithm Hash digest
SHA256 025ef020db7bab46220b1859b6598ccfce219b8043eb1a1a61bdecd5b25f5c60
MD5 5532227dd3c5cebb7bcc2eeeecb409e5
BLAKE2b-256 ac3dc88515bee6e8c088cf9fc4e2c9de48b85c47a39929d21495b3d9762e99f6

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