FAANG Senior Software Engineer
(Former) AI Agent Platform Development & Operations, GS Group
(Former) Mentor/Coach, GS Group DX BootCamp
(Former) Tech Lead at a Series C AI startup
Python Instructor, Stanford University Code in Place
Mentor, Naver Boostcamp Web/Mobile
Presenter, Naver Cloud YouTube Channel
Host, Wanted Pre-Onboarding Frontend/Backend Challenge (6,000+ cumulative participants)
Coach, Hanghae AI Plus Course (Cohort 1)
Courses
Reviews
- Work Automation AI Agent Ready for Immediate Use in Companies (w. n8n, LangGraph)
- Developing LLM Applications Using RAG (feat. LangChain)
- Work Automation AI Agent Ready for Immediate Use in Companies (w. n8n, LangGraph)
- AI Agent Development using LangGraph (feat. MCP)
- Developing LLM Applications Using RAG (feat. LangChain)
Posts
Q&A
ํ์ ์คํฌ๋ฆฝํธ autoComplete?
์๋ ํ์ธ์! ์ข์ ์ง๋ฌธ ๊ฐ์ฌํฉ๋๋ค. ๊ฐ์์์๋ Cursor๋ฅผ ํ์ฉํด์ AI๊ฐ ์๋์์ฑ์ ํ ๊ฒฝ์ฐ์ธ๋ฐ์, Visual Studio Code๋ฅผ ํ์ฉํ์ ๋ค๋ฉด GitHub Copilot์ ํ์ฑํํ์๋ฉด ์๋์์ฑ์ด ๊ฐ๋ฅํ ๊ฑฐ๋ผ๊ณ ์๊ฐํฉ๋๋ค.
- Likes
- 0
- Comments
- 1
- Viewcount
- 17
Q&A
[ReadMe]์์์ ๋์จ๊ฑฐ๋ ๊น์ด๋ ๋ค๋ฅด๋ค์
์๋ ํ์ธ์! ์ฒซ๋ฒ์งธ ์คํฌ๋ฆฐ์ท์ uv์ GitHub ํ์ด์ง์ด๊ณ https://github.com/astral-sh/uv๋๋ฒ์งธ ์ฌ๋ ค์ฃผ์ ์คํฌ๋ฆฐ์ท์ด ๊ฐ์์ ์์ค์ฝ๋ ๋ ํฌ์ ๋๋ค https://github.com/jasonkang14/inflearn-langgraph-agent
- Likes
- 0
- Comments
- 2
- Viewcount
- 65
Q&A
RAG ํ์ดํ๋ผ์ธ ๊ณ ๋ํ์ ํ์ธํ๋์ ์ฐ์ ์์ ๋ฐ ์ค๋ฌด์ ํ๋จ ๊ธฐ์ค์ด ๊ถ๊ธํฉ๋๋ค.
์๋ ํ์ธ์, ์ข์ ์ง๋ฌธ ๊ฐ์ฌํฉ๋๋ค. TL;DR์ ์ ๋ ํ์ธํ๋์ ํ์ ์๋ค๊ณ ์๊ฐํฉ๋๋ค. ๋ง์ํ์ ๊ฒ์ฒ๋ผ ํ์ธํ๋ ์์ฒด๋ ๋น์ฉ์ด๊ณ , ์ ์ง๋ณด์ ๋น์ฉ๋ ๋ถ๋ด์ด๊ณ , ์ธํ๋ผ ๊ด๋ฆฌ๋ ๋ถ๋ด์ด๊ณ , ์ฌ๋ฌ๋ชจ๋ก ๊ด๋ฆฌ ํฌ์ธํธ๊ฐ ์ฆ๊ฐํด์ ์ ๋ RAG๋ฅผ ๊ตฌํํ๊ณ ์์ฉ LLM์ ์ฐ๋ ๊ฒ์ด ํฉ๋ฆฌ์ ์ด๋ผ๊ณ ์๊ฐํฉ๋๋ค. ํ์ง๋ง ํ์์ ํ์ธํ๋์ ํด์ ์ด์ํ๋ ๊ฒ์ ๊ธฐ์กฐ๋ก ์ก๊ณ ํ๋ค๋ฉด, ์์ฆ ์คํ์์ค ๋ชจ๋ธ๋ ์ฑ๋ฅ์ด ๊ด์ฐฎ์์ ์ธ๋งํฉ๋๋ค. ํ๊ตญ์ด ๋ชจ๋ธ๋ค์ ์ต๊ทผ์ ํ ์คํธ๋ฅผ ํด๋ณด์ง ์์๋๋ฐ, kimi๋ qwen๊ณ์ด ๋ชจ๋ธ๋ค์ ์ ๋ง ํ๋ฅญํฉ๋๋ค. ์ด๋ก ์ ํ์ธํ๋์ ํด์ผํ๋ ๊ฒฝ์ฐ๋ ํ๋กฌํํธ๋ก ์ํ๋ ํ๋์ "๋ง๋ค์ด๋ผ ์๋ ์๋๋ฐ" 5% ํ๋ฅ ๋ก ์คํจํ๊ณ , ๊ทธ 5%๊ฐ ์ฉ๋ฉ ์ ๋๋ ๊ฒฝ์ฐ์ ๋๋ค. ์์ด์ ํธ๋ ๊ถค์ ์ด ๊ณฑํด์ง๊ธฐ ๋๋ฌธ์ ์คํ ๋น 95%๊ฐ 10์คํ ์ด๋ฉด ์ต์ข ์ ์ผ๋ก 60%๋ก ๋ฌด๋์ง๋๋ค. ํ๋กฌํํธ๋ ์ฒ์ฅ์ ์ ํ๊ณ , ํ์ธํ๋์ ๋ฐ๋ฅ์ ๋์ด์ฌ๋ฆฝ๋๋ค. ์์ด์ ํธ ์ค๋ฌด์์ ํ์ธํ๋์ ํ๋ ๊ฐ์ฅ ํํ ์ค์ง์ ์ด์ ๊ฐ ์ด๊ฒ๋๋ค. ๋ค๋ง ์ ๋ few shot ํ๋กฌํํ ์ ํ์ฉํ๋ฉด ๋๋ถ๋ถ์ use case์์ RAG๊ตฌ์ถ์ผ๋ก๋ ์ถฉ๋ถํ์ง ์๋ ์๊ฐํฉ๋๋ค.
- Likes
- 0
- Comments
- 2
- Viewcount
- 63
Q&A
์ฑ ๊ณผ ์ฐจ์ด์
์๋ ํ์ธ์! ๊ฐ์์ ์ฑ ๋ชจ๋ ๊ด์ฌ์ ๊ฐ์ ธ์ฃผ์ ์ ๊ฐ์ฌํฉ๋๋ค. ์ฝ๋๋ ์ฑ ์ ์์ฑ๋ ๋ด์ฉ์ด ๋ ์ต์ ๋ฒ์ ์ ์ฝ๋์ ๋๋ค
- Likes
- 0
- Comments
- 2
- Viewcount
- 64
Q&A
import Hub Error
์๋ ํ์ธ์, pull_prompt()๊ฐ ๋์ํ์ง ์๋๋ค๋ฉด, ํํ์ด์ง์์ ์ ๊ณต๋๋ ํ๋กฌํํธ๋ฅผ ํ์ธํ์๊ณ ์๋์ ๊ฐ์ด ์์ฑํ์ ๋ ๋ฉ๋๋ค ํํ์ด์ง๋ฅผ ํ์ธํ๋ฉด, system prompt์ user prompt์ ์กฐํฉ์ธ ๊ฒ์ ํ์ธํ ์ ์์ต๋๋ค(์ฌ์ง).์ด์ ๊ฐ์ ๊ฒฝ์ฐ ์๋์ ๊ฐ์ ํ์์ผ๋ก ๋ณํํ ์ ์์ต๋๋คfrom langchain_core.prompts import ChatPromptTemplate rag_prompt = ChatPromptTemplate.from_messages([ ('system', '''You are a teacher grading a quiz. You will be given a QUESTION and a set of FACTS provided by the student. Here is the grade criteria to follow: (1) You goal is to identify FACTS that are completely unrelated to the QUESTION (2) If the facts contain ANY keywords or semantic meaning related to the question, consider them relevant (3) It is OK if the facts have SOME information that is unrelated to the question (2) is met Score: A score of 1 means that the FACT contain ANY keywords or semantic meaning related to the QUESTION and are therefore relevant. This is the highest (best) score. A score of 0 means that the FACTS are completely unrelated to the QUESTION. This is the lowest possible score you can give. Explain your reasoning in a step-by-step manner to ensure your reasoning and conclusion are correct. Avoid simply stating the correct answer at the outset.'''), ('human', ''' Retrieved documents: {{input.documents}} User question: {{input.question}}''') ])
- Likes
- 0
- Comments
- 2
- Viewcount
- 58
Q&A
์ฝ๋ ์ต์ข ๊ฒฐ๊ณผ ์ง๋ฌธ๋๋ฆฝ๋๋ค.
๋ค๋ค ๋ง์ต๋๋ค context์ ๋ต๋ณ์ ํ์ํ ๋ฌธ์๊ฐ ํฌํจ๋์ด์์ง ์์์์ธ๋ฐ์, ํ์ฌ ๊ฐ์์ ๊ตฌ์ฑ์์๋ chunk_size, chunk_overlap, separators ๋ฅผ ๋ณ๊ฒฝํด๋ณด๋ฉด์ retriever.invoke()์์ ์ํ๋ chunk๊ฐ ์ ๋ฐํ๋๋์ง ํ์ธํด๋ณด์ ์ผ ํฉ๋๋ค
- Likes
- 0
- Comments
- 2
- Viewcount
- 57
Q&A
AgentState์ messages ํ์ธํด์ฃผ์ธ์.
์๋ ํ์ธ์, ๊ณต์๋ฌธ์๋ฅผ ๋ค์ ๋ณด๋ Annotated[list[AnyMessage], add_messages] ๊ฐ ๋ง๋ค์. ์์ค์ฝ๋๋ฅผ ์์ ํ๊ณ ๊ฐ์ ์ค๋ช ์ ์ ๋ฐ์ดํธ ํด๋์์ต๋๋ค. ๊ฐ์ฌํฉ๋๋คhttps://reference.langchain.com/python/langgraph/graph/message/MessagesState
- Likes
- 0
- Comments
- 2
- Viewcount
- 69
Q&A
multi_tool_agent.py ์์ arxiv tool ์๋ฌ
๊ณต์ ํด์ฃผ์ ์ ๊ฐ์ฌํฉ๋๋ค! ์์ค์ฝ๋์๋ 2.4.1๋ก ํ์ ๋ ๋ฌธ์ ๊ฐ ์์๋๋ฐ ๋ผ์ด๋ธ๋ฌ๋ฆฌ์ ์ด์๊ฐ ์๋ ๊ฒ ๊ฐ๋ค์. ๊ฐ์ฌํฉ๋๋ค!
- Likes
- 0
- Comments
- 1
- Viewcount
- 42
Q&A
agent ํ๊ฐ ๊ด๋ จ ๋ฌธ์ ๋๋ฆฝ๋๋ค.
์๋ ํ์ธ์! ์ข์ ์ง๋ฌธ ๊ฐ์ฌํฉ๋๋ค. ๋ต๋ณ์ ๋๋ ค๋ณด์๋ฉด๋ณ๋์ ํจ์๋ฅผ ์ ์ธํ์ง ์๋๋ค๋ฉด lambda๋ฅผ ์ฐ๋๊ฒ ๊ฐ์ฅ ํ์ด์ฌ์ค๋ฌ์ด๊ฒ ์๋๊ฐ ์๊ฐํฉ๋๋ค. ๋ค๋ง ์ฝ๋๊ฐ ์คํ๋ ค ์ง์ ๋ถํด์ง์ง ์์๊น ์ถ๋ค์. ๊ณต์๋ฌธ์์๋ ํจ์๋ฅผ ์ฐ๋ ๊ฑธ๋ก ์ ๋ฐ์ดํธ๊ฐ ๋ ๊ฑธ ๋ณด๋ฉด, ๋ณ๋์ ํจ์๋ฅผ ์ ์ธํ๋ ๊ฒ์ด ๊ฐ์ฅ ์ ํฉํ ๊ฒ ๊ฐ์ต๋๋ค https://docs.langchain.com/langsmith/evaluate-llm-application#reference-code์ ๋ผ๋ฉด ๋ต๋ณ์ ์ ํ๋๋ฅผ ๊ธฐ๋ณธ์ ์ผ๋ก ํ๊ฐํ๊ณ ๋์ ํ๊ฐ ๋ฐ์ดํฐ์ ์ ์ฌ๋์ ๋ต๋ณ์ ๋ฐ๋ผ ์ฌ๋ฌ๊ฐ์ง๋ก ๊ตฌํํด์ ๋ค์ํ ์๋๋ฆฌ์ค๋ฅผ ํ๊ฐํ๋ ์์ผ๋ก ๊ตฌํํ ๊ฒ ๊ฐ์ต๋๋ค(๋ง์ฝ ์ฌ๋์ ๋ต๋ณ์ด ์ค์ํ๋ค๋ฉด)๊ทธ๋ฆฌ๊ณ human-in-the-loop๋ฅผ ์ ๋๋ก ์คํ ํ๋์ง (trajectory)๋ฅผ ์ถ๊ฐ๋ก ํ๊ฐํ ๊ฒ ๊ฐ์์์ ๊ฐ ๊ฐ์ ์ฌ๋ผ์ด๋๋ฅผ ๊ณต์ ํ์ง ์์๊ตฐ์, ๋๋ถ์ ๊ฐ์์๋ฃ๋ฅผ ์์ ํ์ต๋๋ค ๊ฐ์ฌํฉ๋๋ค.์๋ง์กด ๋งํฌ: https://docs.aws.amazon.com/machine-learning/latest/dg/evaluating_models.html์ธ์ผ์ฆํฌ์ค ๋ ผ๋ฌธ๋งํฌ: https://arxiv.org/abs/1806.08730์ข์ ํผ๋๋ฐฑ ๊ฐ์ฌํฉ๋๋ค!
- Likes
- 0
- Comments
- 1
- Viewcount
- 42
Q&A
2.3 Agentic RAG ๊ด๋ จ ์ง๋ฌธ์ด ์์ต๋๋ค.
์๋ ํ์ธ์ ์ข์ ์ง๋ฌธ ๊ฐ์ฌํฉ๋๋ค. node๋ก ๋ณ๋๋ก ์ ์ธํ์ง๋ ์์์ง๋ง ๊ทธ๋ํ ์จํจ๋ก์ง์๋ ํฌํจ๋๋ค๊ณ ๋ณด์๋๊ฒ ๋ง์ต๋๋ค.์ฝ๋๋ฅผ ๋ค์ ๋ณด์๋ฉด retireve node๋ฅผ generate์ rewritenode๋ค๊ณผ edge๋ก ์ฐ๊ฒฐ์ํค์ง ์๋ ๊ฒ์ ๋ณด์ค ์ ์์ต๋๋ค. (์ฌ์ง)ํ์ง๋ง ๊ทธ๋ํ๋ฅผ ๋ณด๋ฉด ์ ์ ์ผ๋ก ์ฐ๊ฒฐ๋์ด ์๋ ๊ฒ์ ํ์ธํ ์ ์์ต๋๋ค.(์ฌ์ง)์ฌ๊ธฐ์check_doc_relevance ๊ฐ node์ด๋ฉด์ ๋ค์ node ๋ค์ ์ ์ํ๋ edge์ ์ญํ ์ ํ๊ธฐ ๋๋ฌธ์ธ๋ฐ์(์์์ ์จํจ๋ก์ง์ ํฌํจ๋๋ค๊ณ ๋ณด์๋๊ฒ ๋ง๋ค๊ณ ์ค๋ช ํ ์ด์ ์ ๋๋ค). ๊ทธ๋ฆผ์ผ๋ก ํํํ์๋ฉด ์๋์ ๊ฐ์ ๋๋์ ๋๋ค. (์ฌ์ง)๊ทธ๋ํ์ ๋ช ์์ ์ผ๋ก ๋ณด์ด๊ฒ ํ๋ ค๋ฉด check_doc_relevance๋ฅผ node๋ก ์์ฑํ๊ณ , check_doc_relevance์์ add_conditional_edges() ๋ฅผ ์ ์ธํด๋ ๋ฉ๋๋ค. ์ ๋ ๋ถํ์ํ๊ฒ ์ฝ๋์์ ๋๋ฆฌ๋ ๊ฒ ๊ฐ์์ ๊ฐ์์์ ๋ณด์๋ ๊ฒ๊ณผ ๊ฐ์ด ์งํํ๋๋ฐ, ์์ด์ ํธ์ ํ๋ฆ์ ํ์ ํ๋๋ฐ ์์ด์๋ ์คํ๋ ค ๊ฐ๋ ์ฑ์ด ๋จ์ด์ง ์๋ ์๊ฒ ๋ค๋ ์๊ฐ์ด ๋๋ค์. ๊ทธ๋ฆฌ๊ณ State๋ฅผ ๋ฐํํ์ง ์์๋ node์ ์ถ๊ฐ์ํฌ ์ ์์ต๋๋ค. ๊ณต์๋ฌธ์์์๋ ์๋๋ค๊ณ ๋์ด์์ง๋ง {} ๋ฅผ ๋ฆฌํด์ํค๋ฉด node๋ก ์ถ๊ฐํ ์ ์์ต๋๋ค. ๋ ์ค๋ช ์ด ๋ถ์กฑํ ๋ถ๋ถ์ด ์๋ค๋ฉด ์ธ์ ๋ ์ง ์ง๋ฌธ์ผ๋ก ์ฌ๋ ค์ฃผ์ธ์! ์ต๋ํ ๋น ๋ฅด๊ฒ ๋ต๋ณ ๋๋ฆฌ๊ฒ ์ต๋๋ค
- Likes
- 0
- Comments
- 2
- Viewcount
- 56





