-
Notifications
You must be signed in to change notification settings - Fork 62
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
Add a Redis based chat memory store extension #429
Conversation
Very nice! I'll review this carefully next week. |
I think actually that the code could be a lot simpler, but I'll have to look closely and try stuff out next week. |
I will push some changes to the PR shortly. |
I pushed an update that now makes this PR complete. However I have some comments about naming I would like @jmartisk to comment on as well |
...iverse/langchain4j/chatmemorystore/redis/deployment/RedisChatMemoryStoreBuildTimeConfig.java
Outdated
Show resolved
Hide resolved
.../quarkiverse/langchain4j/chatmemorystore/redis/deployment/RedisChatMemoryStoreProcessor.java
Outdated
Show resolved
Hide resolved
@geoand yeah naming is hard 😅 and thx for the updates on the PR ! |
🙏🏼 |
Looks nice! |
I don't think we should unless we really see in the real world that these two different concerns actually almost always met with the same Datastore.
+1 |
@cescoffier do you have any good suggestions on the naming of the Redis modules? |
It depends the point of view. As developer/maintainer: quarkus-langchain4j-memory-store-redis is better because it groups all memory stores together. From the user POV, I believe quarkus-langchain4j-redis-memory-store is easier to read, and once you select redis, the auto-completion will give you all the possibilities. For the memory store, I would drop the 'chat', which is superfluous. |
Good points! |
I am in favor of Clement's proposals, WDYT @jmartisk @sebastienblanc ? |
I agree with @cescoffier and for sure let's not merge it with the redis datastore because those are really 2 different things (like me I use pgvector for the datastore but Redis for the memory store) |
So, let's sum it up:
Is this it?
I think I'd prefer the "developer" PoV, typing |
💯 |
@cescoffier do you agree with this proposal? |
Should we decide on one of the naming conventions ? |
cc @cescoffier |
Just bumping this up ! (Really selfish agenda : I would like to release a
video/blogpost on this feature)
Le mar. 9 avr. 2024 à 15:46, Georgios Andrianakis ***@***.***>
a écrit :
… cc @cescoffier <https://github.com/cescoffier>
—
Reply to this email directly, view it on GitHub
<#429 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACR2HMBCK4EJ3FFAQHHIPTY4PWLPAVCNFSM6AAAAABFOM2UAOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANBVGIYTQNBYHA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Clement is on PTO, so let's wait until Monday before moving forward |
@cescoffier any preferences on the naming or should we move forward with this? |
Yes, let's use the "Developer" approach - it's inlined with what we do in Quarkus. |
@sebastienblanc would you like to update the PR? |
@geoand I've been messing up with my branches 😅 but yeah let me find some time today to try to fix it and do renaming. |
🙏🏼 |
330d5e4
to
62748df
Compare
extension renaming Co-Authored-By: Georgios Andrianakis <geoand@gmail.com>
62748df
to
e7c91f5
Compare
Renamed, Rebased and squashed commits ! Let me know if it is all good |
...rc/test/java/io/quarkiverse/langchain4j/memorystore/redis/test/RedisChatMemoryStoreTest.java
Outdated
Show resolved
Hide resolved
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.
Thanks!
🥳 🍾 |
Replace the default
InMemoryChatMemoryStore
by using Redis instead.I'm sure if I'm doing the best thing around the Codec since there is one in
quarkus-langchain4j-core
but I have no idea on how to use it.