이 강의는 유데미 강좌 중 "LangChain- Develop LLM powered applications with LangChain"와 동일한 강의이며, 한국어 자막이 기존 강의와 다르게 전문 한글 자막이 제공됩니다. 또한 강의 내용에 대한 질문은 Q&A에 영어로 남겨주시면 오리지널 강사님으로부터 답변을 받으실 수 있습니다. 강의 내용 외의 문의는 한국어로 남겨주셔도 되며, 웅진씽크빅 글로벌에서 매일 확인하여 답변드리고 있으니 편하게 질문해주세요. :)
* 강의 최신 버전으로 재녹화
* LangChain 버전 0.3.0 기반
유데미에서 처음 만나는 랭체인 코스 - LLM 의 위력을 경험하기 에 오신 것을 환영합니다.
이 강의에서는 LLM 애플리케이션을 위해 랭체인 라이브러리를 매우 빠르게, 100% 활용하는 방법을 배울 수 있습니다.
이 강의에서는 다양한 분야에서 최첨단 LLM 솔루션을 개발하는 데 필요한 기술과 지식을 배울 수 있어요.
이 강의는 유데미 강좌 중 "LangChain- Develop LLM powered applications with LangChain"와 동일한 강의이며, 한국어 자막이 기존 강의와 다르게 전문 한글 자막이 제공됩니다. 또한 강의 내용에 대한 질문은 Q&A에 영어로 남겨주시면 오리지널 강사님으로부터 답변을 받으실 수 있습니다. 강의 내용 외의 문의는 한국어로 남겨주셔도 되며, 웅진씽크빅 글로벌에서 매일 확인하여 답변드리고 있으니 편하게 질문해주세요. :)
* 강의 최신 버전으로 재녹화
* LangChain 버전 0.3.0 기반
유데미에서 처음 만나는 랭체인 코스 - LLM 의 위력을 경험하기 에 오신 것을 환영합니다.
이 강의에서는 LLM 애플리케이션을 위해 랭체인 라이브러리를 매우 빠르게, 100% 활용하는 방법을 배울 수 있습니다.
이 강의에서는 다양한 분야에서 최첨단 LLM 솔루션을 개발하는 데 필요한 기술과 지식을 배울 수 있어요.
이 강의는 초보자용이 아닙니다. 소프트웨어 엔지니어링에 대한 배경 지식이 있고 Python에 능숙한 분들을 대상으로 합니다. 저는 Pycharm IDE를 사용하지만, 디버깅 및 스크립트 실행과 같은 IDE의 기본 기능만 사용하므로 여러분이 원하는 편집기를 사용할 수 있습니다.
이 강의에서는 랭체인을 사용하여 실제 LLM 기반 애플리케이션을 구축하는 과정을 처음부터 같이 합니다. 이를 위해 3가지 주요 애플리케이션을 빌드할 것입니다:
Ice Breaker - 이름을 부여하고, 구글에서 검색하여 링크드인 및 트위터 프로필을 찾고, 제공한 이름에 대한 정보를 인터넷에서 스크랩하고, 그 사람과 대화를 시작할 수 있는 몇 가지 개인화된 Ice Breaker를 생성하는 LangChain 에이전트입니다.
Documentation Helper - 파이썬 패키지 문서 위에 챗봇을 만듭니다. (그리고 원하는 다른 모든 데이터 위에 사용 가능)
ChatGPT 코드 통역기의 슬림한 버전
프롬프트 엔지니어링 이론 섹션
이 강의에서 다루는 주제는 다음과 같습니다:
랭체인
LLM + GenAI 역사
LLM: Few shots 프롬프팅, 생각의 사슬, ReAct 프롬프팅
채팅 모델
오픈 소스 모델
프롬프트, 프롬프트 템플릿, langchainub
출력 파서 (Output Parsers), Pydantic 출력 파서
체인: create_retrieval_chain, create_stuff_documents_chain
에이전트, 사용자 정의 에이전트, 파이썬 에이전트, CSV 에이전트, 에이전트 라우터
OpenAI 함수, 도구 호출
도구, 툴킷
메모리
벡터스토어(Pinecone, FAISS)
RAG(검색 증강 생성)
문서 로더, 텍스트 스플리터
Streamlit(UI용)
LCEL
LangSmith
LangGraph 소개
FireCrawl
Cursor IDE 의 핵심
Cursor Composter
Curser Chat
이 강의에서는 실습을 하면서 실제 프로젝트를 통해 다루는 개념과 기술을 확실히 이해할 수 있어요. 이 강의를 다 배우면 랭체인을 사용하여 다양한 곳에 사용할 수 있는 강력하고 효율적이며 활용 가능한 LLM 애플리케이션을 만드는 데 능숙해질 거예요.
이 코스는 단순한 강의 코스가 아니라 커뮤니티이기도 해요. 이 코스는 평생 무제한으로 들을 수 있고, 다음과 같은 혜택도 있어요:
제가 1:1 전담으로 문제를 해결하도록 도와드립니다
추가 AI 리소스, FAQ, 문제 해결 가이드가 있는 Github 링크를 드려요
다른 학습자(1000명 이상)와 소통할 수 있는 전용 디스코드 커뮤니티에 들어오실 수 있어요
추가 비용 없이 지속적으로 코스를 업데이트합니다
(다시 한번 강조)
이 강의는 초보자용이 아닙니다. 소프트웨어 엔지니어링에 대한 배경 지식이 있고 Python에 능숙한 분들을 대상으로 합니다. 저는 Pycharm IDE를 사용하지만, 디버깅 및 스크립트 실행과 같은 IDE의 기본 기능만 사용하므로 여러분이 원하는 편집기를 사용할 수 있습니다.
이 강의의 첫 번째 프로젝트(아이스 브레이커)에서는 일반적으로 유료 서비스인 ProxyURL, SerpAPI, 트위터 API 등의 타사 API를 사용해야 합니다. 이러한 모든 타사에는 stub responses 개발 및 테스트에 사용할 수 있는 무료 티어가 있습니다.
LangChain Agent Theory
In this video, we’ll dive into the concept of LangChain agents and how they can be used for reasoning and performing tasks and interact with external services.
Topics:
Introduction to LangChain agents
The concept of subtasks and how agents split them to complete bigger tasks
Chain Of Thought Prompting
ReAct Prompt Prompting
How agents can be used to perform tasks and interact with external services
Understanding the structure of agents and their tools, Toolkits
A practical example of building an agent
What is Language Modeling?
Language modeling is the task of predicting the next word in a sentence.
It is similar to autocomplete or word suggestions we see in our day-to-day life.
The language model predicts the probability of the next word based on the previous words in the sentence.
Formal Definition of Language Modeling
Language modeling involves computing the probability distribution of the next word in a sequence of words.
The probability of the next word (x t+1) is calculated based on the sequence of words before it (X1, X2, ..., XT) and needs to be a part of the vocabulary (V).
Large Language Models: A Brief Overview
A large language model (LLM) is a language model trained on a huge amount of data.
LLMs are capable of predicting the probability of the next word with high accuracy.
They have gained immense popularity in recent times due to their ability to perform a variety of language-related tasks.
How Large Language Models Work
LLMs work by taking an input of words and predicting the probability of the next word.
They make their predictions based on the input provided and the probabilities learned during the training phase.
LLMs can sometimes generate output that is far-fetched from reality and simply not true due to the limitations of probability-based predictions.
What is a Prompt in AI Language Models?
A prompt is the input given to an AI model to produce an output.
It guides the model to understand the context and generate a meaningful response.
Components of a Prompt:
Instruction
The heart of the prompt that tells the AI model what task it needs to perform.
It sets the stage for the model's response, whether it's text summary, translation, or classification.
Context
Additional information that helps the AI model understand the task and generate more accurate responses.
For some tasks, context may not be necessary, but for others, it can significantly improve the model's performance.
Input Data
The information that the AI model will process to complete the task set in the prompt.
It could be a piece of text, image, or anything relevant to the task.
Output Indicator
Signals the AI model that we expect a response.
Sometimes implicit in the instruction, but sometimes explicitly stated.
Here are the key points we'll cover:
Large language models and their immense knowledge base
What is zero shot prompting?
An example of a zero shot prompt
Why zero shot prompts are popular among AI beginners
The limitations of zero shot prompting
With zero shot prompting, AI models can generate outputs for tasks they haven't been explicitly trained on, using their pre-existing knowledge to perform the task based on the information provided in the prompt. However, this kind of prompt comes with its own set of limitations, such as accuracy and scope.
In this video, we will explore the concept of Few Shot Prompting, a technique used in prompt engineering that allows AI models to generate or classify new data by presenting them with a small number of examples or shots of a particular task or concept along with a prompt or instruction. Here are the main points we will cover:
What is Few Shot Prompting?
Few Shot Prompting is a prompt engineering technique that involves presenting the AI model with a small number of examples or shots of a task or concept to generate or classify new data that is similar to the examples provided. It is particularly useful in scenarios where there is limited data available for a given task or domain where data may be scarce.
How Does Few Shot Prompting Work?
Few Shot Prompting works by providing the AI model with a few examples of a particular task or concept and a prompt or instruction on how to generate or classify new data similar to the examples provided. It can quickly adapt models to new tasks and domains by fine-tuning existing models without requiring a large amount of new data.
Case Study: Zero Shot, One Shot, and Few Shot Prompting in Action
We will demonstrate the effectiveness of zero shot, one shot, and few shot prompting techniques in generating text-to-text descriptions for Blue Willow, an open source AI tool that generates images from text prompts. By comparing the outputs generated by each technique, we will see which one performed better according to our task of generating a good description to paint a picture.
Introduction to Chain of Thought
Explanation of Chain of Thought's purpose in improving LLM reasoning abilities
How Chain of Thought allows models to decompose complex problems into manageable steps
Standard Prompting Limitations
Examples of insufficient answers with standard zero-shot prompting
Explanation of zero-shot prompting
Chain of Thought Prompting
Explanation of Chain of Thought as a new prompting technique
Examples of Chain of Thought's success in solving complex reasoning problems
Comparison to human problem-solving methods
Zero-Shot and Few-Shot Chain of Thought Prompting
Explanation of zero-shot Chain of Thought prompting
Explanation of few-shot Chain of Thought prompting
Benefits and limitations of each method
In this video, we will explore the ReAct Prompting technique, a powerful approach to prompt engineering that combines reasoning and acting to accomplish complex tasks. Here are the main points we will cover:
What is ReAct Prompting?
ReAct Prompting is a technique that allows language models to reason and act upon a task to generate an output.
It is based on the chain of thoughts that the model can generate to accomplish a task.
How Does ReAct Prompting Work?
ReAct Prompting involves breaking down a task into multiple steps, reasoning the steps, acting upon them, and then completing the entire task.
The model can derive an action by accessing external sources or APIs, allowing it to accomplish more complex tasks.
Case Study: ReAct Prompting in Action
We will look at a research paper that demonstrates the power of ReAct Prompting in action.
The paper shows how a language model was able to derive the correct answer to a complex question by reasoning and acting upon it.
How to Produce Prompts for Better LLM Responses
Incorporating Context for Coherent and Accurate Responses
Context provides relevance for generating better responses
Leaving context to the AI model could lead to off-topic or irrelevant responses
Defining a Clear Task for Unambiguous Results
Clear and precise task definitions provide better results
Ambiguous tasks can lead to confusion and lower performance
Example: Improving user experience of an e-commerce website
Iterating for Optimized Prompts
Iterations involve refining prompts and evaluating output
Refining prompts over iterations leads to optimized prompts
Taking the time to write effective prompts saves time in the long run
By following these low-hanging fruit tips for prompt engineering, you can improve the performance of your AI models and get better responses. Incorporating context, defining clear tasks, and iterating to refine prompts will lead to more accurate and relevant responses, saving you time and improving the overall performance of your AI models.
OpenCourser helps millions of learners each year. People visit us to learn workspace skills, ace their exams, and nurture their curiosity.
Our extensive catalog contains over 50,000 courses and twice as many books. Browse by search, by topic, or even by career interests. We'll match you to the right resources quickly.
Find this site helpful? Tell a friend about us.
We're supported by our community of learners. When you purchase or subscribe to courses and programs or purchase books, we may earn a commission from our partners.
Your purchases help us maintain our catalog and keep our servers humming without ads.
Thank you for supporting OpenCourser.