Skip to content

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

@bitsofinfo

Description

@bitsofinfo

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions