-
Notifications
You must be signed in to change notification settings - Fork 282
[E-4] 05-MEMORY / 05-ConversationKGMemory #74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
[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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[Review]
- Review OS(Windows/Mac/Linux): MAC
- Template Rule 가이드를 준수 하였는가(YE S/NO): YES
- Table of Contents 의 링크가 원활하게 동작하는지 확인하였는가?(YES/NO): YES
- 이미지가 포함되어 있다면, 이미지의 파일명이 가이드를 준수하였는가?(YES/NO): N/A
- import 구문이 예전 legacy 방식이 아닌 최신 버전을 따르는가?(YES/NO): YES
- 모든 코드가 동작에 오류 없이 동작하는가? (만약, warning 발생시 코멘트에 적어주세요):
conversation_with_kg = ConversationChain(
llm=llm, prompt=prompt, memory=ConversationKGMemory(llm=llm)
) 에서 The classConversationChain
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.
@jinucho 기존 ConversationChain 활용 섹션 뒤에 LCEL을 통해 해당 체인을 구현, 활용하는 섹션을 추가했습니다! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[Review]
- Review OS(Windows/Mac/Linux): MAC
- Template Rule 가이드를 준수 하였는가(YE S/NO): YES
- Table of Contents 의 링크가 원활하게 동작하는지 확인하였는가?(YES/NO): YES
- 이미지가 포함되어 있다면, 이미지의 파일명이 가이드를 준수하였는가?(YES/NO): N/A
- import 구문이 예전 legacy 방식이 아닌 최신 버전을 따르는가?(YES/NO): YES
- 모든 코드가 동작에 오류 없이 동작하는가? (만약, warning 발생시 코멘트에 적어주세요) Yes
ConversationChain deprecated 경고에 따른 추가 코드를 작성 해주셨습니다.
There was a problem hiding this 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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
감사합니다~
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[Review]
- Review OS(Windows/Mac/Linux): MAC
- Template Rule 가이드를 준수 하였는가(YE S/NO): YES
- Table of Contents 의 링크가 원활하게 동작하는지 확인하였는가?(YES/NO): YES
- 이미지가 포함되어 있다면, 이미지의 파일명이 가이드를 준수하였는가?(YES/NO): N/A
- import 구문이 예전 legacy 방식이 아닌 최신 버전을 따르는가?(YES/NO): YES
- 모든 코드가 동작에 오류 없이 동작하는가? (만약, warning 발생시 코멘트에 적어주세요) Yes
[Title] ConversationKGMemory
[Version] initial
[Language] ENG
[Package] langchain, langchain-community, langchain-openai
ConversationKGMemory Tutorial Implementation