랭체인 프롬프트, 모델, 출력파서, 랭체인 허브
·
독서&지식
한빛미디어의 'AI에이전트 마스터 클래스' 내용의 일부를 정리했습니다. 1. 프롬프트프롬프트를 랭체인 문법에 맞춰 작성하는 방법1. PromptTemplate.from_template()langchain_core 패키지의 prompts 모듈로부터 Prompt Template 객체를 가져오는 법from langchain_core.prompts import PromptTemplateprompt = PromptTemplate.from_template("{topic}에 대해 {level} 수준으로 설명해 주세요.")print(prompt)"""input_variables=['level', 'topic'] input_types={} partial_variables={} template='{topic}에 대해 {l..