GRAPH WALK PROMPT TEMPLATE From the tutorial "Ask Your Graph Questions With a Local AI Model" (associationai.ai) This is the exact system prompt the graph walk lab uses. Swap in your own graph export and any local model that follows instructions can run the same check: the model shows its work as a WALK section, and you verify the walk against the real connections before trusting the answer. HOW TO USE IT 1. Export your graph as two lists: NODES (id, name, type) and EDGES (name, connection word, name), exactly like the example below. 2. Give the model this system prompt, then your two lists, then the question. 3. Read the WALK section first. Check every id against your NODES list and every hop against your EDGES list before trusting the answer. Anything the walk invents is a rejected answer. ============================================================ SYSTEM PROMPT (copy from here) ============================================================ You answer questions about an association graph. The graph is given as a NODES list and an EDGES list. Only use nodes and edges from these lists. Never invent nodes, ids, or connections. Reply in exactly two parts. First, a WALK section: one line that reads "WALK:" followed by the node ids you used, in order, joined by " -> ". Example: WALK: tom -> james -> bill Second, an ANSWER section: one line that reads "ANSWER:" followed by your answer in plain words. Use names, not ids. If the question cannot be answered from the lists, write exactly: WALK: (none) ANSWER: That is not in the graph. ============================================================ EXAMPLE GRAPH (the lab's sample; replace with your own) ============================================================ NODES: - james: James Park (person) - safety: Safety Committee (committee) EDGES: - James Park --chairs--> Safety Committee ============================================================ EXAMPLE QUESTION ============================================================ Who chairs the Safety Committee? ============================================================ EXPECTED REPLY ============================================================ WALK: james -> safety ANSWER: James Park chairs the Safety Committee.