목차
1. 정리 배경
2. 테디 노트 강의를 통해 확인한 사례
3. 결과 및 결론
그렇다면 Agent를 만들어서 활용할 수 있는 방법이나 유형을 내재화 하고 싶다는 생각이 들었다. 따라서 테디노트
###DOCUMENT PROMPT###
from langchain.tools.retriever import create_retriever_tool
from langchain_core.prompts import PromptTemplate
# 문서의 내용을 표시하는 템플릿을 정의합니다.
document_prompt = PromptTemplate.from_template(
"<document><content>{page_content}</content><page>{page}</page><filename>{source}</filename></document>"
)
# retriever 를 도구로 정의합니다.
retriever_tool = create_retriever_tool(
retriever,
name="pdf_search",
description="use this tool to search for information in the PDF file",
document_prompt=document_prompt,
)
테디 노트님 유료 강의, 특히 Agent의 활용 부분에 대한 강의를 듣고 내가 판단해야 한다고 생각한 것은 다음과 같다.
1. Agent를 개발할 때의 고려 해야하는 변수
2. 서비스에 Agent를 도입할 때 신경 써야 하는 기술적인 부분
다음과 같은 특징을 고려하여 서비스와 연계하는 생각을 할 수 있어야 한다는 생각이 들었다.