Project-Based Learning: AI Edition - Build AI Apps, Chatbots, RAG and Agents by Language and Difficulty
A curated list of project-based tutorials for building AI applications: chatbots, retrieval-augmented generation (RAG) apps, AI agents, image classifiers, speech apps, on-device AI and fine-tuned models. Tutorials are grouped by programming language (Python, JavaScript and TypeScript, Go, Rust, Java and Kotlin, C# and .NET, Swift, C and C++, R) and by difficulty, so you can learn AI engineering by building real projects in the language you already know.
Last reviewed: December 2026. All links were opened during review. AI libraries change quickly; if a tutorial uses an older API version, check the library’s changelog or pin the version the tutorial used.
Table of Contents
- How to Use This List
- Difficulty Levels
- Best First Project in Each Language
- Python
- JavaScript and TypeScript
- Go
- Rust
- Java and Kotlin
- C# and .NET
- Swift and Apple Platforms
- C and C++
- R
- Any Language: Official API Cookbooks and Quickstarts
- Free Courses Built Around Projects
- Framework Comparison: Which Library Should You Build With?
- The Project Ladder: 20 AI Projects from Beginner to Advanced
- How to Turn a Tutorial into a Portfolio Project
- FAQ
- Where to Go Next
- Contributing
- License
- Credits
How to Use This List
- Pick your language section.
- Start at the Beginner level even if you are an experienced developer; AI apps fail in new ways (non-deterministic output, prompt injection, cost), and the simple projects teach them fastest.
- After each tutorial, change something meaningful: new data, a new feature, a different model, an evaluation. The Project Ladder gives specific twists.
- Keep API keys out of your code. Use environment variables and a
.envfile that is listed in.gitignore.
Entry format: [Tutorial](link) - Level. What you build.
Many tutorials use a hosted model API, which may require an account and may cost a small amount per request. Where possible, this list also includes tutorials that run local open-weight models for free (via Ollama, llama.cpp, MLX, Transformers.js or WebLLM).
Difficulty Levels
| Level | You should already know | Typical project size |
|---|---|---|
| Beginner | Basic programming in the language; how to install packages | An afternoon to a weekend; one file to a small app |
| Intermediate | Building small web apps or CLIs; JSON and HTTP APIs | One to two weeks; several components (UI, API, storage) |
| Advanced | Comfortable with ML basics or production engineering | Several weeks; training, evaluation, deployment, or performance work |
Best First Project in Each Language
| Language | Best first project | Why |
|---|---|---|
| Python | Streamlit: Build a basic LLM chat app | A working chat UI in under 50 lines, then you can swap in any model |
| JavaScript / TypeScript | Transformers.js: Building a React application | Runs a model entirely in the browser; no API key, no server |
| Go | Genkit for Go: Get started | Idiomatic Go, typed flows, and a local developer UI for testing prompts |
| Rust | The Burn Book: Basic workflow, from training to inference | Trains a real model end to end in pure Rust |
| Java | Spring AI: Getting started | Familiar Spring Boot patterns for chat, RAG and tools |
| C# / .NET | Build an AI chat app with .NET | Official quickstart using the standard .NET AI abstractions |
| Swift | Meet the Foundation Models framework (WWDC25) | On-device language model on Apple platforms with no server costs |
| C / C++ | llama.cpp examples | Learn how local LLM inference really works |
| R | ellmer | Chat with LLMs, structured data extraction and tool calling from R |
Python
Python has the largest AI ecosystem, so this section is the biggest.
Beginner
- Streamlit: Build a basic LLM chat app - Beginner. A chat interface with message history and streaming responses.
- Gradio: Creating a Chatbot Fast - Beginner. A shareable chatbot web UI around any Python function or model.
- Ollama Python library - Beginner. Chat with a local open-weight model from Python; the README examples are a complete first project.
- Training a classifier (PyTorch) - Beginner. An image classifier on CIFAR-10, the classic first deep learning project.
- Image classification from scratch (Keras) - Beginner. A cats-versus-dogs classifier with data augmentation.
- Text classification from scratch (Keras) - Beginner. A movie review sentiment classifier.
- Classification of text documents using sparse features (scikit-learn) - Beginner. Compare several classic classifiers on a news dataset; a strong, cheap baseline for any text task.
- Titanic: Machine Learning from Disaster (Kaggle) - Beginner. The classic first tabular ML project, with many public notebooks to learn from.
- Ultralytics YOLO: Model training - Beginner. Train an object detector on your own labeled images.
Intermediate
- LlamaIndex Starter Tutorial - Intermediate. A RAG app over your own documents, then an agent that uses it as a tool.
- Question answering using embeddings-based search (OpenAI Cookbook) - Intermediate. Embed a document collection, search it, and answer questions with retrieved context.
- Semantic search with FAISS (Hugging Face LLM Course) - Intermediate. Semantic search over GitHub issues with open embedding models.
- Fine-tuning a pretrained model (Hugging Face LLM Course, Chapter 3) - Intermediate. Fine-tune a transformer for text classification with the Trainer API and a custom training loop.
- Token classification, Translation, Summarization and Question answering (Hugging Face LLM Course, Chapter 7) - Intermediate. Four complete fine-tuning projects for classic NLP tasks.
- Image Similarity with Hugging Face Datasets and Transformers - Intermediate. A “find similar images” search engine using image embeddings.
- Transfer learning for computer vision (PyTorch) - Intermediate. Fine-tune a pretrained CNN on a small custom dataset.
- TorchVision object detection fine-tuning (PyTorch) - Intermediate. Fine-tune Mask R-CNN for pedestrian detection and segmentation.
- OCR model for reading captchas (Keras) - Intermediate. A CNN and RNN model trained with CTC loss to read text in images.
- Timeseries forecasting for weather prediction (Keras) - Intermediate. An LSTM that forecasts temperature from weather station data.
- OpenAI Agents SDK quickstart - Intermediate. A multi-agent setup with handoffs and guardrails.
- Pydantic AI examples - Intermediate. Type-safe agents: a bank support agent, a weather agent, SQL generation and a RAG example.
- smolagents - Intermediate. Agents that write and run Python code as their actions; small enough to read.
- Hugging Face Cookbook - Intermediate. Dozens of notebooks; good project starters include multimodal RAG with document retrieval and vision-language models and structured generation.
- DSPy tutorials - Intermediate. Build RAG, classification and agent programs whose prompts are optimized automatically against a metric.
- Claude Quickstarts - Intermediate. Complete starter apps, such as a customer support agent and a data analyst app, that you can extend.
- Modal examples - Intermediate. Deploy Python AI apps (LLM inference, Whisper transcription, image generation) to cloud GPUs.
Advanced
- Training a causal language model from scratch (Hugging Face LLM Course) - Advanced. Train a small code-completion model on Python code.
- Fine-tuning a code LLM on a single GPU (Hugging Face Cookbook) - Advanced. Parameter-efficient fine-tuning of a code model on a specific codebase.
- Unsloth documentation - Advanced. Memory-efficient fine-tuning notebooks for many open-weight models, including reinforcement learning recipes.
- Hugging Face Audio Course, Unit 7: Putting it all together - Advanced. Speech-to-speech translation, a voice assistant and meeting transcription projects.
- vLLM quickstart - Advanced. Serve an open-weight model with an OpenAI-compatible API and benchmark throughput.
- Pipecat quickstart - Advanced. A real-time voice AI agent with speech-to-text, an LLM and text-to-speech in a pipeline.
- browser-use - Advanced. Agents that operate a web browser; build a task-specific browsing agent on top.
- RAG Techniques - Advanced. A large collection of notebooks implementing advanced retrieval techniques (reranking, query transformations, hierarchical indices) to compare against your own system.
- Hugging Face Community Computer Vision Course - Intermediate to Advanced. Vision transformers, generative vision models, 3D vision and video, with project-style notebooks.
JavaScript and TypeScript
Beginner
- Transformers.js: Building a React application - Beginner. A translation app that runs a model in the browser with a Web Worker.
- Transformers.js: Building a Next.js application - Beginner. The same idea with client-side and server-side inference.
- Transformers.js: Building a browser extension - Beginner. A Chrome extension that classifies text on any page, fully on-device.
- Handwritten digit recognition with CNNs (TensorFlow.js) - Beginner. Train a CNN in the browser and watch it learn.
- ml5.js learning resources - Beginner. Friendly creative-coding projects: body pose, hand tracking and image classification with p5.js.
- Teachable Machine - Beginner. Train an image, sound or pose model in the browser without code, then export it to TensorFlow.js and build an app around it.
- Ollama JavaScript library - Beginner. Chat with a local model from Node.js.
Intermediate
- AI SDK introduction and the RAG agent guide - Intermediate. A Next.js chatbot with tool calling that stores and retrieves knowledge with embeddings in Postgres.
- Build a Retrieval Augmented Generation (RAG) AI (Cloudflare Workers AI) - Intermediate. A notes app with RAG using Workers AI, a vector index and a database at the edge.
- Built-in AI in Chrome - Intermediate. Use on-device model APIs (such as summarization, translation and prompting) available in Chrome to build private, offline-friendly features.
- WebLLM - Intermediate. Run open-weight LLMs in the browser with WebGPU behind an OpenAI-style API; build a fully local chat app.
- ONNX Runtime Web tutorials - Intermediate. Run exported models (image classification, and more) in the browser.
- OpenAI Agents SDK for TypeScript - Intermediate. Agents with tools, handoffs and voice in TypeScript.
- Mastra documentation - Intermediate. A TypeScript framework for agents, workflows, RAG and evals.
- Genkit: Get started (JavaScript) - Intermediate. Typed AI flows with a local developer UI for tracing and testing prompts.
Advanced
- MCP TypeScript SDK - Advanced. Build an MCP server exposing your app’s data and actions to AI assistants.
- Claude Agent SDK for TypeScript - Advanced. Build an autonomous agent with file, shell and web tools, permissions and sub-agents. See the Agent SDK overview.
- Vercel AI chatbot template - Advanced. A full-featured, open-source chat app (auth, persistence, artifacts) to study and extend.
Go
- Genkit for Go: Get started - Beginner. Define a typed AI flow, call a model and test it in the developer UI.
- How to Build an Agent (Amp) - Beginner to Intermediate. A code-editing agent in Go: a model, a loop and three tools.
- LangChainGo - Intermediate. LLM chains, embeddings and vector stores in Go; its examples folder is a project starter kit.
- Google Gen AI SDK for Go, Anthropic Go SDK and OpenAI Go SDK - Intermediate. Official SDKs; build a CLI that summarizes logs, or a Slack bot.
- MCP Go SDK - Advanced. Build an MCP server in Go, for example one that exposes your company’s internal service status.
- Ollama - Advanced. Ollama itself is written in Go; reading how it manages models and serves an API is a great advanced study project.
Rust
- The Burn Book: Basic workflow, from training to inference - Beginner. Build, train and run an MNIST model with the Burn deep learning framework.
- Candle documentation - Intermediate. A minimalist ML framework from Hugging Face; run open-weight models (LLMs, Whisper, Stable Diffusion) from its examples.
- Rig - Intermediate. Build LLM apps and agents in Rust with a unified API across providers and vector stores.
- mistral.rs - Advanced. A fast LLM inference engine in Rust; study it, then add a feature or a model.
- MCP Rust SDK - Advanced. Build a fast, single-binary MCP server.
Java and Kotlin
- Spring AI: Getting started - Beginner. A Spring Boot app that calls a chat model; then add structured output, RAG and tool calling from the reference docs.
- LangChain4j: Get started - Beginner. LLM calls from plain Java, then AI services with memory.
- LangChain4j: RAG tutorial - Intermediate. Easy, naive and advanced RAG in Java.
- Deep Java Library (DJL) - Intermediate. Train and run deep learning models in Java; try image classification and object detection examples.
- Koog - Intermediate. JetBrains’ Kotlin framework for building AI agents with tools and strategies.
- MCP Java SDK and MCP Kotlin SDK - Advanced. Build MCP servers for JVM services.
- ML Kit GenAI APIs (Android) - Intermediate. On-device summarization, proofreading and rewriting in Android apps on supported devices.
C# and .NET
- Build an AI chat app with .NET - Beginner. A console chat app using the
Microsoft.Extensions.AIabstractions. - Build a minimal .NET AI RAG app - Intermediate. Vector search over your own data, then answers grounded in it.
- .NET AI documentation hub - Intermediate. Quickstarts for tool calling, image generation, evaluation and more.
- ML.NET tutorial: Analyze sentiment - Beginner. A classic binary classifier trained in C#; see all ML.NET tutorials.
- Semantic Kernel quick start - Intermediate. An agent with plugins (tools) in C#, Python or Java.
- MCP C# SDK - Advanced. Expose .NET services to AI assistants via MCP.
Swift and Apple Platforms
- Meet the Foundation Models framework (WWDC25) and the Foundation Models documentation - Beginner. Use Apple’s on-device language model with guided generation and tool calling in a Swift app (requires a supported device and OS version).
- Creating an Image Classifier Model (Create ML) - Beginner. Train an image classifier with no ML code, then use it in an app.
- Core ML - Intermediate. Integrate trained models into iOS and macOS apps.
- MLX Swift examples - Advanced. Run LLMs and other models on Apple silicon from Swift; build a local chat app. Python users can use mlx-lm.
- MCP Swift SDK - Advanced. Build MCP clients and servers in Swift.
C and C++
- llama.cpp examples - Intermediate. Small programs that show embedding, batched generation, speculative decoding and more with local models.
- whisper.cpp real-time stream example - Intermediate. Live microphone transcription; extend it into a dictation tool or meeting note-taker.
- ONNX Runtime tutorials - Intermediate. Run exported models from C++, C# and other languages on many platforms.
R
- ellmer - Beginner. Chat with LLMs, extract structured data and use tools from R.
- tidymodels: Get started - Beginner. Five connected articles that build, evaluate and tune a predictive model.
Any Language: Official API Cookbooks and Quickstarts
- OpenAI Cookbook - Recipes for embeddings, function calling (example) and structured outputs (example).
- Claude Cookbooks and Anthropic courses - Notebooks for tool use, RAG and sub-agents, plus courses on prompt engineering and tool use. Start at Get started with Claude.
- Gemini API cookbook and Gemini API getting started - Notebooks for multimodal prompting, function calling and long context.
- Mistral documentation - Guides for chat, embeddings, function calling and fine-tuning.
- Chroma getting started, Qdrant documentation and pgvector-python - Vector databases for your RAG projects.
Free Courses Built Around Projects
| Course | Languages | What you build | Level |
|---|---|---|---|
| Generative AI for Beginners (Microsoft) | Python, TypeScript | Chat, search, image generation and RAG apps across 21 lessons | Beginner |
| AI Agents for Beginners (Microsoft) | Python | Agents with tools, planning, multi-agent patterns | Beginner |
| MCP for Beginners (Microsoft) | Several | MCP servers and clients in multiple languages | Beginner to Intermediate |
| ML for Beginners (Microsoft) | Python, R | Classic ML projects with scikit-learn | Beginner |
| AI for Beginners (Microsoft) | Python | Neural networks, vision and NLP labs | Beginner |
| Practical Deep Learning for Coders (fast.ai) | Python | Image, text and tabular models deployed as apps | Beginner to Intermediate |
| Kaggle Learn | Python, SQL | Short courses with hands-on exercises in notebooks | Beginner |
| Hugging Face LLM Course | Python | Fine-tuning and NLP task projects | Intermediate |
| Hugging Face Agents Course | Python | Agents graded against a benchmark | Intermediate |
Framework Comparison: Which Library Should You Build With?
You do not need a framework to build AI apps; plain HTTP calls to a model API plus your own code is a perfectly good choice and often the easiest to debug. Frameworks help when you want ready-made integrations or patterns.
| Framework | Languages | Strengths | Good first project |
|---|---|---|---|
| LlamaIndex | Python, TypeScript | Data loading, indexing and retrieval for RAG | Chat with a folder of PDFs |
| LangChain and LangGraph | Python, JavaScript | Many integrations; LangGraph for stateful, controllable agent workflows | A support agent with a human approval step |
| AI SDK | TypeScript | Streaming UI hooks, tool calling, provider-agnostic API | A Next.js chatbot |
| Pydantic AI | Python | Type-safe agents and structured output validation | An agent that returns validated JSON |
| smolagents | Python | Tiny, readable, code-writing agents | A data analysis agent |
| OpenAI Agents SDK | Python, TypeScript | Handoffs, guardrails, tracing | A triage agent with specialists |
| Claude Agent SDK | Python, TypeScript | File, shell and web tools, permissions, sub-agents | A repository maintenance agent |
| Google ADK | Python and others | Multi-agent systems, evaluation, deployment | A multi-step research agent |
| DSPy | Python | Optimizing prompts and pipelines against metrics | A classifier whose prompt is tuned automatically |
| Spring AI | Java | Spring Boot integration, RAG, tools | An internal docs assistant |
| LangChain4j | Java | AI services, memory, RAG | A chatbot for a Java web app |
| Semantic Kernel | C#, Python, Java | Plugins, enterprise integration | A plugin-based assistant |
| Genkit | TypeScript, Go, Python | Typed flows, developer UI, observability | A typed summarization flow |
| Rig | Rust | Unified provider API, vector stores | A Rust CLI assistant |
Rule of thumb: for your first two projects, use the model provider’s SDK directly. Add a framework when you can name the specific problem it solves for you.
The Project Ladder: 20 AI Projects from Beginner to Advanced
Use these as twists on the tutorials above, or as standalone projects. Each one lists what “done” means.
Beginner
- Personal prompt library CLI. Save, tag and run prompt templates with variables against a model. Done: templates are stored as files, outputs are logged with the model name and timestamp.
- Meeting notes summarizer. Paste a transcript, get decisions, action items and owners as JSON. Done: output validates against a schema; invalid output is retried once.
- Image sorter. Classify a folder of photos (receipts, screenshots, documents, people) with a pretrained image model. Done: a dry-run mode and an accuracy check on 50 hand-labeled images.
- Local chatbot. A chat UI over a local model via Ollama or WebLLM. Done: streaming responses, conversation history, a “clear chat” button, no data leaves the machine.
- Sentiment dashboard. Classify reviews or comments from a CSV and chart sentiment over time. Done: compare an LLM against a classic scikit-learn baseline on 200 labeled rows.
Intermediate
- Chat with your docs (RAG). Index a folder of Markdown or PDF files and answer questions with citations. Done: a 30-question eval set with retrieval recall and answer accuracy reported.
- Structured extraction pipeline. Turn invoices, resumes or job ads into database rows. Done: field-level accuracy measured on 50 documents; low-confidence rows are flagged for review.
- Natural language to SQL. Ask questions about a SQLite database in plain English. Done: read-only database user, query validation, and 25 test questions with expected results.
- Voice note taker. Record audio, transcribe it with a speech model, summarize and tag it. Done: works offline with a local model; word error rate measured on 5 recordings.
- Browser extension assistant. Summarize or translate the current page in the browser. Done: runs on-device or behind your own server; never sends page content without the user clicking.
- Semantic photo search. Search your photos by description using image-text embeddings. Done: incremental indexing of new photos, and a top-5 accuracy check on 20 queries.
- Customer support triage. Route incoming emails to categories and draft replies. Done: a human must approve every reply; routing accuracy measured on past data.
Advanced
- Coding agent for one repository. An agent that fixes failing tests in a small project. Done: runs in a sandbox, a benchmark of 15 tasks, and a success rate reported.
- MCP server for a real system. Expose a calendar, ticket system or database to AI assistants. Done: input validation, read-only by default, authentication for remote use, tested with MCP Inspector.
- Fine-tuned small model. Fine-tune a small open model to replace a large model on one narrow task. Done: quality within a target margin of the large model at a fraction of the latency, both measured.
- Real-time voice agent. Speech-to-text, LLM and text-to-speech with interruptions. Done: end-to-end response latency measured and reported; handles a user interrupting mid-sentence.
- Multimodal document QA. Answer questions about scanned documents with charts and tables using a vision-language model. Done: eval set with questions that need the visual layout.
- Self-hosted inference service. Serve an open model with vLLM or llama.cpp, add rate limits and metrics. Done: load test with tokens per second and p95 latency at three concurrency levels.
- Evaluation platform. A small web app that runs eval suites against prompts and models and shows regressions. Done: diff view between runs and a CI job that fails on regressions.
- On-device AI app. A mobile or desktop app that runs a model locally (Foundation Models, MLX, Core ML, ML Kit, Transformers.js). Done: works in airplane mode; battery and latency measured.
How to Turn a Tutorial into a Portfolio Project
- Pick a real user. Yourself, a friend, a club or a former employer. Real users produce real requirements.
- Add evaluation. A test set of inputs and expected behavior is what separates a demo from a product. Report numbers in the README.
- Handle failure. Timeouts, rate limits, bad model output, empty retrieval results. Show what the user sees in each case.
- Control cost. Log token usage per request and set a budget or cache.
- Think about safety. Treat model output and retrieved documents as untrusted input; never let them trigger destructive actions without confirmation.
- Write the README like a case study: problem, approach, architecture diagram, results, limitations, next steps.
- Deploy it. A live link or a short demo video doubles the value of a project.
FAQ
What is the best programming language for AI projects? Python has the most libraries and tutorials, especially for training and fine-tuning models. For AI-powered applications (calling models, RAG, agents), TypeScript, Go, Java, C# and others are fully capable; pick the language your app would be written in anyway.
Can I build AI apps for free? Yes. Run open-weight models locally with Ollama, llama.cpp, MLX, Transformers.js or WebLLM, and use free tiers or free notebook GPUs for training small models. Hosted APIs usually charge per token, often with a free tier or trial credits; check current pricing before you start.
Do I need to know machine learning to build AI apps? Not for Beginner and most Intermediate projects that use pretrained models. You will need ML basics for fine-tuning, training and serious evaluation, which is why the ladder introduces them gradually.
What is RAG and why is it in so many projects? Retrieval-augmented generation finds relevant documents for a question and passes them to the model, so it can answer from your data with citations. It is the most common pattern in business AI apps.
What is an AI agent? A program where a model decides which tools to call (search, code execution, APIs) in a loop until a task is done. Start with a single tool and a step limit; add complexity only when you can measure that it helps.
Should I use LangChain? Use it, or any framework, when its integrations save you real work. Many developers start with the provider SDK directly to understand the basics. See the framework comparison.
How do I keep my API keys safe?
Environment variables, a .gitignored .env file, and a server-side proxy for browser apps. Never ship a secret key in client-side JavaScript or a mobile app.
Where to Go Next
- Learn the internals: build an LLM, a tokenizer or a vector database from scratch to understand what the APIs hide.
- Study production systems: read open-source AI apps (chat UIs, coding agents, inference servers) and contribute fixes.
- Specialize: voice agents, document AI, on-device AI and evaluation tooling are all in demand.
- Share your work: publish one project per month with a write-up, and link it in a pull request to this list’s “Built with this list” discussion.
Contributing
Pull requests are welcome. Please keep entries accurate:
- Tutorials must build a complete project, not only show an API call.
- Include the language section, a difficulty level and one sentence describing what you build.
- Only free tutorials. Note when a tutorial needs a paid API (a free alternative is welcome).
- Check that the code works with current library versions, or say which version it needs.
License
This list is licensed under Creative Commons Attribution 4.0 International (CC BY 4.0). Linked tutorials belong to their authors and keep their own licenses.
If this helped you, a star helps others find it.
More free resources
Part of the Ralpberry Labs open-source collection. See also Top 100 Open Source.