강의

멘토링

커뮤니티

Inflearn Community Q&A

joung65170555's profile image
joung65170555

asked

Silicon Valley Engineer's Guide to LangChain, LangGraph, and MCP

Explore Multiple Chains

ChatPromptTemplate.from_messages(("ai", ...)) 질문

Resolved

Written on

·

370

1

ChatPromptTemplate.from_messages(("ai", ...))

에서 system과 human은 Context와 Role을 주는 역할인지 알겠는데 ai는 어떤 역할인가요 ?

NLPopenai프롬프트엔지니어링llmlangchain

Answer 1

1

altoformula님의 프로필 이미지
altoformula
Instructor

안녕하세요 정채진님,

ai 부분은 사용자 쿼리나 작업에 대한 자동 응답이라고 생각하시면 됩니다. 강의에서는 Multiple Chain이라 혼동이 될 수 있지만, https://python.langchain.com/docs/modules/model_io/chat/quick_start#messages 심플한 예제를 보시면 쉽게 이해되실 것 같습니다.

 

*Langchain에서의 정의는 이렇게 되어있습니다.

https://python.langchain.com/docs/modules/model_io/concepts#aimessage

joung65170555's profile image
joung65170555

asked

Ask a question