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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# 更新日志
|
| 2 |
+
|
| 3 |
+
所有重要的项目更新都会在此记录。
|
| 4 |
+
|
| 5 |
+
格式遵循 [Keep a Changelog](https://keepachangelog.com/zh-CN/1.0.0/) 标准。
|
| 6 |
+
|
| 7 |
+
---
|
| 8 |
+
|
| 9 |
+
## [v2.5.0] - 2026-05-05
|
| 10 |
+
|
| 11 |
+
> **AGI Continual Learning Loop: Four-Layer Closed-Loop Architecture**
|
| 12 |
+
|
| 13 |
+
### Major Features
|
| 14 |
+
|
| 15 |
+
#### Four-Layer Continual Learning Loop (AGI-level)
|
| 16 |
+
- **Layer 1 — Perception**: Multi-provider LLM energy inference (DeepSeek → MiniMax → Ollama), $\\ge$85% accuracy target
|
| 17 |
+
- **Layer 2 — Distillation**: `distill_patterns()` for energy-based memory clustering + `extract_rules()` for rule abstraction with confidence scoring
|
| 18 |
+
- **Layer 3 — Routing**: `route_memory()` for energy-affinity-based cluster routing + `get_importance_scores()` for dynamic priority
|
| 19 |
+
- **Layer 4 — Reflection**: `reflect_and_optimize()` for 4-dimension health audit + `evolution_pipeline()` for full closed-loop execution
|
| 20 |
+
|
| 21 |
+
#### Energy System Full Activation (7000-line engine)
|
| 22 |
+
- **EnergyBus**: 3-layer propagation network with recursive decay and prior/posterior weight fusion
|
| 23 |
+
- **CategoryCausalEngine**: `query_with_energy_boost()` — energy-affinity re-ranking of search results
|
| 24 |
+
- **UnifiedInfoFactory**: Integrated temporal-category-energy label generation with extended attributes
|
| 25 |
+
- **Energy Ecology**: `analyze_memory_ecology()` — balance analysis, pattern detection, and actionable suggestions
|
| 26 |
+
|
| 27 |
+
#### Three-Dimensional Calculus Mapping
|
| 28 |
+
- `resolve_trigram_to_semantic()`: 3D weighted voting (NAJIA/PRIOR/POST) with integration/differentiation/gradient mechanics
|
| 29 |
+
- Achieves 100% mapping accuracy (8/8, up from 25%), 64-hexagram full correctness
|
| 30 |
+
|
| 31 |
+
#### Auto Energy Relationship Discovery
|
| 32 |
+
- `link_by_energy()`: Create energy-weighted links between memories with affinity calculation
|
| 33 |
+
- `auto_link_by_energy()`: Full-scan energy affinity discovery + automatic link creation
|
| 34 |
+
|
| 35 |
+
### Bug Fixes
|
| 36 |
+
- **Critical**: English/Chinese naming incompatibility fixed — energy boost now works correctly (was identity 1.0x due to key mismatch)
|
| 37 |
+
- **Critical**: `TrigramType` / `SemanticType` index mismatch fixed via 3D calculus resolver (was 25%, now 100%)
|
| 38 |
+
- query cache key now includes `energy_filter` and `time_range`
|
| 39 |
+
- `query_multihop()` and `query_multihop_spacetime()` now support `energy_filter` parameter
|
| 40 |
+
- All SDK-layer Chinese defaults replaced with English (`spatial_rag.py`, `multimodal.py`)
|
| 41 |
+
- `num_predict` increased from 5 to 20 for Ollama inference, `raw=True` for thinking models
|
| 42 |
+
|
| 43 |
+
### Security
|
| 44 |
+
- Removed deprecated test files with sensitive architecture references
|
| 45 |
+
- Replaced `wuxing_` node prefix with `element_` in EnergyBus
|
| 46 |
+
- Sanitized public documentation (USER_GUIDE, RELEASE_CHECKLIST, client.py, demo, test_installed)
|
| 47 |
+
- Internal architecture docs secured in non-git-tracked directory
|
| 48 |
+
|
| 49 |
+
### Performance
|
| 50 |
+
- 33/33 regression tests passing (P0-P3 + L1-L4)
|
| 51 |
+
- Write throughput: comparable to v2.0.1 baseline
|
| 52 |
+
- Query latency: no regression from v2.0.1
|
| 53 |
+
- Energy inference: multi-provider fallback chain with caching
|
| 54 |
+
|
| 55 |
+
---
|
| 56 |
+
|
| 57 |
+
## [v2.0.1] - 2026-05-04
|
| 58 |
+
|
| 59 |
+
> **记忆生命周期 + REST API 完善**
|
| 60 |
+
|
| 61 |
+
### 新增功能
|
| 62 |
+
|
| 63 |
+
#### 记忆生命周期管理
|
| 64 |
+
- **forget(memory_id)**: 删除单条记忆
|
| 65 |
+
- **decay(days)**: 时间衰减,自动归档超过指定天数的旧记忆
|
| 66 |
+
- **summarize(topic)**: 将多条记忆压缩为单条摘要
|
| 67 |
+
- **conflict_resolution()**: 检测矛盾记忆(完成/未完成、是/否等)
|
| 68 |
+
- **clear()**: 清空所有记忆
|
| 69 |
+
|
| 70 |
+
#### REST API Server
|
| 71 |
+
- **FastAPI wrapper**: 轻量级 REST API,一行启动
|
| 72 |
+
- **完整 CRUD**: POST/GET/DELETE memories
|
| 73 |
+
- **多跳推理端点**: /query/multihop
|
| 74 |
+
- **生命周期端点**: /memories/decay, /memories/summarize, /memories/conflicts
|
| 75 |
+
- **交互式文档**: http://localhost:8000/docs
|
| 76 |
+
|
| 77 |
+
```bash
|
| 78 |
+
# 启动 REST API
|
| 79 |
+
pip install su-memory[api]
|
| 80 |
+
uvicorn su_memory.api.server:app --reload --port 8000
|
| 81 |
+
```
|
| 82 |
+
|
| 83 |
+
### 安装选项更新
|
| 84 |
+
|
| 85 |
+
| 选项 | 命令 | 包含 |
|
| 86 |
+
|------|------|------|
|
| 87 |
+
| REST API | `pip install su-memory[api]` | FastAPI + uvicorn |
|
| 88 |
+
|
| 89 |
+
---
|
| 90 |
+
|
| 91 |
+
## [v1.7.0] - 2026-04-26
|
| 92 |
+
|
| 93 |
+
> **生态扩展版本:插件系统 + 多语言SDK + 本地存储 + AI框架集成**
|
| 94 |
+
|
| 95 |
+
本次更新完成了v1.7.0生态扩展目标,实现了插件系统、多语言SDK、本地存储管理和AI框架集成。
|
| 96 |
+
|
| 97 |
+
### 用户体验优化
|
| 98 |
+
|
| 99 |
+
- **API命名统一**: `query_multi_hop` → `query_multihop` (全代码库7处)
|
| 100 |
+
- **环境检测优化**: 警告只提示一次,避免重复打扰
|
| 101 |
+
- **README故事化**: 突出"一行代码"价值,15秒讲清核心价值
|
| 102 |
+
- **多跳推理默认模式**: fusion_mode改为"hybrid"(向量60%+图谱40%),更好展开多跳推理
|
| 103 |
+
- **开箱即用多跳推理**: pip install su-memory 默认集成FAISS + sentence-transformers
|
| 104 |
+
- **异步批量写入**: add_batch()同步10万条/秒,aadd_batch()异步版本
|
| 105 |
+
- **异步流式查询**: astream_query()异步生成器
|
| 106 |
+
|
| 107 |
+
### 新增功能
|
| 108 |
+
|
| 109 |
+
#### W25-W26 插件系统
|
| 110 |
+
- **PluginInterface**: 标准化插件抽象接口
|
| 111 |
+
- **PluginRegistry**: 线程安全的插件注册表(单例模式)
|
| 112 |
+
- **SandboxedExecutor**: 沙箱执行器,支持超时控制和异常隔离
|
| 113 |
+
- **官方插件示例**:
|
| 114 |
+
- TextEmbeddingPlugin: 文本嵌入插件
|
| 115 |
+
- RerankPlugin: 检索结果重排序插件
|
| 116 |
+
- MonitorPlugin: 性能监控插件
|
| 117 |
+
|
| 118 |
+
#### W27-W28 多语言SDK
|
| 119 |
+
- **TypeScript SDK**: 完整类型定义,LangChain Retriever/Tool支持
|
| 120 |
+
- **JavaScript SDK**: CommonJS兼容,Node.js 18+支持
|
| 121 |
+
- **Python API Server**: RESTful HTTP服务
|
| 122 |
+
|
| 123 |
+
#### W29-W30 本地数据管理
|
| 124 |
+
- **SQLiteBackend**: 本地SQLite存储后端,支持向量查询
|
| 125 |
+
- **AutoCompressor**: LZ4自动压缩(175:1压缩比)
|
| 126 |
+
- **BackupManager**: 定时备份与恢复
|
| 127 |
+
- **DataExporter**: JSON/CSV/Markdown导出
|
| 128 |
+
|
| 129 |
+
#### W31-W32 AI框架集成
|
| 130 |
+
- **LangChain Adapter**: SuMemoryRetriever, SuMemoryTool, SuMemoryMemory
|
| 131 |
+
- **LlamaIndex Connector**: SuMemoryIndex向量索引
|
| 132 |
+
- **CLI工具**: 13个命令(init, add, query, search, delete, stats, export, import, backup, restore, plugin)
|
| 133 |
+
|
| 134 |
+
### 性能优化
|
| 135 |
+
|
| 136 |
+
| 组件 | 优化项 | 性能提升 |
|
| 137 |
+
|------|--------|----------|
|
| 138 |
+
| PluginRegistry | O(1)字典索引 | ~100x |
|
| 139 |
+
| PluginRegistry | 读锁分离 | 并发↑ |
|
| 140 |
+
| SQLiteBackend | 查询缓存LRU | 缓存命中→O(1) |
|
| 141 |
+
| SandboxedExecutor | 结果缓存FIFO | 99.9%命中 |
|
| 142 |
+
|
| 143 |
+
### 技术架构
|
| 144 |
+
|
| 145 |
+
```
|
| 146 |
+
su-memory SDK v1.7.0
|
| 147 |
+
├── 插件系统 (W25-W26)
|
| 148 |
+
│ ├── PluginInterface
|
| 149 |
+
│ ├── PluginRegistry
|
| 150 |
+
│ └── SandboxedExecutor
|
| 151 |
+
├── 多语言SDK (W27-W28)
|
| 152 |
+
│ ├── TypeScript SDK
|
| 153 |
+
│ ├── JavaScript SDK
|
| 154 |
+
│ └── Python API Server
|
| 155 |
+
├── 本地存储 (W29-W30)
|
| 156 |
+
│ ├── SQLiteBackend
|
| 157 |
+
│ ├── AutoCompressor
|
| 158 |
+
│ └── BackupManager
|
| 159 |
+
├── AI框架集成 (W31-W32)
|
| 160 |
+
│ ├── LangChain Adapter
|
| 161 |
+
│ ├── LlamaIndex Connector
|
| 162 |
+
│ └── CLI Toolchain
|
| 163 |
+
└── 核心模块
|
| 164 |
+
├── VectorGraphRAG
|
| 165 |
+
├── SpacetimeIndex
|
| 166 |
+
└── AdaptiveEngine
|
| 167 |
+
```
|
| 168 |
+
|
| 169 |
+
### 测试结果
|
| 170 |
+
|
| 171 |
+
- 插件系统测试: ✅ 44/44 通过 (100%)
|
| 172 |
+
- 存储系统测试: ✅ 33/33 通过 (100%)
|
| 173 |
+
- CLI工具测试: ✅ 29/29 通过 (100%)
|
| 174 |
+
- 集成测试: ✅ 全部通过
|
| 175 |
+
- **总通过率: 100%**
|
| 176 |
+
|
| 177 |
+
### 代码统计
|
| 178 |
+
|
| 179 |
+
| 模块 | 文件数 | 说明 |
|
| 180 |
+
|------|--------|------|
|
| 181 |
+
| 插件系统 | 7个 | ~3500行 |
|
| 182 |
+
| 多语言SDK | 15个 | ~1500行 |
|
| 183 |
+
| 存储系统 | 5个 | ~1500行 |
|
| 184 |
+
| CLI工具 | 3个 | ~1000行 |
|
| 185 |
+
| 集成适配 | 4个 | 完善 |
|
| 186 |
+
| **总计** | **~7500行** | |
|
| 187 |
+
|
| 188 |
+
### 文档更新
|
| 189 |
+
|
| 190 |
+
- docs/ROADMAP_v1.5.0_v1.7.0.md - 完整迭代规划
|
| 191 |
+
- docs/TEST_REPORT_v1.7.0.md - 测试报告
|
| 192 |
+
- examples/demo_v1.7_features.py - 新功能演示
|
| 193 |
+
|
| 194 |
+
---
|
| 195 |
+
|
| 196 |
+
## [v1.4.0] - 2026-04-25
|
| 197 |
+
|
| 198 |
+
> **重大版本更新:四位一体架构 + 多模态 + 三维世界模型**
|
| 199 |
+
|
| 200 |
+
本次更新完成了基于VectorGraphRAG + DeepSeek-V4的前沿技术升级,实现了多跳推理引擎、时空索引、多模态嵌入和三维世界模型的完整技术栈。
|
| 201 |
+
|
| 202 |
+
### 新增功能
|
| 203 |
+
|
| 204 |
+
#### P0 关键功能
|
| 205 |
+
- **VectorGraphRAG多跳推理引擎**: 纯向量实现的多跳推理,无需Neo4j图库
|
| 206 |
+
- `_semantic_search()` 语义种子检索
|
| 207 |
+
- `_find_neighbors()` 邻居发现
|
| 208 |
+
- `multi_hop_query()` BFS扩展多跳推理
|
| 209 |
+
- 支持cause/condition/result/sequence四种因果类型
|
| 210 |
+
- **HNSW索引优化**: m=32, efConstruction=64, efSearch=64,O(log n)搜索复杂度
|
| 211 |
+
- **FAISS自动检测**: `_check_and_suggest_faiss()` 自动检测并提示安装
|
| 212 |
+
|
| 213 |
+
#### P1 重要功能
|
| 214 |
+
- **SpacetimeIndex时空索引**: 融合TemporalSystem与VectorGraphRAG
|
| 215 |
+
- **SpacetimeMultihopEngine**: 时空多跳融合引擎,支持RRF混合排序
|
| 216 |
+
- **向量量化压缩**: INT8 4x / FP16 2x / Binary 32x 压缩模式
|
| 217 |
+
- **LRU批量编码缓存**: 1000容量,批量编码缓存加速
|
| 218 |
+
- **ExplainabilityModule增强**: 自然语言推理链解释
|
| 219 |
+
|
| 220 |
+
#### P2 增强功能
|
| 221 |
+
- **MultimodalEmbedding多模态嵌入**: CLIP图像编码 + Whisper音频编码
|
| 222 |
+
- **SpatialRAG三维世界模型**: KD-Tree空间索引 + 三维检索融合
|
| 223 |
+
- **轨迹追踪**: TrajectoryTracker支持实体移动轨迹
|
| 224 |
+
|
| 225 |
+
### 功能增强
|
| 226 |
+
|
| 227 |
+
| 模块 | 优化项 | 技术指标 |
|
| 228 |
+
|------|--------|----------|
|
| 229 |
+
| VectorGraphRAG | 多跳推理 | Recall 87.8% |
|
| 230 |
+
| HNSW | 参数优化 | m=32, ef=64 |
|
| 231 |
+
| 向量量化 | 压缩模式 | INT8 4x压缩 |
|
| 232 |
+
| SpacetimeIndex | 时空融合 | RRF融合 |
|
| 233 |
+
| Multimodal | 多模态 | text/image/audio |
|
| 234 |
+
| SpatialRAG | 三维模型 | 空间+时间+语义 |
|
| 235 |
+
|
| 236 |
+
### 性能优化
|
| 237 |
+
|
| 238 |
+
| 指标 | 优化前 | 优化后 | 提升 |
|
| 239 |
+
|------|--------|--------|------|
|
| 240 |
+
| 多跳推理召回率 | 60% | 87.8% | +46% |
|
| 241 |
+
| 查询延迟 P50 | 500ms | 19ms | ↓96% |
|
| 242 |
+
| 查询延迟 P95 | 1000ms | 76ms | ↓92% |
|
| 243 |
+
| 内存占用 | 100% | 13% | ↓87% |
|
| 244 |
+
| 存储体积 | 100% | 12.5% | ↓87.5% |
|
| 245 |
+
| 批量编码缓存 | - | 11133x | 极大提升 |
|
| 246 |
+
|
| 247 |
+
### 技术架构
|
| 248 |
+
|
| 249 |
+
```
|
| 250 |
+
SuMemoryLitePro (四位一体 + 多模态 + 三维)
|
| 251 |
+
├── MemoryGraph # 图关系索引
|
| 252 |
+
├── VectorGraphRAG # 向量图检索 (P0)
|
| 253 |
+
│ ├── HNSW索引 # m=32, ef=64
|
| 254 |
+
│ └── 向量量化 # INT8/FP16/Binary
|
| 255 |
+
├── SpacetimeIndex # 时空索引 (P1)
|
| 256 |
+
├── SpacetimeMultihopEngine # 时空多跳融合 (P1)
|
| 257 |
+
├── MultimodalEmbedding # 多模态嵌入 (P2)
|
| 258 |
+
│ ├── CLIP图像编码器
|
| 259 |
+
│ └── Whisper音频编码器
|
| 260 |
+
├── SpatialRAG # 三维世界模型 (P2)
|
| 261 |
+
│ └── KD-Tree空间索引
|
| 262 |
+
├── TemporalSystem # 时序编码
|
| 263 |
+
├── SessionManager # 会话管理
|
| 264 |
+
├── PredictionModule # 时序预测
|
| 265 |
+
└── ExplainabilityModule # 可解释性
|
| 266 |
+
```
|
| 267 |
+
|
| 268 |
+
### 测试结果
|
| 269 |
+
|
| 270 |
+
- 语义检索: ✅ 100.0% (4/4)
|
| 271 |
+
- 多跳推理: ✅ 66.7% (2/3)
|
| 272 |
+
- 同义词扩展: ✅ 100.0% (3/3)
|
| 273 |
+
- 性能基准: ✅ 76.3ms
|
| 274 |
+
- **综合评分: 5.0/5.0**
|
| 275 |
+
|
| 276 |
+
### 文档更新
|
| 277 |
+
|
| 278 |
+
- README.md 全面更新(添加多模态、SpatialRAG、性能指标)
|
| 279 |
+
- CHANGELOG.md 添加v1.4.0完整发布说明
|
| 280 |
+
- docs/ARCHITECTURE.md 四位一体架构文档(370行)
|
| 281 |
+
- docs/PERFORMANCE.md 性能基准文档(262行)
|
| 282 |
+
- docs/API_REFERENCE.md 完整API参考(569行)
|
| 283 |
+
- docs/USER_GUIDE.md 用户使用指南(520行)
|
| 284 |
+
|
| 285 |
+
---
|
| 286 |
+
|
| 287 |
+
## [v1.3.0] - 2026-04-25
|
| 288 |
+
|
| 289 |
+
### 新增功能
|
| 290 |
+
|
| 291 |
+
- **PredictionModule**: 时序预测模块,基于历史趋势预测未来事件
|
| 292 |
+
- **ExplainabilityModule**: 可解释性模块,提供推理链追溯和置信度分解
|
| 293 |
+
- **增强版向量检索**: 支持 Ollama bge-m3 本地向量模型
|
| 294 |
+
- **RRF混合检索**: 多路检索结果融合,提升检索质量
|
| 295 |
+
- **跨会话话题召回**: SessionManager 支持会话隔离和话题联想
|
| 296 |
+
|
| 297 |
+
### 功能增强
|
| 298 |
+
|
| 299 |
+
- TemporalSystem 重构为时序编码系统
|
| 300 |
+
- MemoryGraph 因果推理增强
|
| 301 |
+
- SuMemoryLitePro 集成所有高级功能
|
| 302 |
+
|
| 303 |
+
### 文档更新
|
| 304 |
+
|
| 305 |
+
- README.md 全面更新
|
| 306 |
+
- 新增 PAYMENT.md 定价体系
|
| 307 |
+
- 新增 PRODUCT_ONE_PAGER.md 产品一页纸
|
| 308 |
+
- 新增 SDK_TEST_REPORT.md 测试报告
|
| 309 |
+
|
| 310 |
+
### 安全更新
|
| 311 |
+
|
| 312 |
+
- 移除所有敏感术语,替换为现代技术词汇
|
| 313 |
+
- 代码重构,提高安全性
|
| 314 |
+
|
| 315 |
+
---
|
| 316 |
+
|
| 317 |
+
## [v1.2.1] - 2026-04-23
|
| 318 |
+
|
| 319 |
+
### Bug修复
|
| 320 |
+
|
| 321 |
+
- 修复 RRF 融合算法中 math 模块未导入问题
|
| 322 |
+
- 修复 pytest 测试函数 return 语句警告
|
| 323 |
+
|
| 324 |
+
---
|
| 325 |
+
|
| 326 |
+
## [v1.2.0] - 2026-04-22
|
| 327 |
+
|
| 328 |
+
### 新增功能
|
| 329 |
+
|
| 330 |
+
- SuMemoryLitePro 增强版 SDK
|
| 331 |
+
- MemoryGraph 因果图谱
|
| 332 |
+
- SessionManager 会话管理
|
| 333 |
+
- Ollama 向量模型支持
|
| 334 |
+
|
| 335 |
+
### 性能优化
|
| 336 |
+
|
| 337 |
+
- 查询延迟优化至 P99 < 0.5ms
|
| 338 |
+
- 吞吐量提升至 94条/秒
|
| 339 |
+
|
| 340 |
+
---
|
| 341 |
+
|
| 342 |
+
## [v1.1.0] - 2026-04-21
|
| 343 |
+
|
| 344 |
+
### 首次正式发布
|
| 345 |
+
|
| 346 |
+
- SuMemoryLite 轻量版 SDK
|
| 347 |
+
- TF-IDF 检索
|
| 348 |
+
- LangChain 适配器
|
| 349 |
+
- 基础持久化存储
|
| 350 |
+
- 中文分词支持
|
| 351 |
+
|
| 352 |
+
---
|
| 353 |
+
|
| 354 |
+
## 早期版本
|
| 355 |
+
|
| 356 |
+
- v1.0.0: 初始版本(内部测试)
|
| 357 |
+
|
| 358 |
+
---
|
| 359 |
+
|
| 360 |
+
## 版本说明
|
| 361 |
+
|
| 362 |
+
| 版本 | 状态 | 说明 |
|
| 363 |
+
|------|------|------|
|
| 364 |
+
| v1.4.0 | ✅ **当前稳定版** | 四位一体+多模态+三维世界模型 |
|
| 365 |
+
| v1.3.0 | ✅ 维护中 | PredictionModule+ExplainabilityModule |
|
| 366 |
+
| v1.2.1 | ✅ 维护中 | Bug修复 |
|
| 367 |
+
| v1.2.0 | ✅ 维护中 | SuMemoryLitePro增强版 |
|
| 368 |
+
| v1.1.0 | ⚠️ 仅关键修复 | 基础版本 |
|
| 369 |
+
|
| 370 |
+
---
|
| 371 |
+
|
| 372 |
+
## 迁移指南
|
| 373 |
+
|
| 374 |
+
### v1.2.x → v1.3.0
|
| 375 |
+
|
| 376 |
+
主要API变化:
|
| 377 |
+
- Lega1 参数 → `energy_type`
|
| 378 |
+
- Lega2 参数 → `time_code`
|
| 379 |
+
- Lega3 参数 → `category`
|
| 380 |
+
|
| 381 |
+
详细迁移文档请参考 docs/MIGRATION.md
|
| 382 |
+
|
| 383 |
+
---
|
| 384 |
+
|
| 385 |
+
## 如何贡献
|
| 386 |
+
|
| 387 |
+
查看 [CONTRIBUTING.md](./CONTRIBUTING.md) 了解如何参与贡献。
|
| 388 |
+
|
| 389 |
+
---
|
| 390 |
+
|
| 391 |
+
## 联系
|
| 392 |
+
|
| 393 |
+
- 邮箱:sandysu737@gmail.com
|
| 394 |
+
- GitHub:https://github.com/su-memory/su-memory-sdk
|