langchain-kr
# ๐ LangChain ํ๊ตญ์ด ํํ ๋ฆฌ์ผ  ๐ **LangChain ๊ณต์ Document, Cookbook, ๊ทธ ๋ฐ์ ์ค์ฉ ์์ **๋ฅผ ๋ฐํ์ผ๋ก ์์ฑํ ํ๊ตญ์ด ํํ ๋ฆฌ์ผ์ ๋๋ค. ๋ณธ ํํ ๋ฆฌ์ผ์ ํตํด LangChain์ ๋ ์ฝ๊ณ ํจ๊ณผ์ ์ผ๋ก ์ฌ์ฉํ๋ ๋ฐฉ๋ฒ์ ๋ฐฐ์ธ ์ ์์ต๋๋ค. ## ๐ ์ํค๋ ์ค ์ ์์ฑ (๋ฌด๋ฃ) <img src="./images/langchain-note.png" alt="ํ ๊ถ์ผ๋ก ๋๋ด๋ ๋ญ์ฒด์ธ ๋ ธํธ" style="width:200px;height:280px;"> ์ํค๋ ์ค์ **๋ฌด๋ฃ** ์ ์์ฑ ์ ๋ฑ๋กํ์์ต๋๋คโ๏ธ ์ํค๋ ์ค ํ์ด์ง์์ **์ฑ "์ถ์ฒ"** ๋ฒํผ ํ ๋ฒ์ฉ๋ง ๋๋ฌ ์ฃผ์๋ฉด ์ ์์ ํฐ ํ์ด ๋ฉ๋๋ค. ๋ฏธ๋ฆฌ ๊ฐ์ฌ ๋๋ฆฝ๋๋ค๐ซถ ํ๋๋๋๋ก ์ด์ฌํ ์ ๋ฐ์ดํธ ํ๊ณ ์์ต๋๋ค. ์์ผ๋ก๋ ์ ๊ท ๊ธฐ๋ฅ์ด ์ถ๊ฐ ๋ ๋๋ง๋ค ๋น ๋ฅด๊ฒ x100 **์ ๋ฐ์ดํธ** ์์ ์ ๋๋ค. - [๋ญ์ฒด์ธLangChain ๋ ธํธ by ํ ๋๋ ธํธ](https://wikidocs.net/book/14314) ๊ตฌ๊ฒฝํ๋ฌ ๊ฐ๊ธฐ ## ๐ฟ ์ ํ๋ธ - [๐ค huggingface ์ ๊ณต๊ฐ๋ ์คํ๋ชจ๋ธ์ ๐ป ๋ก์ปฌPC ์์ ๋น ๋ฅด๊ฒ ์คํ๐ฅ ํด๋ณด๊ณ ํ ์คํธ ํ๋ ๋ฐฉ๋ฒ + ๋ชจ๋ธ ์๋น๐ + ์ ๋ฌด์๋ํ๐ค ์ ์ ์ฉํ๋ ๋ฐฉ๋ฒ๊น์ง!](https://youtu.be/bANQk--Maxs) - [๐ ์ฝ๋ ๊ธฐ๋ฐ ๋ต๋ณํ๋ ๐ป GitHub ์์ค์ฝ๋ ๊ธฐ๋ฐ Q&A ์ฑ๋ด๐ค ์ ์๊ธฐ](https://youtu.be/yB8b-lW_5HY) - [llama3 ์ถ์๐ฅ ๋ก์ปฌ์์ Llama3-8B ๋ชจ๋ธ ๋๋ ค๋ณด๊ธฐ๐](https://youtu.be/12CuUQIPdM4) - [๐ฅ์ฑ๋ฅ์ด ๋๋ผ์์๐ฅ ๋ฌด๋ฃ๋ก ํ๊ตญ์ด๐ฐ๐ท ํ์ธํ๋ ๋ชจ๋ธ ๋ฐ์์ ๋๋ง์ ๋ก์ปฌ LLM ํธ์คํ ํ๊ธฐ(#LangServe) + #RAG ๊น์ง!!](https://youtu.be/VkcaigvTrug) - [๋ฌด๋ฃ๋ก ํ๊ตญ์ด๐ฐ๐ท ํ์ธํ๋ ๋ชจ๋ธ ๋ฐ์์ ๋๋ง์ ๋ก์ปฌ LLM ํธ์คํ ํ๊ธฐ(LangServe) + RAG ๊น์ง!!](https://youtu.be/VkcaigvTrug) - [Streamlit ์ผ๋ก ChatGPT ํด๋ก ์๋น์ค ์ ์ํ๋ ๋ฐฉ๋ฒ](https://youtu.be/ZVmLe3odQvc) - [๋ํ๋ด์ฉ์ ๊ธฐ๋กํ๋ LLM Chain ์์ฑ ๋ฐฉ๋ฒ + ๋ํ๋จผํธ ์ฐธ์กฐํ๋ tip!](https://youtu.be/VtS8yF2ItgI) - [(Self Learning GPT) LangSmith ํผ๋๋ฐฑ์ผ๋ก ์ํ๋ ํ์์ ๋ต๋ณ์ ํ์ตํ๋ GPT](https://youtu.be/8JEbrboSumg) - [(LangServe ๋ฆฌ๋ทฐ) ์ด๊ฐํธ LLM ์น์ฑ ์ ์ & ๋ฐฐํฌ๊ธฐ๋ฅ๊น์ง! ๊ณผ์ฐ, Streamlit ๋์ฒดํ ์ ์์๊น?](https://youtu.be/mdzMBF56HOM) - [AI vs AI ์๋ ์ฆ์์ ๋ํ ๋ชจ์ ์ฐฌ๋ฐํ ๋ก (AI ๋๋น๋ณธ)](https://youtu.be/Z2j93efq1S0) - [ํ ๋ก AI ์์ด์ ํธ - ์๋ ์ ํ์ ์ ์ฆ์์ ๋ํ ์ฐฌ๋ฐํ ๋ก ์ AI ๋ผ๋ฆฌ ํ๋ค๋ฉด?](https://youtu.be/NaU89YXQAoI) - [๊ธด ๋ฌธ์(long context) ์ ๋ํ ์ฐธ์ ํ RAG ๋ฐฉ๋ฒ๋ก : RAPTOR! ๋ ผ๋ฌธ ๋ฆฌ๋ทฐ์ ์ฝ๋๋ฅผ ์ค๋นํ์ต๋๋ค](https://youtu.be/gcdkISrpMCA) - [LangChain ๋ฐ์ ๋ฐํ / R.A.G. ์ฐ๋ฆฌ๊ฐ ์ ๋ ์ฝ๊ฒ๊ฒฐ๊ณผ๋ฌผ์ ์ป์ ์ ์๋ ์ด์ ](https://youtu.be/NfQrRQmDrcc) - [๋ ธ์ฝ๋ฉ์ผ๋ก ์ผํ๋ชฐ ๋ฆฌ๋ทฐ ๋ถ์ (ํฌ๋กค๋ง + Q&A ์ฑ๋ด)](https://youtu.be/r5YyftofuII) - [ChatGPT ์ GPTS ์ API ํธ์ถ๊ธฐ๋ฅ์ ๋ถ์ด๋ฉด ์ด๋ป๊ฒ ๋ ๊น?](https://youtu.be/JBL4vhwUAnc) - [LangChain Agent ๋ฅผ ํ์ฉํ์ฌ ChatGPT๋ฅผ ์ ๋ฌด์๋ํ ์ ์ ์ฉํ๋ ๋ฐฉ๋ฒ๐ฅ๐ฅ](https://youtu.be/2q1XlbFVzf8) - [Private GPT! ๋๋ง์ ChatGPT ๋ง๋ค๊ธฐ (HuggingFace Open LLM ํ์ฉ)](https://youtu.be/aECwQqBWfJM) - [LangGraph ์ ๋ฉํฐ ์์ด์ ํธ ์ฝ๋ผ๋ณด๋ ์ด์ ์ฐ๋จนํ๊ธฐ](https://youtu.be/G8jrAA2bPnA) - [๋ง๋ฒ๊ฐ์ ๋ฌธ๋ฒ LangChain Expression Language(LCEL)](https://youtu.be/0X4Ks_nJUt8) - [์ด๋ฏธ์ง๋ฅผ matplotlib ํ์ด์ฌ ์ฝ๋๋ก, ์ํ๋ ๋ฌธ์ฅ์ ์ ๋ ฅํ๋ฉด ํ์ด์ฌ ์ฝ๋๋ก ๋ณํํ๋ ๋ฐฉ๋ฒ](https://youtu.be/hY8Pquy3Hhg) - [RAG ํ์ดํ๋ผ์ธ ์ดํดํด๋ณด๊ธฐ - ๋ค์ด๋ฒ ๋ด์ค๊ธฐ์ฌ ๊ธฐ๋ฐ Q&A ์ฑ๋ด ์ ์](https://youtu.be/1scMJH93v0M) - [OpenAI ์ ์๋ก์ด ๊ธฐ๋ฅ Assistant API ์๋ฒฝํ ์ดํดํด๋ณด๊ธฐ](https://youtu.be/-Wne4a-8RlY) - [OpenAI ์ ์๋ก์ด ๊ธฐ๋ฅ Assistant API 3๊ฐ์ง ๋๊ตฌ ํ์ฉ๋ฒ](https://youtu.be/BMW1NJkL7Ks) ## โ๏ธ ๋ธ๋ก๊ทธ ๊ธ ๋ชฉ๋ก ### General - [OpenAI API ๋ชจ๋ธ ๋ฆฌ์คํธ / ์๊ธํ](https://teddylee777.github.io/openai/openai-models/) ### OpenAI Python API - [OpenAI Python API ํค ๋ฐ๊ธ๋ฐฉ๋ฒ, ์๊ธ์ฒด๊ณ](https://teddylee777.github.io/openai/openai-api-key/) - [์ฑํ (chat) ํจ์ ์ฌ์ฉํ๊ธฐ(1)](https://teddylee777.github.io/openai/openai-api-tutorial-01/) - [DALLยทE๋ฅผ ์ฌ์ฉํ์ฌ ์ด๋ฏธ์ง ์์ฑ, ์์ , ๋ค์ํํ๊ธฐ(2)](https://teddylee777.github.io/openai/openai-api-tutorial-02/) - [Whisper API๋ฅผ ์ฌ์ฉํ์ฌ TTS, STT ๊ตฌํํ๊ธฐ(3)](https://teddylee777.github.io/openai/openai-api-tutorial-03/) ### LangChain - [OpenAI GPT ๋ชจ๋ธ(ChatOpenAI) ์ฌ์ฉ๋ฒ](https://teddylee777.github.io/langchain/langchain-tutorial-01/) - [ํ๊น ํ์ด์ค(HuggingFace) ๋ชจ๋ธ ์ฌ์ฉ๋ฒ](https://teddylee777.github.io/langchain/langchain-tutorial-02/) - [์ฑ(chat) - ConversationChain, ํ ํ๋ฆฟ ์ฌ์ฉ๋ฒ](https://teddylee777.github.io/langchain/langchain-tutorial-03/) - [์ ํ๋ฐ์ดํฐ(CSV, Excel) - ChatGPT ๊ธฐ๋ฐ ๋ฐ์ดํฐ๋ถ์](https://teddylee777.github.io/langchain/langchain-tutorial-04/) - [์น์ฌ์ดํธ ํฌ๋กค๋ง - ์น์ฌ์ดํธ ๋ฌธ์ ์์ฝ](https://teddylee777.github.io/langchain/langchain-tutorial-05/) - [์น์ฌ์ดํธ ์ ๋ณด ์ถ์ถ - ์คํค๋ง ํ์ฉ๋ฒ](https://teddylee777.github.io/langchain/langchain-tutorial-06/) - [PDF ๋ฌธ์์์ฝ, Map-Reduce](https://teddylee777.github.io/langchain/langchain-tutorial-07/) - [PDF ๊ธฐ๋ฐ ์ง์์๋ต(Question-Answering)](https://teddylee777.github.io/langchain/langchain-tutorial-08/) - [๋ฌธ์ฅ์ ํ์ด์ฌ ์ฝ๋๋ก, ์ด๋ฏธ์ง๋ฅผ ํ์ด์ฌ ์ฝ๋๋ก ๋ณ๊ฒฝํ๋ ๋ฐฉ๋ฒ](https://teddylee777.github.io/langchain/langchain-code-generator/) - [LangChain Expression Language(LCEL) ์๋ฆฌ ์ดํด์ ํ์ดํ๋ผ์ธ ๊ตฌ์ถ ๊ฐ์ด๋](https://teddylee777.github.io/langchain/langchain-lcel/) - [LLMs๋ฅผ ํ์ฉํ ๋ฌธ์ ์์ฝ ๊ฐ์ด๋: Stuff, Map-Reduce, Refine ๋ฐฉ๋ฒ ์ด์ ๋ฆฌ](https://teddylee777.github.io/langchain/summarize-chain/) - [์๋ํ๋ ๋ฉํ๋ฐ์ดํฐ ํ๊น ์ผ๋ก ๋ฌธ์์ ๋ฉํ๋ฐ์ดํฐ(metadata) ์์ฑ ๋ฐ ์๋ ๋ผ๋ฒจ๋ง](https://teddylee777.github.io/langchain/metadata-tagger/) - [๋ค์ด๋ฒ ๋ด์ค ๊ธฐ๋ฐ Q&A ์ ํ๋ฆฌ์ผ์ด์ ๊ตฌ์ถํ๊ธฐ - ๊ธฐ๋ณธํธ](https://teddylee777.github.io/langchain/rag-naver-news-qa/) - [RAG ํํค์น๊ธฐ: ๋ฌธ์ ๊ธฐ๋ฐ QA ์์คํ ์ค๊ณ ๋ฐฉ๋ฒ - ์ฌํํธ](https://teddylee777.github.io/langchain/rag-tutorial/) - [์์ด์ ํธ(Agent)์ ๋๊ตฌ(tools)๋ฅผ ํ์ฉํ ์ง๋ฅํ ๊ฒ์ ์์คํ ๊ตฌ์ถ ๊ฐ์ด๋](https://teddylee777.github.io/langchain/langchain-agent/) ### LangGraph - [Multi-Agent Collaboration(๋ค์ค ํ์ ์์ด์ ํธ) ๋ก ๋ณต์กํ ํ ์คํฌ๋ฅผ ์ํํ๋ LLM ์ดํ๋ฆฌ์ผ์ด์ ์ ์](https://teddylee777.github.io/langgraph/langgraph-multi-agent-collaboration/) - [LangGraph Retrieval Agent๋ฅผ ํ์ฉํ ๋์ ๋ฌธ์ ๊ฒ์ ๋ฐ ์ฒ๋ฆฌ](https://teddylee777.github.io/langgraph/langgraph-agentic-rag/) ## ๐ฅ LangChain ๋ฐ์ 2024 Q1 ๋ฐํ์๋ฃ - [RAG - ์ฐ๋ฆฌ๊ฐ ์ ๋ ์ฝ๊ฒ ์ํ๋ ๊ฒฐ๊ณผ๋ฌผ์ ์ป์ ์ ์๋ ์ด์ - ํ ๋๋ ธํธ](https://aifactory.space/task/2719/discussion/830) - [ํ๋ฆํํธ ํ๋ฆ๊ณผ LLM ๋ชจ๋ธ ํ๊ฐ - ์ด์ฌ์๋](https://aifactory.space/task/2719/discussion/831) - [์ธ๊ณต์ง๋ฅ์ ํตํ ๊ฒ์ ์ ์ ํ์ดํ๋ผ์ธ์ ๋ณํ - ๊นํ์ผ๋](https://aifactory.space/task/2719/discussion/834) - [OpenAI SORA ์ด์ง ๋ง๋ณด๊ธฐ - ๋ฐ์ ํ๋](https://aifactory.space/task/2719/discussion/839) - [Semantic Kernel๋ก ๋ง๋๋ AI Copilot - ์ด์ข ์ธ๋](https://aifactory.space/task/2719/discussion/835) - [Streamlit ๊ณผ langchain์ผ๋ก ๋๋ง์ ์น์๋น์ค ๊ฐ๋ฐํ๊ธฐ - ์ต์ฌํ๋](https://aifactory.space/task/2719/discussion/832) - [Llama2-koen์ ๋ง๋ค๊ธฐ๊น์ง - ์ตํ๊ท ๋](https://aifactory.space/task/2719/discussion/836) - [์ฌ๋ฐ๋ฅธ ํ๊ตญ์ด ์ธ์ด ๋ชจ๋ธ ํ๊ฐ๋ฅผ ์ํด: HAE-RAE Bench, KMMLU - ์๊ท์ง๋](https://aifactory.space/task/2719/discussion/833) - [๋ญ์ฒด์ธ ๋ค์ด๋ฒ ๊ธฐ์ฌ ํฌ๋กค๋ง - ์ฐ์ฑ์ฐ๋](https://aifactory.space/task/2719/discussion/829) - [Gemma์ LangChain์ ์ด์ฉํ SQL ์ฒด์ธ๋ง๋ค๊ธฐ - ๊นํ์๋](https://aifactory.space/task/2719/discussion/841) ## ๐ ๋ผ์ด์ ์ค ๋ณธ ํ๋ก์ ํธ๋ [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0)์ ๋ฐ๋ผ ๋ผ์ด์ ์ค๊ฐ ๋ถ์ฌ๋ฉ๋๋ค. ### ๐ซ ๋ผ์ด์ ์ค ๊ณ ์ง ๐ ๋ณธ ๋ด์ฉ์ ์ ์๊ถ์ 2024๋ [ํ ๋๋ ธํธ](https://teddylee777.github.io)์ ์์ต๋๋ค. ๋ชจ๋ ๊ถ๋ฆฌ๋ ์ ์๊ถ์์๊ฒ ์์ผ๋ฉฐ, [email protected] ์ผ๋ก ๋ฌธ์ํ ์ ์์ต๋๋ค. ``` Copyright 2024 ํ ๋๋ ธํธ([email protected]) Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ``` **์ธ์ฉ ๋ฐ ์ถ์ฒ ํ๊ธฐ** - ๋ณธ ์ ์๋ฌผ์ ๋ด์ฉ์ ๋ธ๋ก๊ทธ, ์ ํ๋ธ ๋ฑ ์จ๋ผ์ธ ๋งค์ฒด์ ์ธ์ฉํ์ฌ ๊ฒ์ฌํ๋ ๊ฒฝ์ฐ, ์ ์๊ถ๋ฒ์ ๋ฐ๋ผ ๋ฐ๋์ **์ถ์ฒ๋ฅผ ๋ช ์** ํด์ผ ํฉ๋๋ค. **์์ ์ ์ฌ์ฉ์ ๋ํ ์ฌ์ ํ์** - ๋ณธ ์ ์๋ฌผ(Wikidocs ๋ฐ ๊ด๋ จ ์ค์ต ์ฝ๋ ํฌํจ)์ ๊ฐ์, ๊ฐ์ฐ ๋ฑ **์์ ์ ๋ชฉ์ ์ผ๋ก ํ์ฉํ๊ณ ์ ํ๋ ๊ฒฝ์ฐ**, ์ ์๊ถ์์์ ์ฌ์ ์๋ฉด ํ์๊ฐ ํ์์ ์ผ๋ก ์๊ตฌ๋ฉ๋๋ค. ๋ณธ ๋ด์ฉ์ ๋ฌด๋จ ์ ์ฌ ๋ฐ ์ฌ๋ฐฐํฌ๋ฅผ ๊ธ์งํฉ๋๋ค. ๋ณธ ๋ด์ฉ์ ์ ์ฒด ํน์ ์ผ๋ถ๋ฅผ ์ธ์ฉํ ๊ฒฝ์ฐ, ์ถ์ฒ๋ฅผ ๋ช ํํ ๋ฐํ์ฃผ์๊ธฐ ๋ฐ๋๋๋ค. ๋ณธ ๋ฌธ์๋ ๋ค๋ฅธ ๋ฌธ์์ ๋ด์ฉ์ ์ฐธ๊ณ ํ์ฌ ์์ฑ๋์์ ์ ์์ต๋๋ค. ์ฐธ๊ณ ์๋ฃ๋ ๋ณธ ๋ฌธ์ ํ๋จ์ ์ถ์ฒ ๋ชฉ๋ก์์ ํ์ธํ์ค ์ ์์ต๋๋ค. ## ๐ ์ถ์ฒ - [langchain-ai](https://github.com/langchain-ai/langchain) ๐ - [OpenAI API Reference](https://platform.openai.com/docs/introduction) ๐ค ## ๐ ์ถ๊ฐ ์๋ฃ - **์ ํ๋ธ ์ฑ๋**: [LangChain ํ๊ตญ์ด ํํ ๋ฆฌ์ผ](https://www.youtube.com/channel/UCt2wAAXgm87ACiQnDHQEW6Q) ๐ฅ - **๋ธ๋ก๊ทธ**: [ํ ๋๋ ธํธ](https://teddylee777.github.io) ๐ - **Playground**: [LangChain LLM Playground](http://llm.teddynote.com) ๐ฎ ## ๐ ์์ํ๊ธฐ ๋ณธ ํํ ๋ฆฌ์ผ์ ์์ํ๊ธฐ ์ ์, LangChain๊ณผ ๊ด๋ จ๋ ๊ธฐ๋ณธ์ ์ธ ์ง์์ ๊ฐ์ถ๋ ๊ฒ์ด ์ข์ต๋๋ค. ์์ ์ถ์ฒ ๋งํฌ๋ฅผ ํตํด ๊ธฐ๋ณธ์ ์ธ ์ ๋ณด๋ฅผ ์ป์ ์ ์์ต๋๋ค. ## Start History [](https://star-history.com/#teddylee777/langchain-kr&Date) ## ๐ก ์ปจํธ๋ฆฌ๋ทฐ์ ๋ณธ ํํ ๋ฆฌ์ผ์ ๊ธฐ์ฌํ๊ณ ์ ํ๋ ๋ถ๋ค์ ์ธ์ ๋ ์ง ํ ๋ฆฌํ์คํธ๋ฅผ ๋ณด๋ด์ฃผ์๊ฑฐ๋, ์ด์๋ฅผ ๋ฑ๋กํ์ฌ ์๊ฒฌ์ ๊ณต์ ํด ์ฃผ์๊ธฐ ๋ฐ๋๋๋ค. ๋ชจ๋ ๊ธฐ์ฌ๋ ๋ณธ ํ๋ก์ ํธ์ ๋ฐ์ ์ ํฐ ๋์์ด ๋ฉ๋๋ค. ๐ <br/> <p><a href="https://www.buymeacoffee.com/teddylee777"> <img align="left" src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" height="50" width="210" alt="teddylee777" /></a></p>