inflearn logo

RAG Master: From Basics to Advanced Techniques (feat. LangChain)

This lecture covers RAG (Retrieval-Augmented Generation) system fundamentals and implementation using LangChain. Participants will understand RAG's core principles and learn to build and evaluate systems using LangChain.

(4.9) 72 reviews

771 learners

Level Basic

Course period Unlimited

RAG
RAG
LangChain
LangChain
LLM
LLM
Chatbot
Chatbot
Python
Python
RAG
RAG
LangChain
LangChain
LLM
LLM
Chatbot
Chatbot
Python
Python

Reviews from Early Learners

Reviews from Early Learners

4.9

5.0

조혜정

100% enrolled

It was an informative lecture that allowed for a deep understanding of RAG!

5.0

Jonas Kahnwald

100% enrolled

This is the best lecture regarding RAG. Thank you.

5.0

아이테킨

95% enrolled

Thanks to this, I was able to study LangChain in detail. First of all, the course is content-focused and the provided code seems to cover a wide range. I was in a situation where I needed to create an internal chatbot at my company, and it seems like I can apply the concepts learned from this course well!! It's not just a course that shows you what gets built, but when I asked questions about the principles and internal logic, the answers were very understandable.

What you will gain after the course

  • Building a RAG System using LangChain

  • Mastering Effective Search and Generation Techniques

  • RAG System Performance Evaluation Methods

  • LangChain's LCEL grammar and Runnable usage

From RAG implementation to performance evaluation
Practical AI Development in 9 Hours

Advances in AI technology have increased the usability of RAG systems, but the process of learning and implementing them remains challenging. I, too, faced many challenges when first learning RAG, and that experience inspired me to plan this course.

The course focuses on building a working system based on step-by-step exercises. It covers not only basic implementations but also advanced techniques for improving search quality and performance evaluation, providing practical knowledge that can be applied directly to real-world projects.

Five months after launch
1590+ people took the course
Created the LLM series lectures
RAG lecture by knowledge sharer

Python & Langchain
Free basic lectures provided
Python Basics Course
Langchain Basics Course

For building a RAG system
Abundant learning materials
31 pages of summary material and
6 source code files

Lecture Points 💫

Building the foundation for RAG implementation

Simply following the code has its limitations. You need to understand the principles behind when and why you use each component . This course covers the fundamental concepts of RAG, its main components, and LCEL syntax , laying the foundation for implementing RAG . We also offer a free beginner-friendly course on Python and Langchain.

Improve RAG implementation capabilities with the latest modules and techniques

The RAG process consists of [document loading → text segmentation → embedding → vector storage → search → prompt → LLM → final result]. This lecture introduces various cutting-edge modules and techniques applicable to each process . In particular, you can experience advanced search techniques such as hybrid search, re-rank, and context compression to improve search performance.

10 Performance Evaluations for RAG Improvement

To enhance the RAG system, "evaluation and improvement" is essential. This lecture introduces five information retrieval methods to evaluate RAG's search performance. It also covers five response evaluation methods for RAG, including quantitative indicator-based evaluation methods and LLM-based evaluation methods.

Easy and clear explanations proven by numerous reviews

Many students have proven this

The course reviews are for courses opened by knowledge sharers as of September 24th.

Learn about these things

Understanding the basic concepts of RAG and LangChain

Understand the operating principles of the RAG system, learn LangChain's structure, and learn LCEL syntax. This will prepare you for a practical environment and provide fundamental knowledge that can be applied to various AI projects.

Hands-on : Installing LangChain, setting up the environment, and configuring a basic RAG pipeline.

Practice data processing and text segmentation techniques

You can handle various data formats (PDF, JSON, Web, etc.) and learn effective text segmentation techniques to efficiently manage large-scale data.

Hands-on training : Practice with various document loaders such as PyPDFLoader and CSVLoader, and apply text segmentation strategies (recursive segmentation, regular expression utilization, semantic segmentation).

Utilizing Embedding Models and Vector Storage

You can maximize RAG search performance by leveraging embedding models to convert text data into vectors and store them in a vector storage.

Hands-on training : Creating and searching Chroma and FAISS vector repositories, utilizing OpenAI, Huggingface, and Ollama embedding models.

RAG Search Performance Evaluation and Optimization

Evaluate RAG search performance using various information retrieval evaluation metrics and acquire optimization techniques that can be applied to actual projects.

Practical training : Search performance testing and evaluation (quantitative evaluation such as hit rate and MRR), optimization methods (query expansion, re-rank, context compression)

Generating and evaluating answers using LLM

You can generate answers for the RAG system using various LLMs and evaluate the quality of the answers using the LangChain evaluation tool.

Practice content : LLM integration practice, response evaluation using LangChain evaluation tool

Implementing a RAG-based chatbot using Gradio

Using Gradio, you can build RAG-based chatbot interfaces that interact with users and design real-time search and answer generation systems.

Hands-on : Implementing a RAG chatbot using Gradio, stream-based output, and adding chat history.

Things to note before taking the course

Practice environment

  • Operating System and Version (OS): Lectures will be conducted based on MacOS (Linux and Windows users can also practice)

  • Using a virtual environment: The course will proceed based on Poetry (conda and venv users can also practice)

  • Tools used: VS Code, OpenAI API, etc. require LLM authentication key (separate fee may apply)

  • PC specifications: Not applicable

  • LangChain version: v0.2.16 applied

Learning Materials

  • Providing materials required for practice (lecture notes, practice code)

  • (For beginners) Reference material provided on Wikidocs: https://wikidocs.net/book/14473

Player Knowledge and Precautions

  • Those with basic knowledge of Python (those who can do basic programming)

  • LangChain Basics for Beginners (Free Course): https://inf.run/Fzfhs


  • If you have any questions or comments, please feel free to ask.

Linked lecture information

  • RAG system implemented with AI agents (w. LangGraph)

  • An intelligent AI agent for augmented search generation (RAG) implemented with LangGraph.


    • Design and Implementation of an AI Agent Structure Using LangGraph

    • Applying AI agents to Retrieval-Augmented Generation (RAG)

    • Expanding the capabilities of AI agents by implementing tool calling functionality.

    • Mastering the latest agent RAG architectures, including Adaptive RAG, Self RAG, and Corrective RAG.

  • Link: https://inf.run/hTwjC

Recommended for
these people

Who is this course right for?

  • Those interested in RAG systems using LLM

  • Those wanting to start AI projects with LangChain

  • Those interested in learning RAG search and generation performance evaluation methods

Need to know before starting?

  • Python

  • LangChain Basics for Beginners (Lecture)

Hello
This is pdstudio

16,873

Learners

835

Reviews

168

Answers

4.8

Rating

10

Courses

Hello. I am currently working in the field of data analysis and AI service development using Python. I have been consistently writing books and delivering AI lectures to share the topics I study with as many people as possible.

[Experience] Current) CEO of a Fintech Startup Former) CDO at Dacon Former) Adjunct Professor, Department of Computer Software, Induk University Kaggle Competition Expert, Big Data Analysis Engineer [Lectures] NCS Registered Instructor

[Experience]

Current) CEO of a Fintech Startup

Former CDO at DACON

Former Adjunct Professor, Department of Computer Software, Induk University

Kaggle Competition Expert, Big Data Analysis Engineer

[Lectures] NCS Registered Instructor (Artificial Intelligence) Selected as an 'Outstanding Partner' for SBA (Seoul Business Agency) SeSAC Campus SW Education (AI Model Development using Python) Financial Security Institute, Korea Electronics

[Lectures]

NCS Registered Instructor (Artificial Intelligence)

Selected as an 'Outstanding Partner' for SW Education at the Seoul Business Agency (SBA) SeSAC Campus (AI Model Development using Python)

Lectures at Financial Security Institute, Korea Electronics Association (KEA), Korea Display Industry Association (KDIA), Daegu Digital Industry Promotion Agency (DIP), etc.

Experience in providing education at major domestic universities such as Seoul National University, Pusan National University, Kyung Hee University, and Hankuk University of Foreign Studies, as well as for domestic corporations

[Writing] Python Machine Learning Pandas Data Analysis (InfoBook): https://zrr.kr/x1ec Python Deep Learning Machine Learning Introduction (InfoBook): https://zrr.kr/RPaE Python Deep Learning Ten

[Authoring]

[YouTube] Pandas Studio : https://youtube.com/@pandas-data-studio?si=XoLVQzJ9mmdFJQHU

More

Curriculum

All

79 lectures ∙ (8hr 42min)

Course Materials:

Lecture resources
Published: 
Last updated: 

Reviews

All

72 reviews

4.9

72 reviews

  • jizon39007님의 프로필 이미지
    jizon39007

    Reviews 3

    Average Rating 4.7

    5

    100% enrolled

    • sang416님의 프로필 이미지
      sang416

      Reviews 7

      Average Rating 5.0

      5

      100% enrolled

      This is the best lecture regarding RAG. Thank you.

      • pdstudio
        Instructor

        Thank you!

    • gpwjdwngml0246님의 프로필 이미지
      gpwjdwngml0246

      Reviews 8

      Average Rating 4.9

      5

      100% enrolled

      It was an informative lecture that allowed for a deep understanding of RAG!

      • pdstudio
        Instructor

        Thank you!

    • 29621211님의 프로필 이미지
      29621211

      Reviews 3

      Average Rating 5.0

      5

      30% enrolled

      • bbattery824816님의 프로필 이미지
        bbattery824816

        Reviews 6

        Average Rating 5.0

        5

        100% enrolled

        pdstudio's other courses

        Check out other courses by the instructor!

        Similar courses

        Explore other courses in the same field!

        $93.50