muthuk1 commited on
Commit
f8eab37
·
verified ·
1 Parent(s): bd9f9a5

Add OpenClaw Skills: graph_query, compare_pipelines, extract_entities, benchmark, cost_estimate, explore_graph"

Browse files
openclaw/skills/graph_query/SKILL.md ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # graph_query
2
+
3
+ Query the TigerGraph knowledge graph using natural language. Performs dual-level keyword extraction, entity vector search, and multi-hop graph traversal to find relevant entities, relationships, and evidence passages.
4
+
5
+ ## Parameters
6
+ - `query` (string, required): Natural language question to search the knowledge graph
7
+ - `depth` (integer, optional, default=2): Number of hops for graph traversal (1-4)
8
+ - `top_k` (integer, optional, default=5): Number of seed entities to retrieve
9
+
10
+ ## Returns
11
+ JSON object with:
12
+ - `entities`: List of entities found with names, types, and descriptions
13
+ - `relations`: List of relationships traversed with source, target, and type
14
+ - `passages`: Relevant text chunks connected to discovered entities
15
+ - `reasoning_path`: Step-by-step explanation of the graph traversal
16
+
17
+ ## Example
18
+ ```
19
+ graph_query "Were Scott Derrickson and Ed Wood of the same nationality?" --depth 2
20
+ ```
21
+
22
+ ## Notes
23
+ - Requires TigerGraph connection (set TG_HOST, TG_PASSWORD env vars)
24
+ - Falls back to in-memory entity extraction if TigerGraph unavailable
25
+ - Uses the configured LLM provider for keyword extraction