MCPcopy Create free account
hub / github.com/astercloud/aster / Close

Method Close

pkg/memory/semantic.go:71–76  ·  view source on GitHub ↗

Close 关闭底层 VectorStore。

()

Source from the content-addressed store, hash-verified

69
70// Close 关闭底层 VectorStore。
71func (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 等信息。

Callers

nothing calls this directly

Calls 1

CloseMethod · 0.65

Tested by

no test coverage detected