-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path07_tool_ingest_github.json
More file actions
140 lines (140 loc) · 3.16 KB
/
Copy path07_tool_ingest_github.json
File metadata and controls
140 lines (140 loc) · 3.16 KB
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
129
130
131
132
133
134
135
136
137
138
139
140
{
"name": "07 — Tool: Ingest GitHub Repo",
"nodes": [
{
"parameters": {},
"id": "manual-trigger",
"name": "Manual Trigger",
"type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1,
"position": [
240,
300
]
},
{
"parameters": {
"jsCode": "return [{ json: { chatInput: \"Please ingest this GitHub repository into the knowledge graph: https://github.com/FalkorDB/GraphRAG-SDK\" } }];"
},
"id": "set-input",
"name": "Set Message",
"type": "n8n-nodes-base.code",
"typeVersion": 2,
"position": [
460,
300
]
},
{
"parameters": {
"options": {
"systemMessage": "You are a knowledge graph ingestion assistant. When given a GitHub repository URL, use the FalkorDB GraphRAG tool to ingest its markdown files."
}
},
"id": "ai-agent",
"name": "AI Agent",
"type": "@n8n/n8n-nodes-langchain.agent",
"typeVersion": 1.7,
"position": [
680,
300
]
},
{
"parameters": {
"model": {
"__rl": true,
"mode": "id",
"value": "gpt-4o"
},
"options": {}
},
"id": "openai-model",
"name": "OpenAI Chat Model",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"typeVersion": 1.2,
"position": [
580,
520
],
"credentials": {
"openAiApi": {
"name": "OpenAI account"
}
}
},
{
"parameters": {
"operation": "ingestGithub",
"githubUrl": "={{ $fromAI(\"githubUrl\", \"Full GitHub repository URL to ingest, e.g. https://github.com/org/repo\") }}",
"githubRef": "={{ $fromAI(\"githubRef\", \"Branch, tag, or commit SHA. Leave empty for default branch.\") }}",
"graphName": "knowledge-graph"
},
"id": "rag-tool",
"name": "FalkorDB GraphRAG Tool",
"type": "@falkordb/n8n-nodes-graphrag.graphRag",
"typeVersion": 1,
"position": [
820,
520
],
"credentials": {
"falkorDbGraphRagApi": {
"name": "FalkorDB GraphRAG Server account"
}
}
}
],
"connections": {
"Manual Trigger": {
"main": [
[
{
"node": "Set Message",
"type": "main",
"index": 0
}
]
]
},
"Set Message": {
"main": [
[
{
"node": "AI Agent",
"type": "main",
"index": 0
}
]
]
},
"OpenAI Chat Model": {
"ai_languageModel": [
[
{
"node": "AI Agent",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"FalkorDB GraphRAG Tool": {
"ai_tool": [
[
{
"node": "AI Agent",
"type": "ai_tool",
"index": 0
}
]
]
}
},
"settings": {
"executionOrder": "v1"
},
"meta": {
"description": "GraphRag tool node — Ingest GitHub Repo operation. AI Agent ingests a GitHub repo URL from the chat message."
}
}