Free course · AI and machine learning

RAG and Chatbots with LangChain

This free course teaches you to build a chatbot that answers from PLC and drive manuals, cites the page, refuses what it cannot find and is measured on a test set. You load and chunk documents, use embeddings and hybrid search, build the RAG chain, add re-ranking, evaluation and LangGraph agents, and serve it with free tools. It suits UK engineers and developers, and helps with applied AI engineer, automation engineer and software engineer roles. A laptop with 8 GB of RAM covers the local build.

RAG and Chatbots with LangChain is a free online intermediate AI and machine learning course with 12 modules, about 15 hours of video lessons. Learning is free; an optional verifiable certificate costs £19 including VAT when you pass the final exam. Last updated 28 October 2026.

See the modules

Free to learn. Verifiable certificate £19 when you pass the final exam (optional, VAT included).

Level
Intermediate
Modules
12
Video
15 hours

Video time only: reading the notes, the quizzes and the final exam take extra time, at your own pace.

Price
Free

Outcome

What you will be able to do

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

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.

Syllabus

12 modules

Each module has video lessons, notes and a short quiz. The final exam closes the course.

  1. 1What RAG is, and what it fixes4 lessons
  2. 2LangChain: models, prompts, chains1 lesson
  3. 3Loading and chunking documents1 lessonLab
  4. 4Embeddings, vector stores and hybrid search2 lessonsLab
  5. 5The basic RAG chain and chat memory1 lessonLab
  6. 6Better queries: multi-query, fusion, decomposition, HyDE5 lessons
  7. 7Routing and structured data2 lessonsLab
  8. 8Re-ranking and advanced indexing3 lessons
  9. 9Evaluating a RAG system1 lessonLab
  10. 10Agentic RAG with LangGraph3 lessonsLab
  11. 11Build, serve, keep private2 lessons
  12. 12Final assessment0 lessons

How it works

How this course works

  1. Watch the video lessonsOne module at a time, at your own pace.
  2. Take the module quizA short quiz at the end of each module shows what stuck.
  3. Keep your notesWrite in My notes beside each module and ask the trainer if you are stuck.
  4. Practise in the labOptionalTry a task from the module in the EDWartens Lab, in your browser.
  5. Sit the final examPass it once you have been through the modules.
  6. Certificate, if you want oneOptionalPaid, and only after you pass. Anyone can check it online.

EDWartens Lab

Practise this in the EDWartens Lab

Tune a document assistant by hand: set the chunking and retrieval so it cites the right section, make it refuse when the documents are silent, and keep an agent safe.

Works alongside RAG and Chatbots with LangChain. The Lab is ai for industry practice in your browser: no install, no hardware, free to use. Sign in as a learner and it opens with your account.

AI for industry: Build AI models.

Levels to try with this course

Optional. Skip it whenever you like: it never blocks your progress or your certificate.

Why practise in a lab

Technical work is judged on what you can do: wiring, commissioning, finding a fault. Doing a task yourself teaches more than watching it a second time, and a lab lets you try it safely before you meet real equipment. It does not replace working on real hardware.

  • Practise safely, so a mistake costs nothing.
  • The lab checks your work like a site test, so you know when it is right.
  • Free, in your browser, with nothing to install.

Certificate

An optional certificate when you pass

Learning is free. Pass the final exam and you can have a certificate for £19, including VAT, with a number employers can check online. It records that you completed a free online course; it is not a regulated qualification or a CPD certificate.

  • Your name, the course, its study time and your final exam score
  • A unique certificate number and a QR code to its verification page
  • Issued by Wartens Ltd; add it to your LinkedIn profile in one click
  • Pay now or after you pass: it is issued the moment you pass the final

How the certificate works

Sample certificate for RAG and Chatbots with LangChain

Credits

Who made the lessons

The video lessons belong to their creators. EDWartens wrote the study plan, notes, quizzes and the final exam.

Jobs

Jobs this course can lead to

The skills in this course are used in generative AI and LLM work, for example as an applied AI engineer, an automation engineer and a software engineer. No course can promise a job, and employers also look for experience, so read what live adverts ask for.

Questions

About this course

Last reviewed 28 October 2026.

Is this enough to get an AI engineer job in the UK?
No. It is an intermediate, practical build with testing habits employers like. UK AI engineering roles also ask for software engineering depth, so publish your project, show your evaluation results and be ready to explain your design choices.
Do I need paid AI services?
The course uses free tools, and a laptop with 8 GB of RAM is enough for the fully local build. Check any hosted provider's pricing and terms yourself if you choose to swap one in.
Can I use it with confidential documents?
A local build keeps documents on your own machine, which helps with confidentiality. Even so, follow your employer's rules on data and AI tools, and test your chatbot's refusals and citations before anyone relies on its answers.
What does the RAG and Chatbots with LangChain course cover?
It has 12 modules. The first are “What RAG is, and what it fixes”, “LangChain: models, prompts, chains”, “Loading and chunking documents”, “Embeddings, vector stores and hybrid search” and “The basic RAG chain and chat memory”, and 7 more follow. Each module has video lessons, notes and a short quiz.
Where does RAG and Chatbots with LangChain start and where does it end?
It starts with “What RAG is, and what it fixes” and the last module is “Final assessment”. The final exam closes the course, and passing it is what makes the optional £19 certificate available.
How long is RAG and Chatbots with LangChain?
12 modules with 25 lessons, about 15 hours of video lessons. The largest module is “Better queries: multi-query, fusion, decomposition, HyDE” with 5 lessons. Video time only: reading the notes, the quizzes and the final exam take extra time, at your own pace.
Can I practise RAG and Chatbots with LangChain in the browser?
Yes. Some modules of RAG and Chatbots with LangChain have a practice level in the EDWartens Lab, marked Lab on the module list, so you can try the ideas in your browser without installing software.
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. Embeddings, the re-ranker and FAISS run locally, and hosted models are available on OpenRouter's free tier, which has daily request limits. A long scored run (about 55 calls for thirty questions with a judge) can pass those limits, so use the fully local build with Ollama or spread the run over several days. Ollama needs nothing online once the models are downloaded.
What are the projects?
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. In the first project the service desk sets its own limits, such as recall above 0.85 and refusal at 1.0. Those are that scenario's numbers, not a standard: the course teaches you to set limits from the users and to prove you reach them.
Is the 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 do I get?
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?
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.

Want a live class and career support?

The Professional Module is five live days of Siemens PLC, HMI and SCADA with an instructor, then career sessions with our engineers and a CPD certificate.

Engineers talking beside an automation test rig, one looking up and smiling