Skip to content

The cost of reading and writing data is a bit high for the ChatMemoryRepository API #427

@johnyannj

Description

@johnyannj

Please do a quick search on GitHub issues first, the feature you are about to request might have already been requested.

Expected Behavior

Memory can be incrementally forgotten and added

Current Behavior

ChatMemoryRepository API:

Memory can only extract and overwrite as a whole.

	List<Message> findByConversationId(String conversationId);

	/**
	 * Replaces all the existing messages for the given conversation ID with the provided
	 * messages.
	 */
	void saveAll(String conversationId, List<Message> messages);

	void deleteByConversationId(String conversationId);

Context

Adding incremental operations?

For example:

void refresh(String conversationId, List<Message> deletes, List<Message> adds)

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