Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: Any way to attach PipelineResult.run_id to the nodes and relationships that were touched by the SimpleKGPipeline run? #289

Open
nickjfrench opened this issue Feb 27, 2025 · 1 comment

Comments

@nickjfrench
Copy link

I want to be able to MATCH what nodes and relationships were added or edited by a run. I know SimpleKGPipeline returns a PipelineResult that contains the number of nodes and the run_id, but it doesn't seem to attach itself to any nodes or relationships within the graph DB. There is an id property added, but that seems to come from the chunk's id.

Am I missing something that already exists either within the GraphRAG package or Neo4j GraphDB, or is there a easy way to attach it to nodes and rels myself?
If I attach it myself, I imagine the property would need to be an array, as nodes will be edited by multiple runs.

@stellasia
Copy link
Contributor

Hi @nickjfrench ,

This is not possible at the moment, the internal pipeline components, especially the KGWriter, do not know about this run_id (which is used to store and access components results during pipeline execution).

I understand the use case though, so I'll keep this issue open until we can provide a real solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants