MCPcopy Create free account
hub / github.com/Spinachead/arg / save

Method save

app/knowledge_base/kb_cache/faiss_cache.py:35–41  ·  view source on GitHub ↗
(self, path: str, create_path: bool = True)

Source from the content-addressed store, hash-verified

33 return len(self._obj.docstore._dict)
34
35 def save(self, path: str, create_path: bool = True):
36 with self.acquire():
37 if not os.path.isdir(path) and create_path:
38 os.makedirs(path)
39 ret = self._obj.save_local(path)
40 # logger.info(f"已将向量库 {self.key} 保存到磁盘")
41 return ret
42
43 def clear(self):
44 ret = []

Callers 2

save_vector_storeMethod · 0.80
save_vector_storeMethod · 0.80

Calls 1

acquireMethod · 0.45

Tested by

no test coverage detected