From 2e3c17b2563e3a20aec13ea75fbe27feb19934ab Mon Sep 17 00:00:00 2001 From: Mikhail Khludnev Date: Sun, 29 Sep 2024 19:02:23 +0300 Subject: [PATCH] fix: convert graphrag input path to str (#237) #none I noticed type cast error in pycharm debug (it intercept forking programs). Anyway, this change obeys types. Although, this conversions happens implicitly. Co-authored-by: Tadashi --- libs/ktem/ktem/index/file/graph/pipelines.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/ktem/ktem/index/file/graph/pipelines.py b/libs/ktem/ktem/index/file/graph/pipelines.py index 3016753..c20b36a 100644 --- a/libs/ktem/ktem/index/file/graph/pipelines.py +++ b/libs/ktem/ktem/index/file/graph/pipelines.py @@ -135,7 +135,7 @@ class GraphRAGIndexingPipeline(IndexDocumentPipeline): graph_id = self.store_file_id_with_graph_id(file_ids) # call GraphRAG index with docs and graph_id graph_index_path = self.write_docs_to_files(graph_id, all_docs) - yield from self.call_graphrag_index(graph_index_path) + yield from self.call_graphrag_index(str(graph_index_path.absolute())) return file_ids, errors, all_docs