How Graph Chain-of-Thought (Graph-CoT) works
mainGraph-CoT is an iterative framework that enables LLMs to traverse a graph step-by-step to find key information instead of receiving a whole subgraph as context. Each iteration consists of three sub-steps:
- Reasoning: The LLM proposes a conclusion based on current information and identifies what further information is needed from the graph.
- Interaction: The LLM generates specific interactions required to fetch information (e.g., finding nodes, checking neighbors).
- Execution: The requested interactions are executed on the graph, and the resulting information is returned to the LLM.
This process repeats until the LLM reaches a final conclusion in the reasoning step.