MCPcopy Create free account
hub / github.com/Enfoirer/Text2GraphRAG / _cleanup

Method _cleanup

main.py:411–420  ·  view source on GitHub ↗

清理资源

(self)

Source from the content-addressed store, hash-verified

409 print("建议:请检查Milvus服务状态后重试")
410
411 def _cleanup(self):
412 """清理资源"""
413 if self.data_module:
414 self.data_module.close()
415 if self.traditional_retrieval:
416 self.traditional_retrieval.close()
417 if self.graph_rag_retrieval:
418 self.graph_rag_retrieval.close()
419 if self.index_module:
420 self.index_module.close()
421
422def main():
423 """主函数"""

Callers 1

run_interactiveMethod · 0.95

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected