Home
Softono
t

teddylee777

Professional software vendor delivering innovative solutions on the Softono platform. Specialized in both open-source and proprietary software development.

Total Products
2

Software by teddylee777

langchain-kr
Open Source

langchain-kr

# ๐Ÿ“˜ LangChain ํ•œ๊ตญ์–ด ํŠœํ† ๋ฆฌ์–ผ ![](images/welcome.png) ๐ŸŒŸ **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 [![Star History Chart](https://api.star-history.com/svg?repos=teddylee777/langchain-kr&type=Date)](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>

AI Tools LMS
2K Github Stars
langserve_ollama
Open Source

langserve_ollama

# ๋ฌด๋ฃŒ๋กœ ํ•œ๊ตญ์–ด๐Ÿ‡ฐ๐Ÿ‡ท ํŒŒ์ธํŠœ๋‹ ๋ชจ๋ธ ๋ฐ›์•„์„œ ๋‚˜๋งŒ์˜ ๋กœ์ปฌ LLM ํ˜ธ์ŠคํŒ… ํ•˜๊ธฐ(LangServe) + RAG ๊นŒ์ง€!! ## ์—…๋ฐ์ดํŠธ ์•ˆ๋‚ด **2024-10-31: ๋ณ€๊ฒฝ ๋กœ๊ทธ** - LangServe 0.3 ๋ฒ„์ „ ์—…๋ฐ์ดํŠธ, LangChain 0.3 ๋ฒ„์ „ ์—…๋ฐ์ดํŠธ, LangChain-Ollama 0.3 ๋ฒ„์ „ ์—…๋ฐ์ดํŠธ - LangChain-Ollama 0.3 ๋ฒ„์ „ ์—…๋ฐ์ดํŠธ๋กœ ์ธํ•˜์—ฌ ๋ชจ๋ธ ๋กœ๋”ฉ ๋ฐฉ๋ฒ•์ด ๋ณ€๊ฒฝ๋˜์—ˆ์Šต๋‹ˆ๋‹ค. - Xionic ์ฒด์ธ ์ œ๊ฑฐ(API ๋™์ž‘ ๋ถˆ์•ˆ์ •์œผ๋กœ ์ธํ•œ ์ค‘๋‹จ) **2024-12-21: ๋ณ€๊ฒฝ ๋กœ๊ทธ** - FastAPI ์„œ๋ฒ„ ์ฝ”๋“œ ๋ฆฌํŒฉํ† ๋ง - `langchain-ollama` ํŒจํ‚ค์ง€ ์—…๋ฐ์ดํŠธ - `main.py` ํŒŒ์ผ ์ฝ”๋“œ ๋ฆฌํŒฉํ† ๋ง ## ๊ณต์‹œ ํ™ˆํŽ˜์ด์ง€ - ๋งํฌ: https://python.langchain.com/docs/langserve/ ## YouTube ํŠœํ† ๋ฆฌ์–ผ ์•„๋ž˜์˜ ์˜์ƒ์„ ์‹œ์ฒญํ•˜์‹œ๋ฉด์„œ ๋”ฐ๋ผ์„œ ์ง„ํ–‰ํ•˜์„ธ์š”. [![๋ฐ๋ชจ ์˜์ƒ](https://img.youtube.com/vi/VkcaigvTrug/0.jpg)](https://youtu.be/VkcaigvTrug) ## HuggingFace gguf ํŒŒ์ผ์„ Ollama ๋กœ๋”ฉ > HuggingFace-Hub ์„ค์น˜ ```bash pip install huggingface-hub ``` ์•„๋ž˜์˜ ์˜ˆ์‹œ๋Š” `EEVE-Korean-Instruct-10.8B-v1.0` - HF: https://huggingface.co/yanolja/EEVE-Korean-Instruct-10.8B-v1.0 - GGUF: https://huggingface.co/heegyu/EEVE-Korean-Instruct-10.8B-v1.0-GGUF GGUF ํŒŒ์ผ์„ ๋‹ค์šด๋กœ๋“œ ๋ฐ›๊ธฐ ์œ„ํ•˜์—ฌ https://huggingface.co/heegyu/EEVE-Korean-Instruct-10.8B-v1.0-GGUF ์—์„œ ์›ํ•˜๋Š” .gguf ๋ชจ๋ธ์„ ๋‹ค์šด๋กœ๋“œ ๋ฐ›์Šต๋‹ˆ๋‹ค. ์ˆœ์„œ๋Œ€๋กœ - `HuggingFace Repo` - .gguf ํŒŒ์ผ๋ช… - local-dir ์„ค์ • - ์‹ฌ๋ณผ๋ฆญ ๋งํฌ ์„ค์ • ```bash huggingface-cli download \ heegyu/EEVE-Korean-Instruct-10.8B-v1.0-GGUF \ ggml-model-Q5_K_M.gguf \ --local-dir ๋ณธ์ธ์˜_์ปดํ“จํ„ฐ_๋‹ค์šด๋กœ๋“œํด๋”_๊ฒฝ๋กœ \ --local-dir-use-symlinks False ``` ### Modelfile > EEVE-Korean-Instruct-10.8B-v1.0 ์˜ˆ์‹œ ``` FROM ggml-model-Q5_K_M.gguf TEMPLATE """{{- if .System }} <s>{{ .System }}</s> {{- end }} <s>Human: {{ .Prompt }}</s> <s>Assistant: """ SYSTEM """A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions.""" PARAMETER stop <s> PARAMETER stop </s> ``` > openbuddy-llama2-13b ์˜ˆ์‹œ ``` FROM openbuddy-llama2-13b-v11.1.Q4_K_M.gguf TEMPLATE """{{- if .System }} <|im_start|>system {{ .System }}<|im_end|> {{- end }} <|im_start|>user {{ .Prompt }}<|im_end|> <|im_start|>assistant """ SYSTEM """""" PARAMETER stop <|im_start|> PARAMETER stop <|im_end|> ``` ## Ollama ์‹คํ–‰ ```bash ollama create EEVE-Korean-10.8B -f EEVE-Korean-Instruct-10.8B-v1.0-GGUF/Modelfile ``` Ollama ๋ชจ๋ธ ๋ชฉ๋ก ```bash ollama list ``` Ollama ๋ชจ๋ธ ์‹คํ–‰ ```bash ollama run EEVE-Korean-10.8B:latest ``` ## LangServe ์—์„œ Ollama ์ฒด์ธ ์ƒ์„ฑ app ํด๋” ์ง„์ž… ํ›„ ```bash python server.py ``` ## ngrok ์—์„œ ํ„ฐ๋„๋ง(ํฌํŠธ ํฌ์›Œ๋“œ) ```bash ngrok http localhost:8000 ``` ![](./images/capture-20240411-035817.png) NGROK ๋„๋ฉ”์ธ ๋“ฑ๋ก ๋งํฌ: https://dashboard.ngrok.com/cloud-edge/domains > ๊ณ ์ • ๋„๋ฉ”์ธ์ด ์žˆ๋Š” ๊ฒฝ์šฐ ```bash ngrok http --domain=poodle-deep-marmot.ngrok-free.app 8000 ``` ## GPU ์‚ฌ์šฉ๋Ÿ‰ ๋ชจ๋‹ˆํ„ฐ๋ง Github Repo: https://github.com/tlkh/asitop ```bash pip install asitop ``` ํŒจ์Šค์›Œ๋“œ ์„ค์ • ```bash sudo asitop ``` ์‹คํ–‰ ```bash asitop ``` ## License ์†Œ์Šค์ฝ”๋“œ๋ฅผ ํ™œ์šฉํ•˜์‹ค ๋•Œ๋Š” ๋ฐ˜๋“œ์‹œ ์ถœ์ฒ˜๋ฅผ ํ‘œ๊ธฐํ•ด ์ฃผ์‹œ๊ธฐ ๋ฐ”๋ž๋‹ˆ๋‹ค. ``` MIT License Copyright (c) 2024, ํ…Œ๋””๋…ธํŠธ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of

LLM Tools & Chat UIs Knowledge Bases & RAG
194 Github Stars