Skip to content

Copilotclaw/trainingdemo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

186 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ¦ƒ Training Demos β€” Copilotclaw

A public repo of AI/ML training notebooks managed by Crunch (Copilotclaw's AI agent).

Notebooks are designed to run in Google Colab with one click β€” no local install required.
πŸ¦™ Ollama variants run fully offline on your own machine.


πŸ“š Notebooks

Notebook Topic Open Explainer
human-rag-exercise.ipynb Human RAG β€” understand retrieval by doing it on paper first Open In Colab (start here!)
simple-rag-demo.ipynb RAG with FAISS + SentenceTransformers Open In Colab View Explainer
simple-rag-demo-ollama.ipynb πŸ¦™ Local RAG with Ollama β€” same pipeline but with real LLM generation, fully offline Open In Colab Ollama Colab Setup
qwen35-tiny-rag-demo.ipynb πŸ‘οΈ Qwen 3.5 Tiny + Vision RAG β€” 0.8B–9B models with native image understanding, fully offline or via DashScope API Open In Colab Ollama or ALIKEY
simple-rag-demo-java.ipynb β˜• RAG in Java β€” same pipeline in pure Java with TF-IDF (no Python libs, runs in Colab via javac/java) Open In Colab (compare with Python!)
ragmcp-start.ipynb πŸš€ RAG MCP Starter β€” clone the full ragmcp repo and explore all its notebooks from Colab Open In Colab (start here for ragmcp!)
bm25-explainer.ipynb πŸ” BM25 vs Embeddings β€” why keyword search still wins for product data; hands-on BM25 from scratch + live comparison Open In Colab (no API key needed!)
rag-techniques-ollama.ipynb πŸ”¬ Advanced RAG Techniques β€” HyDE, MultiQuery, Step-Back, Re-Ranking, BM25, Dense Embedding with Ollama Open In Colab View Explainer
ragas-evaluation-ollama.ipynb πŸ“ RAGAS Evaluation β€” score your RAG pipeline on Faithfulness, Answer Relevancy, Context Precision & Recall using Ollama β€” no API key needed Open In Colab (after rag-techniques!)
ragas-evaluation-guide.ipynb πŸ“Š RAGAS Evaluation Guide β€” comprehensive walkthrough of all 5 RAGAS metrics (OpenAI + Ollama), diagnostic table, multi-question examples Open In Colab (deep dive into RAGAS!)
ragas-grok-tutorial.ipynb 🦾 RAGAS + Grok Tutorial β€” evaluate your RAG pipeline with the free Grok API (xAI); all 5 metrics, climate-science sample data, per-question score breakdown, good vs bad answer analysis Open In Colab (free Grok key required)
ragas-ali-tutorial.ipynb πŸ‰ RAGAS + Alibaba Qwen Tutorial β€” same 5-metric RAGAS evaluation using the Alibaba DashScope Qwen API (OpenAI-compatible); generous free tier, no second key for embeddings Open In Colab (DashScope key required)
ragmcp/GraphRAG/Historical_GraphRAG_Demo - Copy.ipynb πŸ•ΈοΈ Historical GraphRAG β€” build a knowledge graph from historical texts using LLMs + Ollama, fully self-contained Open In Colab View Graph RAG Explainer Deep Dive Explainer
graphrag-neo4j-demo.ipynb πŸ—„οΈ GraphRAG with Neo4j β€” install Neo4j Community in Colab, build a knowledge graph, query it with LangChain Neo4jGraph + GraphCypherQAChain; includes vector index + semantic search (Groq free tier LLM) Open In Colab (free Groq key optional)
agentic-rag-demo.ipynb πŸ€– Agentic RAG with Grok + LangGraph β€” self-correcting pipeline: Retrieve β†’ Generate β†’ Evaluate β†’ loop until verified; uses Grok structured output for hallucination detection Open In Colab (xAI API key required)
autogen-agentic-rag-demo.ipynb 🏒 Agentic RAG with Microsoft AutoGen + Grok β€” same Evaluator-Optimizer loop but using AutoGen's conversational FSM: agents literally talk to each other; a Python speaker-selection function replaces graph edges Open In Colab (compare with LangGraph!)
Teaching_Agentic_Retrieval_in_Colab.ipynb πŸ§‘β€πŸ« Teaching Agentic Retrieval in Colab β€” step-by-step introduction to agentic retrieval pipelines, designed for teaching/classroom use Open In Colab (classroom-ready!)

πŸ” What's in the RAG notebook?

The simple-rag-demo.ipynb notebook walks through the full RAG pipeline:

  1. Build a knowledge base β€” a small set of documents about RAG, FAISS, and local LLMs
  2. Embed documents using sentence-transformers (all-MiniLM-L6-v2, ~80MB, runs in Colab free tier)
  3. Index with FAISS β€” efficient vector similarity search by Meta
  4. Query the index β€” retrieve top-k most relevant documents for any question
  5. Build a prompt β€” see how retrieved context becomes an LLM input
  6. Exercises β€” extend it yourself

No API keys. No cloud credits. Runs fully in Colab.


πŸš€ Quick Start

Colab (recommended): Click the badge above β†’ runs in your browser in ~60 seconds.

Local:

git clone https://github.com/Copilotclaw/trainingdemo
cd trainingdemo
pip install sentence-transformers faiss-cpu jupyter
jupyter notebook simple-rag-demo.ipynb

🏫 PIRAGE RAG Trainingskurs (Deutsch)

Ein vollstΓ€ndiger 3-Tage RAG-Kurs auf Deutsch β€” basierend auf dem LearnRAG-Material. Kein API-Key, kein lokales Setup β€” lΓ€uft in Google Colab.

PIRAGE: Parse β†’ Index β†’ Retrieval β†’ Augmented Generation β†’ Evaluation

Session Titel Notebook Colab
1 Grundlagen von RAG + PIRAGE-Framework 01_grundlagen_rag.ipynb Open In Colab
2+3 Naive RAG β€” Einrichtung & Chunking 02_naive_rag.ipynb Open In Colab
4–12 Hybrid RAG, GraphRAG, Agentic RAG… (coming soon) β€”

β†’ VollstΓ€ndige KursΓΌbersicht


πŸ› οΈ Generating Explainers

Each notebook has an auto-generated HTML explainer. To regenerate or add one for a new notebook:

# Install the one dependency
pip install openai

# Generate (requires ALIKEY or AZURE_API_KEY env var)
python scripts/generate_explainer.py my-notebook.ipynb

# Test without an LLM key
python scripts/generate_explainer.py my-notebook.ipynb --no-llm

# Custom output path
python scripts/generate_explainer.py my-notebook.ipynb --output my-notebook-explainer.html

The script calls Ali qwen3-coder-plus (or Azure as fallback) to write the explainer content, then renders it as a polished HTML page with hero, steps, key concepts, and a CTA.

Auto-generation: add .github/workflows/generate-explainers.yml (file is ready in the repo root β€” needs a user with workflows permission to commit it) to auto-regenerate on every notebook push.


πŸ¦ƒ About

This repo is managed by Crunch β€” an AI agent running on GitHub Actions. Notebooks are generated and committed autonomously based on training needs.

More notebooks coming as training topics expand.

About

Training demos: RAG, LLMs, and notebooks managed by Crunch πŸ¦ƒ

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors