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

Skip to content

Conversation

Secludor
Copy link
Contributor

@Secludor Secludor commented Jan 1, 2025

[Title] ConversationKGMemory
[Version] initial
[Language] ENG
[Package] langchain, langchain-community, langchain-openai

ConversationKGMemory Tutorial Implementation

  • Introducing ConversationKGMemory to manage conversation entities and relationships in graph structure
  • Demonstrated key features: save_context, get_current_entities, get_knowledge_triplets, load_memory_variables
  • Showed practical example with a conversation scenario about a new employee
  • Provided integration example with ConversationChain

[Title] ConversationKGMemory
[Version] initial
[Language] ENG
[Package] langchain, langchain-community, langchain-openai

ConversationKGMemory Tutorial Implementation
- Introducing ConversationKGMemory to manage conversation entities and relationships in graph structure
- Demonstrated key features: save_context, get_current_entities, get_knowledge_triplets, load_memory_variables
- Showed practical example with a conversation scenario about a new employee
- Provided integration example with ConversationChain
@Secludor Secludor requested review from ulysyszh and jinucho January 1, 2025 19:53
jinucho
jinucho previously approved these changes Jan 1, 2025
Copy link
Contributor

@jinucho jinucho left a comment

Choose a reason for hiding this comment

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

[Review]

  1. Review OS(Windows/Mac/Linux): MAC
  2. Template Rule 가이드를 준수 하였는가(YE S/NO): YES
  3. Table of Contents 의 링크가 원활하게 동작하는지 확인하였는가?(YES/NO): YES
  4. 이미지가 포함되어 있다면, 이미지의 파일명이 가이드를 준수하였는가?(YES/NO): N/A
  5. import 구문이 예전 legacy 방식이 아닌 최신 버전을 따르는가?(YES/NO): YES
  6. 모든 코드가 동작에 오류 없이 동작하는가? (만약, warning 발생시 코멘트에 적어주세요):
    conversation_with_kg = ConversationChain(
    llm=llm, prompt=prompt, memory=ConversationKGMemory(llm=llm)
    ) 에서 The class ConversationChain was deprecated in LangChain 0.2.7 and will be removed in 1.0. 경고 발생

Add new section demonstrating KG Memory implementation using LCEL (LangChain Expression Language) as ConversationChain will be removed in LangChain 1.0. The new section:

- Preserves existing ConversationChain example for reference
- Adds modern implementation using LCEL
- Provides same functionality with future-proof approach

This addition helps users transition from deprecated ConversationChain to LCEL-based implementation.
@Secludor
Copy link
Contributor Author

Secludor commented Jan 2, 2025

@jinucho 기존 ConversationChain 활용 섹션 뒤에 LCEL을 통해 해당 체인을 구현, 활용하는 섹션을 추가했습니다!

@Secludor Secludor requested a review from jinucho January 2, 2025 01:23
jinucho
jinucho previously approved these changes Jan 2, 2025
Copy link
Contributor

@jinucho jinucho left a comment

Choose a reason for hiding this comment

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

[Review]

  1. Review OS(Windows/Mac/Linux): MAC
  2. Template Rule 가이드를 준수 하였는가(YE S/NO): YES
  3. Table of Contents 의 링크가 원활하게 동작하는지 확인하였는가?(YES/NO): YES
  4. 이미지가 포함되어 있다면, 이미지의 파일명이 가이드를 준수하였는가?(YES/NO): N/A
  5. import 구문이 예전 legacy 방식이 아닌 최신 버전을 따르는가?(YES/NO): YES
  6. 모든 코드가 동작에 오류 없이 동작하는가? (만약, warning 발생시 코멘트에 적어주세요) Yes
    ConversationChain deprecated 경고에 따른 추가 코드를 작성 해주셨습니다.

Copy link
Contributor

@ulysyszh ulysyszh left a comment

Choose a reason for hiding this comment

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

고생 많으셨습니다~

Review OS(Windows/Mac/Linux): Linux
Template Rule 가이드를 준수 하였는가(YE S/NO): YES
Table of Contents 의 링크가 원활하게 동작하는지 확인하였는가?(YES/NO): YES
이미지가 포함되어 있다면, 이미지의 파일명이 가이드를 준수하였는가?(YES/NO): N/A
import 구문이 예전 legacy 방식이 아닌 최신 버전을 따르는가?(YES/NO): NO
모든 코드가 동작에 오류 없이 동작하는가? YES

from langchain_core.prompts import PromptTemplate

…de cell

- The tutorial now provides clearer guidance on how each method works and what to expect from their execution.
- Added the explanation of get_knowledge_triplets
Copy link
Contributor

@ulysyszh ulysyszh left a comment

Choose a reason for hiding this comment

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

감사합니다~

Copy link
Contributor

@jinucho jinucho left a comment

Choose a reason for hiding this comment

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

[Review]

  1. Review OS(Windows/Mac/Linux): MAC
  2. Template Rule 가이드를 준수 하였는가(YE S/NO): YES
  3. Table of Contents 의 링크가 원활하게 동작하는지 확인하였는가?(YES/NO): YES
  4. 이미지가 포함되어 있다면, 이미지의 파일명이 가이드를 준수하였는가?(YES/NO): N/A
  5. import 구문이 예전 legacy 방식이 아닌 최신 버전을 따르는가?(YES/NO): YES
  6. 모든 코드가 동작에 오류 없이 동작하는가? (만약, warning 발생시 코멘트에 적어주세요) Yes

@teddylee777 teddylee777 merged commit a0a206c into LangChain-OpenTutorial:main Jan 3, 2025
1 of 4 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