-
Notifications
You must be signed in to change notification settings - Fork 282
[E-1] 20-Prompt / Agent prompt #604
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
안녕하세요 주영님! :) 저는 CoT, ToT, GoT 프롬프트를 담당하고 있는데요, CoT를 적용할 만한 것으로는 아무래도 멀티에이전트의 supervisor가 가장 적절한 것 같아서요. 현재는 아직 머지되진 않았지만 #490 계층적 멀티에이전트를 가지고 실험중이에요. 여기에 supervisor가 세 개가 있는데 프롬프트는 다 같은데 members만 변수로 받아서 만들면 될 것 같아서요. 그런데 다른 단계들이 있다보니 프롬프트가 제대로 작동하는지 확인하기 어려워서 고민중입니다 :) 혹시 모르니까 제가 올린 파일에도 리뷰어 지정해두겠습니다! :) |
1차 작성 완료했습니다. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
코드 실행 보단,
내용 위주로 검토했습니다.
각 목적 별 프롬프트에 대한 설명이 자세하여 좋습니다.
추가로 프롬프트 사용에 대한 출력 예시도 있어 이해하기에 적합 합니다.
고생하셨습니다.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approve가 해제된것으로 보여 다시 리뷰 제출 합니다!
[amend] diagram,PROMPT_QUALITY_EVALUATION_TEMPLATE
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
추가 및 변경된 내용 확인하였습니다.
프롬프트 사용 예제와 가이드라인 전문을 포함한 ipynb를 만들었는데 이로 대체하거나 사용예제만을 포함해 추가로 커밋하면 어떨까요? |
다른 튜토리얼에 없는 전용 프롬프트라면 예제파일 너무 좋을 것 같습니다~!! |
감사합니다 :)
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🖥️ OS: Mac
✅ Checklist
- Template: Tutorials follows the required template.
- Table of Contents(TOC) Links: All Table of Contents links work. (Yes/No)
- Image: Image filenames follow guidelines.
- Imports: All import statements use the latest versions. Ensure "langchain-teddynote" is not used.
- Code Execution: Code runs without errors.
- Comments: 코드 동작 이상 없습니다.
개인적인 추가 의견으로는
- md에 있는 내용이 ipynb 내에도 동일하게 있는데, md 파일 내용은 지우고
md 파일내에 ipynb를 참조 링크로 붙이는게 어떨까 싶습니다.
- 또한 ipynb에서 Table of Contents에 추가하는 항목은 ## 인 경우로 기억합니다.
전용 예제 파일을 만드신거니 내용을 적절히 분리하여 올리시는게 어떨 까요?
- 환경변수 셋팅에서
from dotenv import load_dotenv
from langchain_opentutorial import set_env
# Attempt to load environment variables from a .env file; if unsuccessful, set them manually.
if not load_dotenv():
set_env(
{
"OPENAI_API_KEY": "",
"LANGCHAIN_API_KEY": "",
"LANGCHAIN_TRACING_V2": "true",
"LANGCHAIN_ENDPOINT": "https://api.smith.langchain.com",
"TAVILY_API_KEY": "",
}
)
# set the project name same as the title
set_env(
{
"LANGCHAIN_PROJECT": "agentic-prompt",
}
)
이 부분을
from dotenv import load_dotenv
from langchain_opentutorial import set_env
# Attempt to load environment variables from a .env file; if unsuccessful, set them manually.
if not load_dotenv():
set_env(
{
"OPENAI_API_KEY": "",
"LANGCHAIN_API_KEY": "",
"LANGCHAIN_TRACING_V2": "true",
"LANGCHAIN_ENDPOINT": "https://api.smith.langchain.com",
"TAVILY_API_KEY": "",
"LANGCHAIN_PROJECT": "agentic-prompt",
}
)
이렇게 하나로 합쳐도 될 것 같습니다.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🖥️ OS: Win/Mac/Linux
✅ Checklist
- Template: Tutorials follows the required template.
- Table of Contents(TOC) Links: All Table of Contents links work. (Yes/No)
- Image: Image filenames follow guidelines.
- Imports: All import statements use the latest versions. Ensure "langchain-teddynote" is not used.
- Code Execution: Code runs without errors.
- Comments: 환경변수 관리를 통합해야 할 것 같아서 말씀드린것인데, 불편함을 해소하기 위한 것이라면 상관 없을 것 같습니다!
고생하셨습니다 ㅎㅎ
🖥️ OS: Mac
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[승인]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cjLee-cmd 어떤거 잘 못 누르셨나요?
이 PR에 다시 리뷰 요청을 누르셔서 승인 풀렸네요 ㅠㅠ
앗... 제가 뭘 잘못눌렀을까요...?? 승인 요청와서 승인한거 같은데요... |
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[승인] 승인하겠습니다.
cc9735f
into
LangChain-OpenTutorial:main
{PR Message - Write freely, remove this bracket if unnecessary}
1차 작성 완료했습니다.
에이전트 프롬프트의 개념과 요소에 대한 설명이 포함되어 있고, 에이전트 프롬프트 예제를 좀 더 추가할 예정입니다.
개선사항이나 있으면 좋을 것 같은 예제 제안주시면 적극 반영하겠습니다!
Author Checklist
PR Title Format: I have confirmed that the PR title follows the correct format. (e.g., [N-2] 07-Text Splitter / 07-RecursiveCharacterTextSplitter)
Committed Files: I have ensured that no unnecessary files (e.g., .bin, .gitignore, poetry.lock, pyproject.toml) are included. These files are not allowed.
(Optional) Related Issue: If this PR is linked to an issue, I have referenced the issue number in the PR message. (e.g., Fixes Update 01-PromptTemplate.ipynb #123)
❌ Do not include unnecessary files (e.g., .bin, .gitignore, poetry.lock, pyproject.toml) or other people's code. If included, close the PR and create a new PR.
Review Template (Intial PR)
If no one reviews your PR within a few days, please @-mention one of teddylee777, musangk, BAEM1N