大 JSON 派生数据全面流式化,修掉图谱与检索索引的 MemoryError 问题:848MB 知识图谱与 593MB 检索索引用 json.load 整体读, 在 24GB 机器上直接 MemoryError。MemoryError 的 str 是空字符串, 控制台只打出「读取知识图谱失败:」四个字,看起来像数据损坏。 新增 engine/streaming_json.py:增量 JSON 解析器(raw_decode + 分块补读 截断值补读重解)、逐条写、原子替换 knowledge_graph/graph_store.py:读写双流式,文件格式不变,旧文件照样能读 retrieval/knowledge_index.py:load / save 都走流式 GraphStore.summary() 改为接受已加载的图,不再重新读一遍全图 AGENTS.md 新增 3.8 硬约定:>100MB 的 JSON 派生数据必须流式读写 实测:图谱读回 105s / 保存 45s,往返顶点边数一致;检索索引加载 27.2s, 28449 关键词 / 18320 条去重条目(此前直接失败,检索处于静默降级)。
大 JSON 派生数据全面流式化,修掉图谱与检索索引的 MemoryError
问题:848MB 知识图谱与 593MB 检索索引用 json.load 整体读, 在 24GB 机器上直接 MemoryError。MemoryError 的 str 是空字符串, 控制台只打出「读取知识图谱失败:」四个字,看起来像数据损坏。
实测:图谱读回 105s / 保存 45s,往返顶点边数一致;检索索引加载 27.2s, 28449 关键词 / 18320 条去重条目(此前直接失败,检索处于静默降级)。
ComfyUI Learning Companion is an AI Agent Skill designed to help users learn, organize and understand ComfyUI workflows.
Unlike traditional ComfyUI automation tools, this project focuses on:
The goal is to transform a large collection of ComfyUI workflows into a structured learning knowledge base.
ComfyUI has thousands of workflows shared by the community.
However, many workflows contain repeated structures:
This project uses AI Agent technology to help users:
The project follows this architecture:
ComfyUI Workflows ↓ Workflow Analysis ↓ Knowledge Extraction ↓ Pattern Discovery ↓ Personal ComfyUI Knowledge Base ↓ AI Learning Assistant
Analyze:
Generate:
Automatically collect:
Discover repeated workflow structures:
Examples:
Build a personal knowledge system:
版本号与各阶段目标的唯一权威来源是 docs/roadmap.md,本节不再重复维护。
docs/roadmap.md
当前进度:v0.4 已完成,v0.5(Workflow Analysis Engine)进行中 —— 引擎七个模块 (解析 / 分析 / 诊断 / 上下文 / 回答生成 / 学习循环 / 索引)均已落地,尚未由统一入口串联。
实时开发状态与待办优先级见 AGENTS.md 第 9 节。
AGENTS.md
This project does not aim to replace ComfyUI users.
Its purpose is to help users understand and learn faster.
The AI Agent acts as:
A personal ComfyUI research assistant.
comfyui-learning-companion
版权所有:中国计算机学会技术支持:开源发展技术委员会 京ICP备13000930号-9 京公网安备 11010802047560号
ComfyUI Learning Companion
Introduction
ComfyUI Learning Companion is an AI Agent Skill designed to help users learn, organize and understand ComfyUI workflows.
Unlike traditional ComfyUI automation tools, this project focuses on:
The goal is to transform a large collection of ComfyUI workflows into a structured learning knowledge base.
Project Vision
ComfyUI has thousands of workflows shared by the community.
However, many workflows contain repeated structures:
This project uses AI Agent technology to help users:
Core Concept
The project follows this architecture:
Features
Workflow Understanding
Analyze:
Generate:
Workflow Organization
Automatically collect:
Pattern Learning
Discover repeated workflow structures:
Examples:
Knowledge Accumulation
Build a personal knowledge system:
Roadmap
版本号与各阶段目标的唯一权威来源是
docs/roadmap.md,本节不再重复维护。当前进度:v0.4 已完成,v0.5(Workflow Analysis Engine)进行中 —— 引擎七个模块 (解析 / 分析 / 诊断 / 上下文 / 回答生成 / 学习循环 / 索引)均已落地,尚未由统一入口串联。
实时开发状态与待办优先级见
AGENTS.md第 9 节。Project Philosophy
This project does not aim to replace ComfyUI users.
Its purpose is to help users understand and learn faster.
The AI Agent acts as: