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

Skip to content

Conversation

BaBetterB
Copy link
Contributor

{PR Message - Write freely, remove this bracket if unnecessary}
[Title] Iteration-HumanInTheLoop
[Version] modified colab link
[Language] ENG
[Package] langsmith,langchain,langchain_core,langchain_openai,langchain_teddynote

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

โ€ฆationFunction(Human-in-the-loop) [Version] initial commit [Language] ENG [Package] langsmith,langchain,langchain_core,langchain_openai,langchain_teddynote
โ€ฆationFunction(Human-in-the-loop) [Version] modified colab link [Language] ENG [Package] langsmith,langchain,langchain_core,langchain_openai,langchain_teddynote
โ€ฆationFunction(Human-in-the-loop) [Version] modified colab link [Language] ENG [Package] langsmith,langchain,langchain_core,langchain_openai,langchain_teddynote
โ€ฆationFunction(Human-in-the-loop) [Version] modified colab link [Language] ENG [Package] langsmith,langchain,langchain_core,langchain_openai,langchain_teddynote
โ€ฆationFunction(Human-in-the-loop) [Version] modified colab link [Language] ENG [Package] langsmith,langchain,langchain_core,langchain_openai,langchain_teddynote
โ€ฆnTheLoop [Version] initial commit [Language] ENG [Package] langsmith,langchain,langchain_core,langchain_openai,langchain_teddynote
โ€ฆnTheLoop [Version] modified colab link [Language] ENG [Package] langsmith,langchain,langchain_core,langchain_openai,langchain_teddynote
@BaBetterB BaBetterB self-assigned this Jan 13, 2025
โ€ฆnTheLoop [Version] delete teddy lib [Language] ENG [Package] langsmith,langchain,langchain_core,langchain_openai
โ€ฆvised version [Language] ENG [Package] langsmith,langchain,langchain_core,langchain_openai
@Secludor
Copy link
Contributor

Secludor commented Jan 16, 2025

๐Ÿ–ฅ๏ธ OS: Win
โœ… Checklist

  • Template: Tutorials follows the required template.
    • ํ˜น์‹œ ์ œ๋ชฉ์— Human-in-the-Loop ์„ ์นด๋ฉœ ์ผ€์ด์Šค๋กœ ํ•˜์‹  ์ด์œ ๊ฐ€ ์žˆ๋‚˜์š”? ๋ชจ๋“ˆ ์ด๋ฆ„์ด ์•„๋‹ˆ๊ธฐ ๋•Œ๋ฌธ์— ์นด๋ฉœ์ผ€์ด์Šค, ๋ฐฑ์ฟผํ† ๊ฐ€ ์—†์–ด๋„ ๋  ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค!
  • Table of Contents(TOC) Links: All Table of Contents links work. ((Yes/No)
  • Image: Image filenames follow guidelines.(N/A)
  • *Imports: All import statements use the latest versions. Ensure "langchain-teddynote" is not used.
  • Code Execution: Code runs without errors.
  • Comments: {Write freely, ํ•œ๊ตญ์–ด ๊ธฐ์ˆ  ๊ฐ€๋Šฅ}
    • ์‹คํ–‰์—๋Š” ๋ฌธ์ œ๊ฐ€ ์—†๋Š”๋ฐ AgentExecutor ์˜
      • ๋งˆํฌ๋‹ค์šด ๋ธ”๋Ÿญ 2, 3๋ฒˆ ๋‹จ๊ณ„๊ฐ€ ๋ง์…ˆ์ด ์ž˜๋ชป๋˜์—ˆ์Šต๋‹ˆ๋‹ค. (235.7+32.2 = 269.9)
      • ์ฝ”๋“œ ๋ธ”๋Ÿญ์˜ ์‹คํ–‰์—์„œ ๋ง์…ˆ์ด ๋งˆํฌ๋‹ค์šด ๋‚ด์šฉ๊ณผ ๋‹ค๋ฅด๊ฒŒ ๋‹จ๊ณ„๋ณ„๋กœ ์ˆ˜ํ–‰๋˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค.
        • Tool Name: add_function, Execution Result: 235.7
        • Tool Name: add_function, Execution Result: 380.0
        • The result of 114.5 + 121.2 + 34.2 + 110.1 is 380.0.
      • (์ œ์•ˆ) ์ค‘๊ฐ„ ๋‹จ๊ณ„์—์„œ๋„ ๋งˆํฌ๋‹ค์šด ๋ธ”๋Ÿญ์˜ ๋‚ด์šฉ์ฒ˜๋Ÿผ ๊ณ„์‚ฐ์‹์ด ํ‘œ์‹œ๋˜๋ฉด ์ข‹์„ ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค!
        • (์˜ˆ : 1. 114.5 + 121.2 = 235.7)

Copy link
Contributor

@ranian963 ranian963 left a comment

Choose a reason for hiding this comment

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

"LANGCHAIN_PROJECT": "Iteration Function and Human-in-the-loop", ์—์„œ ๋ฒˆํ˜ธ๊ฐ€ ๋น ์ ธ ์žˆ๋Š” ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค.

@Secludor
Copy link
Contributor

ํ˜„์žฌ PR์— Binding.ipynb๊ฐ€ ํ•จ๊ป˜ ์ปค๋ฐ‹๋˜์–ด ์žˆ์Šต๋‹ˆ๋‹ค!

@BaBetterB
Copy link
Contributor Author

ํ˜„์žฌ PR์— Binding.ipynb๊ฐ€ ํ•จ๊ป˜ ์ปค๋ฐ‹๋˜์–ด ์žˆ์Šต๋‹ˆ๋‹ค!
๊ณต์œ  ๊ฐ์‚ฌ๋“œ๋ฆฝ๋‹ˆ๋‹ค. ์กฐ์น˜ํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค.

โ€ฆd and revised version [Language] ENG [Package] langsmith,langchain,langchain_core,langchain_openai"

This reverts commit 46a0600.
โ€ฆin-the-loop [Version] bug fix [Language] ENG [Package] langsmith,langchain,langchain_core,langchain_openai
@BaBetterB
Copy link
Contributor Author

๐Ÿ–ฅ๏ธ OS: Win โœ… Checklist

  • Template: Tutorials follows the required template.

    • ํ˜น์‹œ ์ œ๋ชฉ์— Human-in-the-Loop ์„ ์นด๋ฉœ ์ผ€์ด์Šค๋กœ ํ•˜์‹  ์ด์œ ๊ฐ€ ์žˆ๋‚˜์š”? ๋ชจ๋“ˆ ์ด๋ฆ„์ด ์•„๋‹ˆ๊ธฐ ๋•Œ๋ฌธ์— ์นด๋ฉœ์ผ€์ด์Šค, ๋ฐฑ์ฟผํ† ๊ฐ€ ์—†์–ด๋„ ๋  ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค!
  • Table of Contents(TOC) Links: All Table of Contents links work. ((Yes/No)

  • Image: Image filenames follow guidelines.(N/A)

  • *Imports: All import statements use the latest versions. Ensure "langchain-teddynote" is not used.

  • Code Execution: Code runs without errors.

  • Comments: {Write freely, ํ•œ๊ตญ์–ด ๊ธฐ์ˆ  ๊ฐ€๋Šฅ}

    • ์‹คํ–‰์—๋Š” ๋ฌธ์ œ๊ฐ€ ์—†๋Š”๋ฐ AgentExecutor ์˜

      • ๋งˆํฌ๋‹ค์šด ๋ธ”๋Ÿญ 2, 3๋ฒˆ ๋‹จ๊ณ„๊ฐ€ ๋ง์…ˆ์ด ์ž˜๋ชป๋˜์—ˆ์Šต๋‹ˆ๋‹ค. (235.7+32.2 = 269.9)

      • ์ฝ”๋“œ ๋ธ”๋Ÿญ์˜ ์‹คํ–‰์—์„œ ๋ง์…ˆ์ด ๋งˆํฌ๋‹ค์šด ๋‚ด์šฉ๊ณผ ๋‹ค๋ฅด๊ฒŒ ๋‹จ๊ณ„๋ณ„๋กœ ์ˆ˜ํ–‰๋˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค.

        • Tool Name: add_function, Execution Result: 235.7
        • Tool Name: add_function, Execution Result: 380.0
        • The result of 114.5 + 121.2 + 34.2 + 110.1 is 380.0.
      • (์ œ์•ˆ) ์ค‘๊ฐ„ ๋‹จ๊ณ„์—์„œ๋„ ๋งˆํฌ๋‹ค์šด ๋ธ”๋Ÿญ์˜ ๋‚ด์šฉ์ฒ˜๋Ÿผ ๊ณ„์‚ฐ์‹์ด ํ‘œ์‹œ๋˜๋ฉด ์ข‹์„ ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค!

        • (์˜ˆ : 1. 114.5 + 121.2 = 235.7)

์ž์„ธํ•œ ๊ฒ€ํ† ์™€ ์ œ์•ˆ ๊ฐ์‚ฌ๋“œ๋ฆฝ๋‹ˆ๋‹ค.

๋„ค ์ œ๋ชฉ ๋ถ€๋ถ„์€ ์˜๊ฒฌ ์ฃผ์‹ ๊ฒƒ์„ ๋ฐ˜์˜ํ•˜์—ฌ ์กฐ์ •ํ•˜์˜€์Šต๋‹ˆ๋‹ค~
๋‹ค๋งŒ ํŒŒ์ผ๋ช…๊ณผ๋„ ์—ฐ๋™์ด ํ•„์š”ํ•˜๊ธฐ ๋•Œ๋ฌธ์— proofread ์‹œ์ ์— ์ตœ์ข… ๋ฐ˜์˜ ํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค.
๋ฐฑ์ฟผํ† ๋Š” ์‚ญ์ œํ•˜๊ณ  ์ผ๋ฐ˜ ๊ตฌ๋ฌธ์ฒ˜๋Ÿผ ๋ฐ”๊พธ์—ˆ์Šต๋‹ˆ๋‹ค.

๋„ค ๋งˆํฌ๋‹ค์šด ์˜คํƒ€ ์ˆ˜์ •๋ฐ˜์˜ํ•˜์˜€์Šต๋‹ˆ๋‹ค.
๊ทธ๋ฆฌ๊ณ  ๊ณ„์‚ฐ์‹์ด ๋‹จ๊ณ„๋ณ„๋กœ ์ˆ˜ํ–‰๋˜์ง€ ์•Š๋Š” ์ด์œ ๋ฅผ ํ™•์ธํ•˜๋Š” ๊ณผ์ •์—์„œ
verbose=True๋กœ ์‹คํ–‰ํ•ด๋ณด๋‹ˆ
๊ณ„์‚ฐ์‹ 1 , 2, 3 ์ˆœ์ฐจ์ ์œผ๋กœ ์ˆ˜ํ–‰ํ•˜์ง€ ์•Š๊ณ 
1๋‹จ๊ณ„ 114.5 + 121.2 = 235.7, 34.2 + 110.1 = 144.3
2๋‹จ๊ณ„ 235.7 + 144.3 = 380.0
๋ฐฉ์‹์œผ๋กœ ์ˆ˜ํ–‰ํ•˜๋Š”๊ฒƒ์œผ๋กœ ํŒ๋‹จ๋˜์–ด ์•„๋ž˜์™€ ๊ฐ™์ด ์ถ”๊ฐ€ ๋‚ด์šฉ์„ ๊ธฐ์ž…ํ•ด๋‘์—ˆ์Šต๋‹ˆ๋‹ค. ^^
In practice, while calculating 114.5 + 121.2 = 235.7, 34.2 + 110.1 = 144.3 is also calculated simultaneously.

Then, the result of 235.7 + 144.3 = 380.0 is calculated as the second step.

This process can be observed when verbose=True is set in the AgentExecutor.

โ€ฆin-the-loop [Version] bug fix [Language] ENG [Package] langsmith,langchain,langchain_core,langchain_openai
@BaBetterB
Copy link
Contributor Author

"LANGCHAIN_PROJECT": "Iteration Function and Human-in-the-loop", ์—์„œ ๋ฒˆํ˜ธ๊ฐ€ ๋น ์ ธ ์žˆ๋Š” ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค.

title ๋ถ€๋ถ„์€ ์•„๋งˆ๋„ ๋ฒˆํ˜ธ ๊ธฐ์ž…ํ•˜์ง€ ์•Š๋Š”๊ฒƒ์œผ๋กœ ๊ฐ€์ด๋“œ ๋œ ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค
"LANGCHAIN_PROJECT": "Iteration-human-in-the-loop" ๋กœ ์ˆ˜์ •ํ•˜์˜€์Šต๋‹ˆ๋‹ค.

@Secludor
Copy link
Contributor

๐Ÿ–ฅ๏ธ OS: Win
โœ… 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.(N/A)
  • *Imports: All import statements use the latest versions. Ensure "langchain-teddynote" is not used.
  • Code Execution: Code runs without errors.
  • Comments: {Write freely, ํ•œ๊ตญ์–ด ๊ธฐ์ˆ  ๊ฐ€๋Šฅ}
    • ์•„ ๊ทธ๋Ÿฐ ์ด์œ ์˜€๊ตฐ์š”! ํ™•์ธํ•ด์ฃผ์…”์„œ ๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค :)
    • ์ด๋ฒˆ์ฃผ๋„ ๊ณ ์ƒํ•˜์…จ์Šต๋‹ˆ๋‹ค ๐Ÿ‘

Secludor
Secludor previously approved these changes Jan 17, 2025
@ranian963 ranian963 self-requested a review January 18, 2025 02:20
Copy link
Contributor

@ranian963 ranian963 left a 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.(N/A)
  • *Imports: All import statements use the latest versions. Ensure "langchain-teddynote" is not used.
  • Code Execution: Code runs without errors.
  • Comments: {Write freely, ํ•œ๊ตญ์–ด ๊ธฐ์ˆ  ๊ฐ€๋Šฅ}
    • ์ž˜ ๋™์ž‘ํ•˜๋Š” ๊ฒƒ์„ ํ™•์ธํ•˜์˜€์Šต๋‹ˆ๋‹ค.
    • ๋‹ค๋งŒ, ์ œ๊ฐ€ ๋งฅ๊ณผ ์ฝ”๋žฉ์—์„œ ํ™•์ธ์„ ํ•˜์˜€๋Š”๋ฐ ์ฝ”๋žฉ์—์„œ ํ™•์ธ์‹œ dotenv ๋ชจ๋“ˆ์ด ์—†๋‹ค๊ณ  ์—๋Ÿฌ๊ฐ€ ๋‚ฉ๋‹ˆ๋‹ค. langchain_community ํŒจํ‚ค์ง€๋‚˜ dotenv ํŒจํ‚ค์ง€๊ฐ€ ์ธ์Šคํ†จ ํŒจํ‚ค์ง€์— ์ถ”๊ฐ€๋˜์–ด์•ผ ํ• ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค.

โ€ฆin-the-loop [Version] bug fix-add import lib [Language] ENG [Package] langsmith,langchain,langchain_core,langchain_community,load_dotenv,langchain_openai
@BaBetterB
Copy link
Contributor Author

๐Ÿ–ฅ๏ธ 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.(N/A)

  • *Imports: All import statements use the latest versions. Ensure "langchain-teddynote" is not used.

  • Code Execution: Code runs without errors.

  • Comments: {Write freely, ํ•œ๊ตญ์–ด ๊ธฐ์ˆ  ๊ฐ€๋Šฅ}

    • ์ž˜ ๋™์ž‘ํ•˜๋Š” ๊ฒƒ์„ ํ™•์ธํ•˜์˜€์Šต๋‹ˆ๋‹ค.
    • ๋‹ค๋งŒ, ์ œ๊ฐ€ ๋งฅ๊ณผ ์ฝ”๋žฉ์—์„œ ํ™•์ธ์„ ํ•˜์˜€๋Š”๋ฐ ์ฝ”๋žฉ์—์„œ ํ™•์ธ์‹œ dotenv ๋ชจ๋“ˆ์ด ์—†๋‹ค๊ณ  ์—๋Ÿฌ๊ฐ€ ๋‚ฉ๋‹ˆ๋‹ค. langchain_community ํŒจํ‚ค์ง€๋‚˜ dotenv ํŒจํ‚ค์ง€๊ฐ€ ์ธ์Šคํ†จ ํŒจํ‚ค์ง€์— ์ถ”๊ฐ€๋˜์–ด์•ผ ํ• ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค.

@ranian963 ๋‹˜ ์ƒ์„ธํ•œ ๋ฆฌ๋ทฐ ๊ฐ์‚ฌ๋“œ๋ฆฝ๋‹ˆ๋‹ค.
package.install(
[
"langsmith",
"langchain",
"langchain_core",
"langchain_community",
"load_dotenv",
"langchain_openai",
],
verbose=False,
upgrade=False,
)์™€ ๊ฐ™์ด ์ˆ˜์ •ํ•˜์˜€์Šต๋‹ˆ๋‹ค~

Copy link
Contributor

@Secludor Secludor left a comment

Choose a reason for hiding this comment

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

๐Ÿ–ฅ๏ธ OS: Win
โœ… 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, ํ•œ๊ตญ์–ด ๊ธฐ์ˆ  ๊ฐ€๋Šฅ}
    • ์ด๋ฒˆ์ฃผ๋„ ๊ณ ์ƒํ•˜์…จ์Šต๋‹ˆ๋‹ค !!

@ranian963 ranian963 self-requested a review January 18, 2025 11:13
Copy link
Contributor

@ranian963 ranian963 left a 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: {Write freely, ํ•œ๊ตญ์–ด ๊ธฐ์ˆ  ๊ฐ€๋Šฅ}
    • ์ˆ˜์ • ํ™•์ธํ•˜์˜€์Šต๋‹ˆ๋‹ค.
    • ๊ณ ์ƒ ๋งŽ์œผ์…จ์Šต๋‹ˆ๋‹ค!

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

Successfully merging this pull request may close these issues.

5 participants