LightMem icon indicating copy to clipboard operation
LightMem copied to clipboard

LightMemory.online_update is empty, making update="online" ineffective

Open DongYou1029 opened this issue 8 months ago • 2 comments

In LightMemory class, the online_update method currently does nothing:

def online_update(self, memory_list: List):
    return None

However, offline_update contains the actual logic for persisting memories (embedding + insertion). When config.update == "online", add_memory calls online_update and no memory is saved

DongYou1029 avatar Apr 01 '26 02:04 DongYou1029

Thanks for raising this! You're right, online_update is currently a placeholder. The update="online" mode is an interface we've reserved for future development, but hasn't been implemented yet due to resource constraints.

For now, please use update="offline", which gives you full access to all of LightMemory's features including embedding and memory persistence. We'll update the documentation to make this clearer and avoid confusion.

Xubqpanda avatar Apr 01 '26 11:04 Xubqpanda

hi, do you have any further question?

Xubqpanda avatar Apr 03 '26 06:04 Xubqpanda