Skip to content

fix(redis): Implement ChatMemoryRepository interface and fix test connectivity #2991

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 1 commit into
base: redis/semantic-caching-advisor-and-chat-memory
Choose a base branch
from

Conversation

bsbodden
Copy link

@bsbodden bsbodden commented May 4, 2025

@markpollack cc/ @joshlong @ThomasVitale @tzolov with the help of Josh I made some modifications requested for the new changes upstream and the issues with the TestContainers connectivity. I will follow up with an addition to break the functionality into separate modules and do some more clean up. But hopefully this PR will allow you to continue the review. Thanks!

Refactor Redis-based chat memory implementation to:

Thank you for taking time to contribute this pull request!
You might have already read the [contributor guide][1], but as a reminder, please make sure to:

  • Sign the contributor license agreement
  • Rebase your changes on the latest main branch and squash your commits
  • Add/Update unit tests as needed
  • Run a build and make sure all tests pass prior to submission

@bsbodden bsbodden force-pushed the redis/pr-rebase-fixes branch 2 times, most recently from 1ca8cc6 to fa30ff5 Compare May 4, 2025 19:36
…nectivity

  Refactor Redis-based chat memory implementation to:
  - Implement ChatMemoryRepository interface as requested in PR spring-projects#2295
  - Fix Redis connection issues in integration tests reported in PR spring-projects#2982
  - Optimize conversation ID lookup with server-side deduplication
  - Add configurable result limits to avoid Redis cursor size limitations
  - Implement robust fallback mechanism for query failures
  - Enhance support for metadata, toolcalls, and media in messages
  - Add comprehensive test coverage with reliable Redis connections

Signed-off-by: Brian Sam-Bodden <[email protected]>
@bsbodden
Copy link
Author

bsbodden commented May 7, 2025

@markpollack I am almost there with a modularized version of the PR... a few more hours

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants