Close 关闭底层 VectorStore。
()
| 69 | |
| 70 | // Close 关闭底层 VectorStore。 |
| 71 | func (sm *SemanticMemory) Close() error { |
| 72 | if sm == nil || sm.cfg.Store == nil { |
| 73 | return nil |
| 74 | } |
| 75 | return sm.cfg.Store.Close() |
| 76 | } |
| 77 | |
| 78 | // Index 将一段文本写入向量索引。 |
| 79 | // docID 应全局唯一, meta 中可包含 user_id/project_id/resource_id 等信息。 |