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 <tadashi@cinnamon.is>
This commit is contained in:
Mikhail Khludnev 2024-09-29 19:02:23 +03:00 committed by GitHub
parent aac6233412
commit 2e3c17b256
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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