Idea: long-term memory for the agent across restarts
#1
by Corbenic - opened
I like how Alfred in this AgenticRAG Space is a smolagents CodeAgent talking to a local Ollama model (qwen2:7b), with tools for weather, Hub stats, search and so on. It is meant for a local Ollama server, so when that process or the Space restart, Alfred lose the running context and must recompute the tool list and the system prompt. Galahad is long-term memory for the agent, it save and restore the KV cache byte-for-byte across restarts so the agent skip recomputation and keep memory between sessions. It can keep 50M tokens on disk, and we also get faster first token on all 7 NVIDIA GPU types tested. Would you be open to try it with Ollama, or I can help integrating? https://github.com/corbenicai/galahad
Sietse