AI and machine learning · Free
RAG and Chatbots with LangChain
A skill AI job posts name again and again, built properly: a chatbot that answers from PLC and drive manuals, cites the page, refuses what it cannot find, and is measured on a test set. Loading and chunking, embeddings and hybrid search, the RAG chain, query translation, routing, re-ranking, evaluation, LangGraph agents and serving — on free models throughout.
Inside the course



From the lessons

What RAG is, and what it fixes
IBM Technology

LangChain: models, prompts, chains
codebasics

Loading and chunking documents
LangChain

Embeddings, vector stores and hybrid search
LangChain

The basic RAG chain and chat memory
LangChain

Better queries: multi-query, fusion, decomposition, HyDE
LangChain
Lesson frames belong to the creators named in the Credits below and are shown from YouTube.
What you will learn
Build a LangChain RAG pipeline end to end: load and chunk manuals with metadata, embed locally and search with hybrid retrieval and a re-ranker, generate cited answers with a refusal rule, handle follow-up questions, route questions between documents and a database, evaluate recall, correctness and refusal on a real test set, add a bounded corrective loop with LangGraph, and serve it with Streamlit or FastAPI — hosted or fully local.
- Load, clean and chunk vendor manuals so parameter tables survive
- Embed locally, search with hybrid BM25 + vector retrieval and re-rank with a cross-encoder
- Build a RAG chain that cites (doc p.N), refuses with NOT FOUND and handles follow-ups
- Route questions between manuals and a read-only database, with structured output
- Measure recall@k, correctness and refusal on a thirty-question test set, and improve one thing at a time
- Add a bounded corrective loop with LangGraph and serve the assistant, hosted or fully local
For you
Taking RAG and Chatbots with LangChain from the United States
- Free in the United States, as everywhere, and self-paced: lessons, notes and the final assessment are open at any hour, so your time zone and shift pattern do not matter.
- The optional certificate for learners in the United States is a one-off US$28.99. What you get for it
- Plants across the Americas most often run Allen-Bradley, Siemens and Inductive Automation; each has its own free course to take next.
- See automation and engineering jobs in the United States, and what the industry looks like in Houston, Detroit and Chicago.
- EDWartens also has a regional site for the United States, for classroom training and local support: edwartens.com/us.
The course project · about 8 hours
A manual-reading assistant over three vendor manuals, with citations and a measured score
Index a PLC manual, a drive manual and a transmitter datasheet with metadata; hybrid retrieval and a re-ranker; a RAG chain that cites (doc p.N) and says NOT FOUND; a thirty-question test set scored for recall, correctness and refusal; a Streamlit page with sources. Everything on free models.
The course project · about 5 hours
Ask the maintenance history: RAG over work orders plus routed SQL for counts
Four hundred maintenance work orders with free-text notes. Index the text for questions like 'what was done last time the agitator seal leaked', route counting questions to templated SQL, and evaluate both paths.
Course content
12 modules · 25 lessons · 11h 4m
In order, at whatever pace suits you. Each module ends with a practice task that builds on the last.
- 01What RAG is, and what it fixes4 lessons33m
- 02LangChain: models, prompts, chains1 lesson46m
- 03Loading and chunking documents1 lesson5m
- 04Embeddings, vector stores and hybrid search2 lessons23m
- 05The basic RAG chain and chat memory1 lesson6m
- 06Better queries: multi-query, fusion, decomposition, HyDE5 lessons30m
- 07Routing and structured data2 lessons13m
- 08Re-ranking and advanced indexing3 lessons21m
Requirements
- Who it is for
- Intermediate. Needs Python (the Python for AI course) and the Generative AI and LLM Foundations course, or equivalent.
- Software
- Google Colab or a laptop; LangChain, sentence-transformers, FAISS; a free OpenRouter key or Ollama. What to download, and how
- Hardware
- None. A laptop with 8 GB RAM for the fully local build.
Software you need
What to download, where from, what it costs and how to install it. Every link goes to the maker's own site, never a mirror.
Required
- 01Free, GPU time not guaranteed
Google Colab
Google, in the browser
- Runs on
- Any modern web browser
- Account
- A free Google account
Colab is free to use. In the free version GPUs and TPUs are heavily restricted and not guaranteed, sessions can run for at most 12 hours, and idle sessions are stopped. Paid plans give more reliable access.
Steps
- 1.Open colab.research.google.com and sign in with your Google account.
- 2.Click New notebook (or open the notebook your course links to).
- 3.For a GPU, choose Runtime, then Change runtime type, then pick a GPU if one is offered.
- 4.Type code in a cell and press Shift and Enter to run it.
- Save a copy to your Google Drive so your changes are kept.
- Files on the runtime are deleted when the session ends. Save outputs to Drive.
Open Google Colabcolab.research.google.com - 02Free models with rate limits
OpenRouter
OpenRouter, Inc., in the browser
- Runs on
- Any modern web browser (API works from any language)
- Account
- A free OpenRouter account
Models with IDs ending in :free cost nothing but are limited to 20 requests per minute and 50 requests per day. Buying at least 10 credits raises the daily free-model limit to 1,000 requests.
Steps
- 1.Open openrouter.ai and sign up.
- 2.Go to Keys in your account settings and create an API key. Copy it somewhere safe.
- 3.Pick a model whose ID ends in :free.
- 4.Call it with any OpenAI-compatible client using the base URL https://openrouter.ai/api/v1 and your key.
- Never paste your API key into shared code or public repositories.
- The list of free models changes over time. Check the model page before a class.
Open OpenRouteropenrouter.ai
Optional
Useful, not needed to finish the course.
- 03Free
LangChain
LangChain, Inc., a Python or npm package
- Runs on
- Any system with Python 3.10 or later
- Account
- None needed
Free, open source under the MIT licence. Model providers you call may charge for use.
Steps
- 1.Install Python 3.10 or later and create a virtual environment.
- 2.Run: pip install -U langchain
- 3.Install the package for your model provider, for example: pip install -U langchain-openai or pip install -U langchain-anthropic
- 4.Set your provider's API key as an environment variable and run the quickstart example from the docs.
- Keep API keys in environment variables or a .env file, never in shared code.
Official download pagedocs.langchain.com - 04Free
Ollama
Ollama Inc.
- Runs on
- macOS 14 Sonoma or later, Windows 10 or later, Linux
- Account
- None needed
Ollama is free and open source (MIT licence). Each model you download has its own licence; check it before commercial use.
Steps
- 1.Open ollama.com/download and pick your system.
- 2.On Windows run OllamaSetup.exe; on macOS open the DMG; on Linux run: curl -fsSL https://ollama.com/install.sh | sh
- 3.Open a terminal and run a small model, for example: ollama run <model name> (browse names on ollama.com).
- 4.Type a question at the prompt. Type /bye to exit.
- Models are several GB each. Check your free disk space first.
- More RAM, or a supported GPU, lets you run larger models faster.
- On Windows you can also install from PowerShell: irm https://ollama.com/install.ps1 | iex
Official download pageollama.com
Checked against each maker's own page on 27 September 2026. Trial lengths and editions change; the maker's page is the final word.
RAG and Chatbots with LangChain at a glance
RAG and Chatbots with LangChain is a free, self-paced online course from EDWartens for engineers, developers and students applying AI to real work. It has 12 modules and 11h 4m of video lessons by LangChain, Krish Naik, codebasics and others, with written notes and worked problems, a practical project with a document pack and a 15-question final assessment (pass mark 60%). Learning is free with an account; an optional certificate with a public verification code is issued when you pass. Last updated 27 September 2026.
All course factsHide course facts
- Price
- Free, for good. No trial, no card. The only paid item is the optional certificate, a small one-off fee.
- Who it is for
- Engineers, developers and students applying AI to real work
- Format
- 12 self-paced modules, 11h 4m of video, written notes, a practice task per module and one final assessment.
- Level
- Intermediate. Intermediate. Needs Python (the Python for AI course) and the Generative AI and LLM Foundations course, or equivalent.
- Brand
- Vendor-neutral
- Software
- Google Colab or a laptop; LangChain, sentence-transformers, FAISS; a free OpenRouter key or Ollama.
- Hardware
- None. A laptop with 8 GB RAM for the fully local build.
- Certificate
- Optional EDWartens Certificate of Completion, verifiable by code. Not a vendor credential.
- Video lessons by
- LangChain, Krish Naik, codebasics, IBM Technology, KodeKloud, Microsoft Developer, freeCodeCamp.org, SingleStore, Tech With Tim (independent creators, credited below)
- Language
- English
- Last updated
- 27 September 2026
A shareable EDWartens certificate
Finish every module and pass the final assessment, and the optional EDWartens certificate is yours. It carries a unique verification code on a public page anyone can check, so it stands up when a recruiter looks it up. See it below.
The course itself stays free whether or not you ever buy one.
Stuck? Ask a practising engineer
A free course usually means a comment section and hope. This one does not. Every module has an Ask-your-trainer panel that reaches the same engineers who teach our paid programme: people who commission panels for a living, not moderators.
Pairs well with
PLC programming · FreeSiemens TIA PortalFrom zero electrical knowledge to a working, simulated S7-1200 program, for nothing.
PLC programming · FreeSiemens TIA Portal in Three HoursThe first three hours of the Siemens TIA Portal course, cut to end on a win: what a PLC is, how it is wired, a project configured in TIA Portal, and your first ladder program running in simulation. Finish it in an evening or two, earn a certificate, and carry straight on into the full course.
PLC programming · FreeTIA Portal: Build a MachineOne machine, start to finish. Take a bottle filling line from a written specification and an I/O list to a structured S7-1200 program with a fill station, a capper, a reject sorter and an operator screen with alarms, then test it against a written record and archive it for hand-over. The lessons are the reference; the machine is yours, and it is what you submit.
Instrumentation · FreeInstrumentation for PLC EngineersThe half of the loop that is not code. Follow one measurement from the transmitter in the field, down the 4-20 mA loop, into the analog card, through NORM_X and SCALE_X into engineering units, out again to a valve, and back to the control room when the reading is wrong.More free courses: Free AI courses for engineers · Free generative AI and ChatGPT courses
Learning paths with this course
- Applied AI engineer · 4 coursesThe four skills AI job posts name most: machine learning with scikit-learn, computer vision with OpenCV, deep learning with TensorFlow and Keras, and RAG chatbots with LangChain — each with a plant project.
Learner reviews
No reviews yet
Reviews here are written only by learners who have finished every module of RAG and Chatbots with LangChain, and they are published exactly as written. Finish the course and yours will be the first.
Common questions
What do I need before this course?
Comfortable Python and the ideas from the Generative AI course — tokens, prompts, embeddings. If you have done those two courses you are ready.
Do I need a paid API?
No. Hosted models come from OpenRouter's free tier; embeddings and the re-ranker run locally with sentence-transformers; FAISS is local. The fully local build with Ollama needs nothing online at all.
What are the projects in the RAG and Chatbots with LangChain course?
A manual-reading assistant over three vendor manuals with citations, a re-ranker, a thirty-question evaluation and a Streamlit page; and an assistant over a year of maintenance work orders that routes text questions to RAG and counting questions to templated SQL.
Why so much on evaluation?
Because a RAG demo is easy and a RAG tool is not. The service desk in the project will accept the assistant when the numbers say recall above 0.85 and refusal at 1.0 — that is the standard the course teaches you to reach and to prove.
Is the RAG and Chatbots with LangChain course really free?
Yes. Every module, practice task, project and assessment. You create an account so your progress is saved and the assessments can be marked. The certificate is the only paid item, and only if you want it.
What certificate does the RAG and Chatbots with LangChain course give?
An EDWartens Certificate of Completion, issued when you have finished the modules and passed the final assessment (the project is optional practice), with a verification code anyone can check. It is not a vendor credential and is never described as one.
Who made the video lessons in the RAG and Chatbots with LangChain course?
The creators named in the Credits block at the foot of this page, on their own YouTube channels. EDWartens did not make the videos and the creators are not affiliated with EDWartens. What EDWartens wrote is the study plan, the notes, the practice tasks, the projects and the assessments.
What you walk away with
Your certificate for RAG and Chatbots with LangChain
Finish the course, pass the final, and this is the document with your name on it.

Verifiable by anyone
Adds to LinkedIn in one click
QR code on the certificate
Names what you can do
A permanent link
Earned, not attended
Learning is free. The certificate is optional.
Add it now and pay only when you have finished the course, or come back for it later. One-off, US$28.99, with a receipt.
Issued by EDWartens, the training division of Wartens, as a Certificate of Completion for this self-paced course. Sold by Wartens Ltd (England and Wales). It is not a vendor certification, a university award or a CPD-accredited activity, and it does not certify competence on live equipment. Delivered electronically; see the refund policy.
Credits
Who made the video lessons
The video lessons in this course were created by the people below, not by EDWartens. Every lesson streams from its creator's own YouTube channel; EDWartens neither hosts nor sells that footage, and the creators are not affiliated with EDWartens and do not endorse this course. What EDWartens wrote is the study plan, the notes, the practice tasks and the assessments.
- LangChainthe RAG From Scratch series
- Krish Naikthe complete RAG crash course with LangChain
- codebasicsthe LangChain crash course
- IBM TechnologyWhat is RAG
- KodeKloudRAG explained for beginners
- Microsoft Developerthe search-apps, RAG and agents lessons
- freeCodeCamp.orgthe LangGraph complete course
- SingleStorea lesson in "Evaluating a RAG system"
- Tech With Tima lesson in "Build, serve, keep private"
If you are one of these creators and would like a lesson removed or credited differently, write to info@wartens.com.
