How to Improve LLMs with RAG (Overview + Python Code)

From the creator

🀝 Your team not maximizing Claude? I run 1:1 and team AI workshops for companies doing $10M+ per year: https://aibuilder.academy/yt/Ylz779Op9Pw In this video, I give a beginner-friendly introduction to retrieval augmented generation (RAG) and show how to use it to improve a fine-tuned model from a previous video in this LLM series. ▢️ Series Playlist: https://www.youtube.com/playlist?list=PLz-ep5RbHosU2hnz5ejezwaYpdMutMVB0 πŸŽ₯ Fine-tuning with QLoRA: https://youtu.be/XpoKB3usmKc πŸ“° Read more: https://medium.com/towards-data-science/how-to-improve-llms-with-rag-abdc132f76ac?sk=d8d8ecfb1f6223539a54604c8f93d573 πŸ’» Colab: https://colab.research.google.com/drive/1peJukr-9E1zCo1iAalbgDPJmNMydvQms?usp=sharing πŸ’» GitHub: https://github.com/ShawhinT/YouTube-Blog/tree/main/LLMs/rag πŸ€— Model: https://huggingface.co/shawhin/shawgpt-ft References [1] https://github.com/openai/openai-cookbook/blob/main/examples/Question_answering_using_embeddings.ipynb [2] https://www.youtube.com/watch?v=efbn-3tPI_M [3] https://docs.llamaindex.ai/en/stable/understanding/loading/loading.html [4] https://www.youtube.com/watch?v=Zj5RCweUHIk&list=WL&index=4 Intro - 0:00 Background - 0:53 2 Limitations - 1:45 What is RAG? - 2:51 How RAG works - 5:03 Text Embeddings + Retrieval - 5:35 Creating Knowledge Base - 7:37 Example Code: Improving YouTube Comment Responder with RAG - 9:34 What's next? - 20:58

Stop watching Β· start building
Matched to RAG

Makers residency 4th edition

Your idea can be anything. At our last workshops, people built plant-based nutrition businesses, a way to measure planetary resilience, crochet headwear and a way to connect lonely people living in the same building. An asset manager went on to raise an additional Β£25M on their fund within nine months. The fourth workshop is a full day at KOKO with Nick Sarafa, learning to build with Claude Code. Bring the thing you keep meaning to start. We’ll bring the pizza.

β—† Fri 13 Nov 2026 β—† KOKO, London
Makers residency 4th edition
Live event
Makers residency 4th edition
Fri 13 Nov 2026
Find a job · 1 live role

Jobs in AI.
Apply now.

Apply once › get screened › meet the company

See all roles

More like this

Running one yourself?

List your AI event,
wherever it is.

A meetup, a workshop, a hackathon, a conference. Any city, or online. Tell us about it and it lands in front of people already learning this stuff.