-
Notifications
You must be signed in to change notification settings - Fork 282
[E-4] 13-LCEL / 10-Binding #197
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
[Title] Binding [Version] initial commit [Language] ENG [Package] langsmith,langchain,langchain_core,langchain_openai
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.
[Review Checklist]
-
Review OS:
- Windows / Mac / Linux (Mac)
-
Template Rule 준수 여부:
- Template Rule 가이드를 준수하였는가? (Check 표기)
-
Table of Contents 링크 확인:
- Table of Contents의 링크가 원활하게 동작하는지 확인하였는가? (Check 표기)
-
이미지 파일명 검토:
- 이미지가 포함되어 있다면, 이미지의 파일명이 가이드를 준수하였는가? (Check 표기)
-
최신 import 방식 사용 여부:
- import 구문이 예전 legacy 방식이 아닌 최신 버전을 따르는가? (Check 표기)
-
코드 동작 확인:
- 모든 코드가 오류 없이 동작하는가? (Check 표기)
- Warning 발생 시 코멘트에 적어주세요.
-
제출 파일 확인:
- 꼭 필요한 파일들만 제출되었는가?
- 튜토리얼 외 설정 파일이나 다른 분이 작업한 파일이 포함되었는지 Files Changed에서 확인 부탁드립니다. (Check 표기)
- 꼭 필요한 파일들만 제출되었는가?
-
기타 의견:
!pip > %pip 그리고 gpt-4 > gpt-4o (또는 gpt-4o-mini)로 수정하면 될것 같습니다.
다른 부분 문제 없이 잘 작동 합니다.
], | ||
"source": [ | ||
"%%capture --no-stderr\n", | ||
"!pip install langchain-opentutorial" |
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.
!pip install langchain-opentutorial 대신 %pip install langchain-opentutorial 적용 필요 할것 같습니다.
Discord 링크
Claude에 물어 보면 이렇다고 합니다.
!pip: 시스템 셸에서 실행
%pip: Jupyter 커널 내부에서 실행
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.
상세한 리뷰 감사드립니다^^ 수정해서 commit 하겠습니다.
")\n", | ||
"\n", | ||
"\n", | ||
"model = ChatOpenAI(model=\"gpt-4\", temperature=0).bind(\n", |
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.
model 은 gpt-4o 또는 got-4o-mini 적용하면 명확할것 같습니다. 감사 합니다.
Discord 링크
" ]\n", | ||
")\n", | ||
"# Initialize the ChatOpenAI model and set temperature to 0.\n", | ||
"model = ChatOpenAI(model=\"gpt-4\", temperature=0)\n", |
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.
model 은 gpt-4o 또는 got-4o-mini 적용하면 명확할것 같습니다. 감사 합니다.
Discord 링크
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.
EQUATION: ( x^3 + 7 = 12 )
SOLUTION:
-
Subtract 7 from both sides of the equation:
[
x^3 + 7 - 7 = 12 - 7
]
[
x^3 = 5
] -
Take the cube root of both sides to solve for ( x ):
[
x = \sqrt[3]{5}
]
Therefore, the solution is:
[
x = \sqrt[3]{5}
]
Gpt-4o의 경우 LaTeX-style 문제가 발생하여 아래 문구를 추가하였습니다.
#"Please avoid LaTeX-style formatting and use plain symbols."
], | ||
"source": [ | ||
"# Initialize the ChatOpenAI model and bind the tools.\n", | ||
"model = ChatOpenAI(model=\"gpt-4\").bind(tools=tools)\n", |
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.
model 은 gpt-4o 또는 got-4o-mini 적용하면 명확할것 같습니다. 감사 합니다.
Discord 링크
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.
[Review Checklist]
-
Review OS:
- Windows / Mac / Linux (Mac)
-
Template Rule 준수 여부:
- Template Rule 가이드를 준수하였는가? (Check 표기)
-
Table of Contents 링크 확인:
- Table of Contents의 링크가 원활하게 동작하는지 확인하였는가? (Check 표기)
-
이미지 파일명 검토:
- 이미지가 포함되어 있다면, 이미지의 파일명이 가이드를 준수하였는가? (Check 표기)
-
최신 import 방식 사용 여부:
- import 구문이 예전 legacy 방식이 아닌 최신 버전을 따르는가? (Check 표기)
-
코드 동작 확인:
- 모든 코드가 오류 없이 동작하는가? (Check 표기)
- Warning 발생 시 코멘트에 적어주세요.
-
제출 파일 확인:
- 꼭 필요한 파일들만 제출되었는가?
- 튜토리얼 외 설정 파일이나 다른 분이 작업한 파일이 포함되었는지 Files Changed에서 확인 부탁드립니다. (Check 표기)
- 꼭 필요한 파일들만 제출되었는가?
-
기타 의견:
잘 작동 합니다. 수고 하셨습니다.
…guage] ENG [Package] langsmith,langchain,langchain_core,langchain_openai
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.
[Review Checklist]
-
Review OS:
- Mac
-
Template Rule 준수 여부:
- Template Rule 가이드를 준수하였는가? (Check 표기)
-
Table of Contents 링크 확인:
- Table of Contents의 링크가 원활하게 동작하는지 확인하였는가? (Check 표기)
-
이미지 파일명 검토:
- 이미지가 포함되어 있다면, 이미지의 파일명이 가이드를 준수하였는가? (Check 표기)
-
최신 import 방식 사용 여부:
- import 구문이 예전 legacy 방식이 아닌 최신 버전을 따르는가? (Check 표기)
-
코드 동작 확인:
- 모든 코드가 오류 없이 동작하는가? (Check 표기)
- Warning 발생 시 코멘트에 적어주세요.
-
제출 파일 확인:
- 꼭 필요한 파일들만 제출되었는가?
- 튜토리얼 외 설정 파일이나 다른 분이 작업한 파일이 포함되었는지 Files Changed에서 확인 부탁드립니다. (Check 표기)
- 꼭 필요한 파일들만 제출되었는가?
-
기타 의견:
추가적인 의견이나 수정 사항을 기재해주세요.
정상 동작합니다 고생하셨습니다! 사소한 의견 하나 있는데 필수 수정 사항은 아닙니다!
" # Write the following equation using algebraic symbols and then solve it.\n", | ||
" \"Write out the following equation using algebraic symbols then solve it. \"\n", |
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.
섬세한 리뷰 감사드립니다^^
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.
[Review Checklist]
-
Review OS:
- Windows / Mac / Linux (Mac)
-
Template Rule 준수 여부:
- Template Rule 가이드를 준수하였는가? (Check 표기)
-
Table of Contents 링크 확인:
- Table of Contents의 링크가 원활하게 동작하는지 확인하였는가? (Check 표기)
-
이미지 파일명 검토:
- 이미지가 포함되어 있다면, 이미지의 파일명이 가이드를 준수하였는가? (Check 표기)
-
최신 import 방식 사용 여부:
- import 구문이 예전 legacy 방식이 아닌 최신 버전을 따르는가? (Check 표기)
-
코드 동작 확인:
- 모든 코드가 오류 없이 동작하는가? (Check 표기)
- Warning 발생 시 코멘트에 적어주세요.
-
제출 파일 확인:
- 꼭 필요한 파일들만 제출되었는가?
- 튜토리얼 외 설정 파일이나 다른 분이 작업한 파일이 포함되었는지 Files Changed에서 확인 부탁드립니다. (Check 표기)
- 꼭 필요한 파일들만 제출되었는가?
-
기타 의견:
특이사항 없습니다. 내용 확인 및 코드 정상 작동 모두 확인 하였습니다.
수고 많으셨습니다.
[E-4] 13-LCEL / 10-Binding
[Title] Binding
[Version] initial commit
[Language] ENG
[Package] langsmith,langchain,langchain_core,langchain_openai
디스코드에 사전 제공된 openai api 세팅 후 검토 하시면 됩니다.^^
{PR Message - Write freely, remove this bracket if unnecessary}7
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