MemOS icon indicating copy to clipboard operation
MemOS copied to clipboard

feat: local插件是否可以添加pg的支持

Open abel-liugz opened this issue 8 months ago • 1 comments

Pre-submission checklist | 提交前检查

  • [x] I have searched existing issues and this hasn't been mentioned before | 我已搜索现有问题,确认此问题尚未被提及
  • [x] I have read the project documentation and confirmed this issue doesn't already exist | 我已阅读项目文档并确认此问题尚未存在
  • [x] This issue is specific to MemOS and not a general software issue | 该问题是针对 MemOS 的,而不是一般软件问题

Problem Statement | 问题陈述

local插件是否可以添加pg的支持

Willingness to Implement | 实现意愿

  • [ ] I'm willing to implement this myself | 我愿意自己解决
  • [ ] I would like someone else to implement this | 我希望其他人来解决

abel-liugz avatar Mar 27 '26 02:03 abel-liugz

感谢提议。经过团队讨论,目前没有给 local 插件加 pg 后端的规划,准备关掉这条 issue,背景说明如下。

memos-local-plugin 的定位是单机、零依赖、同步——core/storage/ 整个围绕 better-sqlite3 设计,深度依赖 SQLite 方言(STRICT 表、FTS5 + trigram 分词、json_valid() CHECK、BLOB 存 float32 向量 + JS 暴力余弦)。换 pg 等于重做 schema、全文检索、向量、事务 facade 四块,与 zero-deps 定位冲突。

服务级 DB 的诉求建议走这两条路径:

多 agent 共享 / 运维统一 / 服务级持久化 → MemOS Cloud pgvector / 图数据库 / 大规模检索 → 主仓 memos 已在 src/memos/graph_dbs/postgres.py 支持 postgres,向量库走 qdrant / milvus

shinetata avatar Jul 06 '26 09:07 shinetata