Error when run LightMem with Ollama (examples/run_lightmem_ollama.py)
When I run LightMem with the following command:
cd examples/ python run_lightmem_ollama.py
the following error occurs
`2026-03-18 09:13:44 - LightMemory - INFO - [add_memory_20260318_083623_732078] Starting metadata generation 0%| | 0/10 [37:55<?, ?it/s]
Traceback (most recent call last):
File "/xxx/LightMem/examples/run_lightmem_ollama.py", line 281, in
It seems that only the meta_text_extract function in OpenaiManager supports the following parameter input (extract_list, messages_use,topic_id_mapping,extraction_mode,custom_prompts), while OllamaManager (and VllmManager) have only three parameters: (system_prompt, extract_list, messages_use). How should OllamaManager be correctly used?
Thanks for reporting this.
This has been fixed in our latest update: OllamaManager (and other non-OpenAI managers) are now aligned with the OpenAI-style extraction interface.
hi do you have any further questions?
Thank you for the quick reply! I don't have any other questions for now.
hi do you have any further questions?