quarkus-langchain4j icon indicating copy to clipboard operation
quarkus-langchain4j copied to clipboard

docs, CompressingChatMemoryStore, SystemMessage w/ compressed summary is always dropped

Open bitsofinfo opened this issue 3 weeks ago • 3 comments

Hi, Trying to work w/ the example here: https://docs.quarkiverse.io/quarkus-langchain4j/dev/guide-semantic-compression.html

The CompressingChatMemoryStore, the behavior I'm seeing instead of what is described is every time the messages get compressed and appended onto the 1st SystemMessage.... the DefaultCommittableChatMemory calls clear() on the delegate which is MessageWindowChatMemory which then calls store.deleteMessages() which ultimately just wipes the "compressed system message" that contains the context data appended. It just gets replaced by a new clean "SystemMessage" from the annotation on the service or method being called.

bitsofinfo avatar Nov 18 '25 20:11 bitsofinfo