Skip to the content.

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

  1. Pick your language section.
  2. 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.
  3. After each tutorial, change something meaningful: new data, a new feature, a different model, an evaluation. The Project Ladder gives specific twists.
  4. Keep API keys out of your code. Use environment variables and a .env file 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

Intermediate

Advanced


JavaScript and TypeScript

Beginner

Intermediate

Advanced


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

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

  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. 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

  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. 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.
  6. 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.
  7. 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

  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. 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.
  6. 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.
  7. 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.
  8. 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

  1. Pick a real user. Yourself, a friend, a club or a former employer. Real users produce real requirements.
  2. Add evaluation. A test set of inputs and expected behavior is what separates a demo from a product. Report numbers in the README.
  3. Handle failure. Timeouts, rate limits, bad model output, empty retrieval results. Show what the user sees in each case.
  4. Control cost. Log token usage per request and set a budget or cache.
  5. Think about safety. Treat model output and retrieved documents as untrusted input; never let them trigger destructive actions without confirmation.
  6. Write the README like a case study: problem, approach, architecture diagram, results, limitations, next steps.
  7. 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


Contributing

Pull requests are welcome. Please keep entries accurate:

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.