(Slide) LangChain
(Slide) LangChain
All-in-One Course
(TA Session)
Dinh-Thang Duong – TA
Nguyen-Thuan Duong – TA
Year 2024
AI VIETNAM
All-in-One Course
(TA Session) Objectives
2
AI VIETNAM
All-in-One Course
(TA Session)
Outline
➢ Introduction
➢ LangChain
➢ API with LangChain
➢ RAG with LangChain
➢ Question
3
AI VIETNAM
All-in-One Course
(TA Session)
Introduction
4
AI VIETNAM
All-in-One Course
(TA Session) Introduction
❖ Getting Started
5
AI VIETNAM
All-in-One Course
(TA Session) Introduction
❖ LLMs size over time
6
https://www.reddit.com/r/AILinksandTools/comments/12c4jmk/a_survey_of_all_llms_so_far_2018_to_2022_a/
AI VIETNAM
All-in-One Course
(TA Session) Introduction
❖ LLMs Applications
7
https://markovate.com/blog/applications-and-use-cases-of-llm/
AI VIETNAM
All-in-One Course
(TA Session) Introduction
❖ Getting Started
LangChain
9
AI VIETNAM
All-in-One Course
(TA Session) LangChain
❖ Introduction
10
AI VIETNAM
All-in-One Course
(TA Session) LangChain
❖ Introduction
11
AI VIETNAM
All-in-One Course
(TA Session) LangChain
❖ LangChain components
12
https://pub.dev/packages/langchain
AI VIETNAM
All-in-One Course
(TA Session)
13
AI VIETNAM
All-in-One Course
(TA Session) API with LangChain
❖ Introduction
Description: Serve a LLMs chat application as an API that receive a simple question and return the response of
the LLMs (pre-trained model).
14
https://blog.streamlit.io/langchain-tutorial-1-build-an-llm-powered-app-in-18-lines-of-code/
AI VIETNAM
All-in-One Course
(TA Session)
Quiz
15
AI VIETNAM
All-in-One Course
(TA Session)
16
AI VIETNAM
All-in-One Course
(TA Session) RAG with LangChain
❖ Introduction
Description: Serve a LLMs RAG application as an API that receive a simple question and return the response of
the LLMs (utilizing context retrieved from a vector database).
17
https://www.determined.ai/blog/rag
AI VIETNAM
All-in-One Course
(TA Session) Summary
18
AI VIETNAM
All-in-One Course
(TA Session) Question
?
19
20