jarvis memory index -b hybrid 失败,且混合后端的密集部分永远不会保留
作者: wagnerglorenz创建于 2026年10月1日更新于 2026年10月1日
组件: src/openjarvis/cli/memory_cmd.py::_get_backend, tools/storage/hybrid.py, tools/storage/dense.py
_get_backend 仅将 db_path 传递给 sqlite;其他所有键都通过 MemoryRegistry.create(key) 进行处理,没有参数,因此 jarvis memory index <path> -b hybrid 会引发 HybridMemory.__init__() 缺少 2 个必需的关键字参数: 'sparse' 和 'dense'。此外,DenseMemory 文档中提到 "没有持久性",因此即使通过手动构建,密集索引也会在进程之间丢失(jarvis memory index 后跟着 jarvis serve)。
内容来源: open-jarvis/OpenJarvis