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

Skip to content

Conversation

gyjong
Copy link
Contributor

@gyjong gyjong commented Dec 30, 2024

[Team] LangChain Open Tutorial 1-4 Team
[Title] Add ConversationBufferWindowMemory and TokenBufferMemory examples
[Version] initial
[Language] ENG
[Packages] langchain-opentutorial, langchain, langchain_core, langchain_community, langchain_text_splitters, langchain_openai

Implemented two memory examples with comprehensive documentation and structure:

  1. ConversationBufferWindowMemory:
  • Added window-based memory example with banking scenario
  • Implemented k=2 configuration for recent interaction retention
  • Included step-by-step conversation flow demonstration
  1. ConversationTokenBufferMemory:
  • Added token-based memory management example
  • Implemented examples with 50 and 150 token limits
  • Demonstrated machine tool installation conversation scenario

Common improvements:

  • Added proper environment setup instructions
  • Included author information and references
  • Enhanced documentation with clear section navigation
  • Implemented consistent tutorial structure
  • Added colab/academy integration badges

[Team] LangChain Open Tutorial 1-4 Team
[Title] Add ConversationBufferWindowMemory and TokenBufferMemory examples
[Version] initial
[Language] ENG
[Packages] langchain-opentutorial, langchain, langchain_core, langchain_community, langchain_text_splitters, langchain_openai

Implemented two memory examples with comprehensive documentation and structure:

1. ConversationBufferWindowMemory:
- Added window-based memory example with banking scenario
- Implemented k=2 configuration for recent interaction retention
- Included step-by-step conversation flow demonstration

2. ConversationTokenBufferMemory:
- Added token-based memory management example
- Implemented examples with 50 and 150 token limits
- Demonstrated machine tool installation conversation scenario

Common improvements:
- Added proper environment setup instructions
- Included author information and references
- Enhanced documentation with clear section navigation
- Implemented consistent tutorial structure
- Added colab/academy integration badges

# Related to LangChain Open Tutorial Documentation
[Team] LangChain Open Tutorial 1-4 Team
[Title] Add ConversationBufferWindowMemory and TokenBufferMemory examples
[Version] initial
[Language] ENG
[Packages] langchain-opentutorial, langchain, langchain_core, langchain_community, langchain_text_splitters, langchain_openai

Implemented two memory examples with comprehensive documentation and structure:

1. ConversationBufferWindowMemory:
- Added window-based memory example with banking scenario
- Implemented k=2 configuration for recent interaction retention
- Included step-by-step conversation flow demonstration

2. ConversationTokenBufferMemory:
- Added token-based memory management example
- Implemented examples with 50 and 150 token limits
- Demonstrated machine tool installation conversation scenario

Common improvements:
- Added proper environment setup instructions
- Included author information and references
- Enhanced documentation with clear section navigation
- Implemented consistent tutorial structure
- Added colab/academy integration badges

# Related to LangChain Open Tutorial Documentation
[Team] LangChain Open Tutorial 1-4 Team
[Title] Add ConversationBufferWindowMemory and TokenBufferMemory examples
[Version] initial
[Language] ENG
[Packages] langchain-opentutorial, langchain, langchain_core, langchain_community, langchain_text_splitters, langchain_openai

Implemented two memory examples with comprehensive documentation and structure:

1. ConversationBufferWindowMemory:
- Added window-based memory example with banking scenario
- Implemented k=2 configuration for recent interaction retention
- Included step-by-step conversation flow demonstration

2. ConversationTokenBufferMemory:
- Added token-based memory management example
- Implemented examples with 50 and 150 token limits
- Demonstrated machine tool installation conversation scenario

Common improvements:
- Added proper environment setup instructions
- Included author information and references
- Enhanced documentation with clear section navigation
- Implemented consistent tutorial structure
- Added colab/academy integration badges

# Related to LangChain Open Tutorial Documentation
@gyjong gyjong requested a review from Shinar12 December 30, 2024 00:44
@gyjong gyjong self-assigned this Dec 30, 2024
@teddylee777 teddylee777 requested review from teddylee777 and removed request for teddylee777 December 30, 2024 12:07
@teddylee777 teddylee777 changed the title PM님 리뷰 부탁 드립니다. Add ConversationBufferWindowMemory and TokenBufferMemory Dec 30, 2024
@gyjong gyjong requested a review from teddylee777 December 31, 2024 06:28
아래와 같은 수정사항을 반영해 두었습니다.

load_dotenv 부분에 불필요한 # 코멘트 들어가 있는 부분 제거
dotenv 위에 가이드라인 설명 추가
Copy link
Contributor

@teddylee777 teddylee777 left a comment

Choose a reason for hiding this comment

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

수정사항을 최근 commit 에 반영해 두었습니다. 확인해 주시면 감사하겠습니다.

602a583

@gyjong gyjong requested a review from harheem December 31, 2024 06:41
Copy link
Contributor

@YellowGangneng YellowGangneng left a comment

Choose a reason for hiding this comment

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

Windows 환경에서 전부 다 잘 작동하는 것 확인 완료되었습니다! 고생하셨습니다~!!😄

"cell_type": "code",
"execution_count": 8,
"metadata": {},
"outputs": [
Copy link
Contributor

Choose a reason for hiding this comment

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

한 가지 의견을 제안드리자면, 마지막에 마크다운 블럭 하나 추가해서 ConversationBufferWindowMemory를 선언할 때 k=2로 설정해 주었기 때문에 결과적으로 최근의 2개의 메세지만이 메모리에 저장된 것을 확인할 수 있다~라는 느낌의 멘트를 추가해주어 마무리를 해주면 더 완성도 높은 결과가 될 수 있지 않을까 싶습니다 :)

Copy link
Contributor

Choose a reason for hiding this comment

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

@YellowGangneng 좋은 의견 감사합니다!

@teddylee777 teddylee777 merged commit 631e2f5 into LangChain-OpenTutorial:main Dec 31, 2024
1 check passed
eunhhyy pushed a commit to eunhhyy/LangChain-OpenTutorial that referenced this pull request Jan 1, 2025
Add ConversationBufferWindowMemory and TokenBufferMemory
@gyjong gyjong changed the title Add ConversationBufferWindowMemory and TokenBufferMemory [E-4] 05-Memory / 01-ConversationBufferMemory, / 02-ConversationBufferWindowMemory Jan 4, 2025
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.

3 participants