-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Create MongoDB chat memory implementation #2679
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
base: main
Are you sure you want to change the base?
Conversation
2d88035
to
76752cf
Compare
.../springframework/ai/model/chat/memory/mongodb/autoconfigure/MongoDbChatMemoryProperties.java
Outdated
Show resolved
Hide resolved
yield null; | ||
} | ||
}; | ||
} |
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.
indentation is not consistent, some files have 2 tabs and some have 4
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.
hmm, I ran spring-javaformat on it, seems like it doesn't take care of that :/
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.
whenever I change the formatting, javaformat brings me back to these versions.
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.
change the settings in your IDE
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.
hope it's better now ?
...pringframework/ai/model/chat/memory/mongodb/autoconfigure/MongoDbChatMemoryIndexCreator.java
Outdated
Show resolved
Hide resolved
...db/src/test/java/org/springframework/ai/chat/memory/mongodb/MongoDbChatMemoryConfigTest.java
Outdated
Show resolved
Hide resolved
...db/src/test/java/org/springframework/ai/chat/memory/mongodb/MongoDbChatMemoryConfigTest.java
Outdated
Show resolved
Hide resolved
...ongodb/src/test/java/org/springframework/ai/chat/memory/mongodb/MongoDbChatMemoryTestIT.java
Outdated
Show resolved
Hide resolved
8321e4d
to
14375f0
Compare
290cacf
to
78ad992
Compare
I feel like it could be better to have only Mongo instead of MongoDb in all classes names. It would follow the same logic as all classes in org.springframework.data.mongodb (MongoTemplate and not MongoDbTemplate) |
...-configurations/models/chat/memory/spring-ai-autoconfigure-model-chat-memory-mongodb/pom.xml
Outdated
Show resolved
Hide resolved
249380d
to
e483254
Compare
Good idea to keep it in sync. Implemented |
e483254
to
44d84c2
Compare
This will probably be reimplemented tomorrow atop of #2803 |
@deejay1 thanks so much for your contribution! We have just delivered some changes to the Upgrade Notes: https://docs.spring.io/spring-ai/reference/upgrade-notes.html#_chat_memory |
@ThomasVitale sure, I'll rewrite it of course! |
f3d3324
to
73ea405
Compare
@ThomasVitale ok, rewritten into a ChatMemoryRepository implementation |
68c5cfc
to
71e7584
Compare
@ThomasVitale any chances to get it in before 1.0.0? |
a5081dd
to
451790f
Compare
451790f
to
98b52eb
Compare
Updated to latest changes |
3cbddac
to
d491b5e
Compare
e50f396
to
434a168
Compare
@xchopin @eddumelendez Could you take a look again? |
Signed-off-by: Łukasz Jernaś <[email protected]>
434a168
to
38a333c
Compare
This is the initial implementation of a stock MongoDB chat memory which doesn't require MongoDB Atlas
Closes #2688