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

Skip to content

Conversation

IHAGI-c
Copy link
Contributor

@IHAGI-c IHAGI-c commented Jan 5, 2025

{PR Message - Write freely, remove this bracket if unnecessary}

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

@IHAGI-c IHAGI-c self-assigned this Jan 6, 2025
@IHAGI-c IHAGI-c added the docs tutorial label Jan 6, 2025
@IHAGI-c IHAGI-c requested a review from Secludor January 6, 2025 13:00
@IHAGI-c IHAGI-c requested a review from kofsitho87 January 7, 2025 00:51
kofsitho87
kofsitho87 previously approved these changes Jan 7, 2025
Copy link
Contributor

@kofsitho87 kofsitho87 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 표기)
  • 기타 의견:
    전반적으로 튜토리얼의 내용이 잘 구성되어 있으며, 실제 사용 사례와 예제 코드가 적절히 포함되어 있습니다.
    결론적으로 제 의견은 approval 입니다.

다만 한가지 개인적인 의견으로는 목차가 평면적으로 나열되어 있어 연관된 내용들의 관계를 파악하기 어려운것 같습니다.
다음과 같은 2depth 목차로 구성하면 어떻지 조심스럽게 제안드려 봅니다.

- Overview

- Environment Setup

- Fallback for LLM API Errors
  - How to Handle LLM API Errors
  - Benefits of Mock Testing
  - Testing API Rate Limits with Fallback Models
  - Setting up LLM Fallback Configuration
  - Error Handling Configuration
  - If you specify an error that needs to be handled
  
- Fallback for Sequences
  - Multiple Model Fallbacks
  - Using Different Prompt Templates
  
- Fallback for Long Inputs
  - Automatic Model Switching Based on Context Length

@Secludor
Copy link
Contributor

Secludor commented Jan 7, 2025

[Review Checklist]

  • Review OS:

    • Windows
  • Template Rule 준수 여부:

    • Template Rule 가이드를 준수하였는가? (Check 표기)
  • Table of Contents 링크 확인:

    • Table of Contents의 링크가 원활하게 동작하는지 확인하였는가? (Check 표기)
  • 이미지 파일명 검토: (해당없음)

    • 이미지가 포함되어 있다면, 이미지의 파일명이 가이드를 준수하였는가? (Check 표기)
  • 최신 import 방식 사용 여부:

    • import 구문이 예전 legacy 방식이 아닌 최신 버전을 따르는가? (Check 표기)
  • 코드 동작 확인:

    • 모든 코드가 오류 없이 동작하는가? (Check 표기)
    • Warning 발생 시 코멘트에 적어주세요.
  • 제출 파일 확인:

    • 꼭 필요한 파일들만 제출되었는가?
      • 튜토리얼 외 설정 파일이나 다른 분이 작업한 파일이 포함되었는지 Files Changed에서 확인 부탁드립니다. (Check 표기)
  • 기타 의견:

    • Using Different Prompt Templates for Each Model 섹션 첫 셀에 import된 StrOutputParser가 파일에서 사용되지 않는 것 같습니다.
    • If you specify an error that needs to be handled 섹션의 볼드체 강조 기호와 마침표가 띄어쓰기가 되어야 하는 건지 확신이 없어 기타 의견에 적습니다! (동일 섹션의 마지막 문장에 the fallback won't be~ 에서 The fallbacks로 쓰지 않으신 건 의도하신 건가요??
    • (제안) Specifying multiple models in fallback sequentially 섹션에서 순차적인 체인의 실행이 출력에서 드러나면 더 좋을 것 같습니다!

@IHAGI-c IHAGI-c changed the title [C-3] 13-LangChain-Expression-Language / 11-Fallbacks [E-4] 13-LangChain-Expression-Language / 11-Fallbacks Jan 7, 2025
…iable setup, and refined similarity search examples. Updated execution counts and outputs for clarity.
…mproved comments for clarity, and modified the tenant creation process. Enhanced the output formatting for better readability and updated the model used in the ChatOpenAI instance.
…es section, enhancing the structure and clarity of the document. Included new sections in the table of contents for better navigation.
…ontained comprehensive instructions and examples for using the Weaviate vector store with LangChain. Updated the 11-Fallbacks.ipynb notebook to improve clarity by refining fallback logic explanations and removing unnecessary import statements.
@kofsitho87 kofsitho87 self-requested a review January 9, 2025 04:25
kofsitho87
kofsitho87 previously approved these changes Jan 9, 2025
Copy link
Contributor

@kofsitho87 kofsitho87 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 표기)
  • 기타 의견:
    특이사항 없습니다. 고생하셨습니다.

@Secludor
Copy link
Contributor

Secludor commented Jan 9, 2025

🖥️ 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, 한국어 기술 가능}
    • package.install에서 langchain -> langchain_core
    • 그 외 특이사항 없는 것으로 보입니다. 고생하셨습니다 :)

- langchain ->langchain_core
- black formatter is automatically applied
Copy link
Contributor

@kofsitho87 kofsitho87 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 표기)
  • 기타 의견:
    특이사항 없습니다. 고생하셨습니다.

@teddylee777 teddylee777 merged commit 9e7359f into LangChain-OpenTutorial:main Jan 10, 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
docs tutorial
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants