graphrag-benchmark / scripts /test_graphrag_networkx.py
VedantDhavan's picture
Deploy public PDF upload backend
5b7114d
Raw
History Blame Contribute Delete
395 Bytes
import json
from pipelines.graphrag.graphrag_pipeline import run_graphrag
def main():
query = "What is the main contribution or focus of the paper about laser beams propagating through turbulent atmospheres?
"
result = run_graphrag(query)
print(json.dumps(result["details"], indent=2))
print("\nanswer:\n")
print(result["answer"])
if __name__ == "__main__":
main()