File size: 395 Bytes
83aed13
 
 
 
 
 
5b7114d
 
83aed13
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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()