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

Skip to content

Conversation

ulysyszh
Copy link
Contributor

@ulysyszh ulysyszh commented Jan 2, 2025

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

ConversationEntityMemory Tutorial Implementation

[Title] 04_ConversationEntityMemory
[Version] initial
[Language] ENG
[Packages] langchain langchain-community langchain-opentutorial
[Title] ConversationEntityMemory
[Version] initial
[Language] ENG
[Package] langchain, langchain-community, langchain-openai

ConversationEntityMemory Tutorial Implementation
@ulysyszh ulysyszh requested review from gyjong and sungchul2 January 2, 2025 00:48
Copy link
Contributor

@sungchul2 sungchul2 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): Linux
  2. Template Rule 가이드를 준수 하였는가(YES/NO): Yes
  3. Table of Contents 의 링크가 원활하게 동작하는지 확인하였는가?(YES/NO): No
  • Example, Retrieving Entity Memory가 아래 내용에 없어서 실행이 안됩니다. 업데이트가 필요합니다.
  1. 이미지가 포함되어 있다면, 이미지의 파일명이 가이드를 준수하였는가?(YES/NO): Yes (이미지 없음)
  2. import 구문이 예전 legacy 방식이 아닌 최신 버전을 따르는가?(YES/NO):
  3. 모든 코드가 동작에 오류 없이 동작하는가? (만약, warning 발생시 코멘트에 적어주세요):
  • ConversationChain이 1.0에서 deprecated 예정이라는 warning이 뜨네요. 추후 RunnableWithMessageHistory를 사용하는 방식으로 수정되면 좋을 것 같습니다.
  1. 기타 의견:
  • 예시가 Online Bank Account Opening Conversation에 대한 내용이 아닌 것 같습니다. 예시가 추가되던지, 설명이 수정되면 좋을 것 같습니다.
  • Environment Setup에서 사용될 패키지와 예제에서 사용될 패키지를 구분하면 좋을 것 같습니다. 현재는 모든 패키지가 Environment Setup에서 import되고 있습니다.

Copy link
Contributor

@gyjong gyjong 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 : Mac
  2. Template Rule 가이드를 준수 하였는가 : YES
  3. Table of Contents 의 링크가 원활하게 동작하는지 확인하였는가? : YES
  4. 이미지가 포함되어 있다면, 이미지의 파일명이 가이드를 준수하였는가? : N/A(이미지 없음)
  5. import 구문이 예전 legacy 방식이 아닌 최신 버전을 따르는가? : YES
  6. 모든 코드가 동작에 오류 없이 동작하는가? : YES
  7. 기타 의견: 입력한 코멘트 사항 확인을 부탁 드립니다.

"id": "Pkf5OMA6kJax"
},
"source": [
"# ConversationBufferWindowMemory\n",
Copy link
Contributor

Choose a reason for hiding this comment

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

제목을 'ConversationEntityMemory'으로 해야 할것 같습니다.
수고 하십시오.

"source": [
"from langchain.prompts import PromptTemplate\n",
"\n",
"entity_memory_conversation_template = PromptTemplate(\n",
Copy link
Contributor

Choose a reason for hiding this comment

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

from langchain.memory.prompt import ENTITY_MEMORY_CONVERSATION_TEMPLATE 의 내용을 사용하는 방법도 좋을것 같습니다. 별도로 작성하신 entity_memory_conversation_template 내용도 간결하고 좋은것 같습니다.

[Title] ConversationEntityMemory
[Version] Enhance: Fix error
[Language] ENG
[Package] langchain, langchain-community, langchain-openai

ConversationEntityMemory Tutorial Implementation
Code Improvements & Error fixes reflecting feedback
@ulysyszh ulysyszh requested review from gyjong and sungchul2 January 2, 2025 14:38
@ulysyszh
Copy link
Contributor Author

ulysyszh commented Jan 2, 2025

두분 너무 감사합니다~ 알려주신 것을 반영해봤습니다.

피드백 주신 내용들과 문서 내 바로가기 수정했습니다. 감사합니다~
@ulysyszh
Copy link
Contributor Author

ulysyszh commented Jan 2, 2025

좋은 아침입니다. 테이블 링크 수정해서 한번 더 올려봅니다. 감사합니다~

Copy link
Contributor

@gyjong gyjong 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 : Mac
  2. Template Rule 가이드를 준수 하였는가 : YES
  3. Table of Contents 의 링크가 원활하게 동작하는지 확인하였는가? : YES
  4. 이미지가 포함되어 있다면, 이미지의 파일명이 가이드를 준수하였는가? : N/A(이미지 없음)
  5. import 구문이 예전 legacy 방식이 아닌 최신 버전을 따르는가? : YES
  6. 모든 코드가 동작에 오류 없이 동작하는가? : YES
  7. 기타 의견:
  • from langchain_community.chat_models import ChatOpenAI 부분 확인 부탁 드립니다.
  • llm 선언 부분 확인을 부탁 드립니다.
    감사 합니다.

},
"outputs": [],
"source": [
"llm = ChatOpenAI(temperature=0)\n",
Copy link
Contributor

Choose a reason for hiding this comment

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

141의 openai = ChatOpenAI(model="gpt-4o-mini", temperature=0) 대신 여기에 llm = ChatOpenAI(model="gpt-4o-mini", temperature=0) 이렇게 적용하면 명확할것 같습니다. 사용하고 싶은신 모델에 따라서 model="gpt-4o-mini" 부분 수정하면 될것 같습니다.

Copy link
Contributor

@sungchul2 sungchul2 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): Linux
  2. Template Rule 가이드를 준수 하였는가(YES/NO): Yes
  3. Table of Contents 의 링크가 원활하게 동작하는지 확인하였는가?(YES/NO): Yes
  4. 이미지가 포함되어 있다면, 이미지의 파일명이 가이드를 준수하였는가?(YES/NO): N/A
  5. import 구문이 예전 legacy 방식이 아닌 최신 버전을 따르는가?(YES/NO): Yes
  6. 모든 코드가 동작에 오류 없이 동작하는가? (만약, warning 발생시 코멘트에 적어주세요):
  7. 기타 의견:
  • 블록들 위치 및 내용을 수정해주시면 좋을 것 같습니다.

피드백 주신 내용을 바탕으로 표현을 명확하게 하고 코드블럭 순서를 바꾸었습니다~ 감사합니다!
@ulysyszh
Copy link
Contributor Author

ulysyszh commented Jan 3, 2025

피드백 참고해서 한번 더 수정했습니다~ 감사합니다

@ulysyszh ulysyszh requested review from gyjong and sungchul2 January 3, 2025 22:42
gyjong
gyjong previously approved these changes Jan 4, 2025
Copy link
Contributor

@gyjong gyjong 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 : Mac
  2. Template Rule 가이드를 준수 하였는가 : YES
  3. Table of Contents 의 링크가 원활하게 동작하는지 확인하였는가? : YES
  4. 이미지가 포함되어 있다면, 이미지의 파일명이 가이드를 준수하였는가? : N/A(이미지 없음)
  5. import 구문이 예전 legacy 방식이 아닌 최신 버전을 따르는가? : YES
  6. 모든 코드가 동작에 오류 없이 동작하는가? : YES
  7. 기타 의견: 변경사항 확인 하였습니다. 수고 하셨습니다.

Copy link
Contributor

@sungchul2 sungchul2 left a 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): Linux
Template Rule 가이드를 준수 하였는가(YES/NO): Yes
Table of Contents 의 링크가 원활하게 동작하는지 확인하였는가?(YES/NO): Yes
이미지가 포함되어 있다면, 이미지의 파일명이 가이드를 준수하였는가?(YES/NO): N/A
import 구문이 예전 legacy 방식이 아닌 최신 버전을 따르는가?(YES/NO): Yes
모든 코드가 동작에 오류 없이 동작하는가? (만약, warning 발생시 코멘트에 적어주세요): Yes
기타 의견:

@teddylee777 teddylee777 self-requested a review January 4, 2025 11:09
@teddylee777 teddylee777 merged commit 422102b into LangChain-OpenTutorial:main Jan 4, 2025
3 of 4 checks passed
Copy link
Contributor

@gyjong gyjong 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:

    • Windows / Mac / Linux (Mac)
  • Template Rule 준수 여부:

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

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

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

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

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

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

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