Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

BaBetterB
Copy link
Contributor

[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)

🖥️ 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: {Write freely, 한국어 기술 가능}     

If no one reviews your PR within a few days, please @-mention one of teddylee777, musangk, BAEM1N

[Title] Binding
[Version] initial commit
[Language] ENG
[Package] langsmith,langchain,langchain_core,langchain_openai
@BaBetterB BaBetterB requested review from gyjong and ppakyeah January 7, 2025 00:58
@BaBetterB BaBetterB self-assigned this Jan 7, 2025
Copy link
Contributor

@gyjong gyjong left a 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"
Copy link
Contributor

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 커널 내부에서 실행

Copy link
Contributor Author

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",
Copy link
Contributor

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",
Copy link
Contributor

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 링크

Copy link
Contributor Author

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:

  1. Subtract 7 from both sides of the equation:
    [
    x^3 + 7 - 7 = 12 - 7
    ]
    [
    x^3 = 5
    ]

  2. 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",
Copy link
Contributor

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 링크

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

네 수정완료하였습니다^^

gyjong
gyjong previously approved these changes Jan 7, 2025
Copy link
Contributor

@gyjong gyjong left a 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 표기)
  • 기타 의견:
    잘 작동 합니다. 수고 하셨습니다.

Copy link
Contributor

@ppakyeah ppakyeah left a 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 표기)
  • 기타 의견:
    추가적인 의견이나 수정 사항을 기재해주세요.
    정상 동작합니다 고생하셨습니다! 사소한 의견 하나 있는데 필수 수정 사항은 아닙니다!

Comment on lines +194 to +195
" # Write the following equation using algebraic symbols and then solve it.\n",
" \"Write out the following equation using algebraic symbols then solve it. \"\n",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

사소하게 해당 주석은 한국어 튜토리얼에서 번역을 위해 사용되었던 걸로 보여서 제거되어도 괜찮지 않을까 의견드립니다!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

섬세한 리뷰 감사드립니다^^

Copy link
Contributor

@gyjong gyjong left a 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 표기)
  • 기타 의견:
    특이사항 없습니다. 내용 확인 및 코드 정상 작동 모두 확인 하였습니다.
    수고 많으셨습니다.

@teddylee777 teddylee777 merged commit b64a602 into LangChain-OpenTutorial:main Jan 9, 2025
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants