GraphRAG-Benchmark icon indicating copy to clipboard operation
GraphRAG-Benchmark copied to clipboard

Redundancy in Example code

Open Powerkrieger opened this issue 1 year ago • 1 comments

There is a lot of duplicate code in all of the run_.py scripts, which can be extracted. This has multiple advantages:

  • changes only need to be done once
  • implementing a new framework can begin more easily

I already started on this because I will use it locally to evaluate my own frameworks anyway. My approach just leaves the init and query function to be implemented for every method.

Will open a merge request once my last merge request is handled.

Powerkrieger avatar Sep 29 '25 09:09 Powerkrieger

Hello, your suggestion is very helpful. We also encountered this issue when writing the test code, as different frameworks have variations in their codes. Thank you for sharing your idea!

Eric-Xiang-526 avatar Oct 02 '25 10:10 Eric-Xiang-526