-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgraph-of-thought-prompting.txt
128 lines (128 loc) · 4.86 KB
/
graph-of-thought-prompting.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
```xml
>>>START<<<
<objective>
You are tasked with implementing the Graph of Thought prompting technique to explore a user's query or problem.
Your goal is to create a comprehensive overview of the query by representing the central concept and other key sub-concepts as nodes, and the relationships between them as edges.
You will then analyze this graph to gain deeper insights.
</objective>
###\n\n###
Here is the user's query:
<user_query>
{{USER_QUERY}}
</user_query>
###\n\n###
You are to determine the central concept for this Graph of Thought from the <user_query>.
<central_concept>
[A 10-15 word sentence that clearly and concisely states the central concept of the user's query for graph analysis]
</central_concept>
###\n\n###
<task_instructions>
Follow these steps to create and analyze your Graph of Thought:
1. Initial Nodes: Generate 5-7 key ideas, factors, or sub-concepts directly related to the central concept.
2. Node Expansion: For each initial node:
a. Describe its relevance to the central concept
b. Identify 2-3 sub-ideas, factors, or implications
c. Consider possible challenges or opposing views
3. Edge Identification: Establish connections between nodes:
a. Draw lines between related nodes
b. Label connections (e.g., "influences," "enhances," "contradicts")
c. Classify connection strength as strong, moderate, or weak
4. Cluster Analysis: Identify clusters of closely related nodes:
a. Summarize the common theme for each cluster
b. Explain how each cluster connects to other parts of the graph
5. Bridge Concepts: Identify nodes that connect different clusters and explain their significance.
6. Feedback Loops: Look for circular relationships and describe their influence on the central concept.
7. External Influences: Introduce and connect external factors that might impact your graph.
8. Temporal Dynamics: Consider how relationships or node importance might change over time.
9. Emergent Patterns: Identify and describe any unexpected relationships or insights that emerge from the overall graph.
10. Graph Refinement: Review and refine your graph by merging similar nodes, splitting complex ones, and adjusting edge strengths.
11. Alternative Perspectives: Consider how different stakeholders might view or modify the graph.
12. Solution Pathways: If addressing a specific problem, identify potential solution nodes and trace pathways to the central concept.
13. Knowledge Gaps: Highlight areas where you lack information or certainty.
14. Synthesis: Summarize key insights, influential nodes, and how your understanding of the central concept has evolved.
15. Action Steps: Derive and prioritize concrete actions or next steps based on your graph insights.
16. Reflection: Reflect on the process, unexpected connections, visualization benefits, and any limitations or biases in your graph.
</task_instructions>
###\n\n###
<output>
Present your analysis in the following format:
<graph_of_thought>
"""---------GRAPH-of-THOUGHT---------"""\n\n
###\n\n###
<initial_nodes>
[List your initial nodes here]
</initial_nodes>
###\n\n###
<node_expansion>
[For each node, provide relevance, sub-ideas, and counterarguments]
</node_expansion>
###\n\n###
<edge_identification>
[Describe connections between nodes, including labels and strengths]
</edge_identification>
###\n\n###
<diagram>
[Generate a markdown diagram of the nodes and edges, including labels and strengths]
</diagram>
###\n\n###
<cluster_analysis>
[Identify and describe clusters]
</cluster_analysis>
###\n\n###
<bridge_concepts>
[Identify and explain bridge nodes]
</bridge_concepts>
###\n\n###
<feedback_loops>
[Describe any feedback loops found]
</feedback_loops>
###\n\n###
<external_influences>
[List and explain external factors]
</external_influences>
###\n\n###
<temporal_dynamics>
[Describe how relationships might change over time]
</temporal_dynamics>
###\n\n###
<emergent_patterns>
[Explain unexpected insights or relationships]
</emergent_patterns>
###\n\n###
<graph_refinement>
[Describe any refinements made to the graph]
</graph_refinement>
###\n\n###
<alternative_perspectives>
[Consider different stakeholder viewpoints]
</alternative_perspectives>
###\n\n###
<solution_pathways>
[If applicable, describe potential solutions and their pathways]
</solution_pathways>
###\n\n###
<knowledge_gaps>
[Highlight areas of uncertainty or missing information]
</knowledge_gaps>
###\n\n###
<synthesis>
[Summarize key insights and how your understanding has evolved]
</synthesis>
###\n\n###
<action_steps>
[List prioritized actions or next steps]
</action_steps>
###\n\n###
<reflection>
[Reflect on the process, benefits, and limitations]
</reflection>
###
</graph_of_thought>
</output>
###
<final_reminder>
Ensure that your analysis is thorough, insightful, and follows the structure outlined above.
Your goal is to provide a comprehensive exploration of the central concept using a process rooted in graph theory.
</final_reminder>
>>>END<<<
```