Skip to content

fix(memory): Replace the outdated manual way of creating the ChatMemoryRepository #3532

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

Cyanty
Copy link

@Cyanty Cyanty commented Jun 13, 2025

According to the documentation, some outdated methods have emerged from using Chat Memory:

  • Update the document information and replace the unavailable creation method of ChatMemoryRepository.
  • Increase the create function to create Neo4jChatMemoryRepository, this way to manually create the way (Instead of the way of "new Object").

@Cyanty Cyanty closed this Jun 13, 2025
@Cyanty Cyanty reopened this Jun 13, 2025
Cyanty added 3 commits June 13, 2025 17:44
…ryRepository

- Update the document information and replace the unavailable creation method of ChatMemoryRepository.
- Increase the create function to create Neo4jChatMemoryRepository, this way to manually create the way.

Signed-off-by: Caiyu Liu <[email protected]>
Signed-off-by: Cyanty <[email protected]>
…ryRepository

- Update the document information and replace the unavailable creation method of ChatMemoryRepository.
- Increase the create function to create Neo4jChatMemoryRepository, this way to manually create the way.

Signed-off-by: Caiyu Liu <[email protected]>
Signed-off-by: Cyanty <[email protected]>
…ryRepository

- Update the document information and replace the unavailable creation method of ChatMemoryRepository.
- Increase the create function to create Neo4jChatMemoryRepository, this way to manually create the way.

Signed-off-by: Cyanty <[email protected]>
@@ -56,6 +56,10 @@ public Neo4jChatMemoryRepository(Neo4jChatMemoryRepositoryConfig config) {
this.config = config;
}

public static Neo4jChatMemoryRepository create(Neo4jChatMemoryRepositoryConfig conf) {
Copy link
Contributor

Choose a reason for hiding this comment

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

IMO, wouldn't it be better to use Builder.builder()?

Copy link
Author

Choose a reason for hiding this comment

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

Ok, let me modify that

…ryRepository

- Update the document information and replace the unavailable creation method of ChatMemoryRepository.
- Increase the builder function to create Neo4jChatMemoryRepository, this way to manually create the way.

Signed-off-by: Cyanty <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants