@catalogicus-international/n8n-nodes-light-rag 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import type { INodeType, INodeTypeDescription, ISupplyDataFunctions, SupplyData } from 'n8n-workflow';
|
|
1
|
+
import type { IExecuteFunctions, INodeExecutionData, INodeType, INodeTypeDescription, ISupplyDataFunctions, SupplyData } from 'n8n-workflow';
|
|
2
2
|
export declare class LightRagTool implements INodeType {
|
|
3
3
|
description: INodeTypeDescription;
|
|
4
|
+
execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]>;
|
|
4
5
|
supplyData(this: ISupplyDataFunctions, itemIndex: number): Promise<SupplyData>;
|
|
5
6
|
}
|
|
@@ -3,64 +3,76 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.LightRagTool = void 0;
|
|
4
4
|
const n8n_workflow_1 = require("n8n-workflow");
|
|
5
5
|
const request_1 = require("./request");
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
additionalProperties: true,
|
|
30
|
-
},
|
|
31
|
-
trackId: {
|
|
32
|
-
type: 'string',
|
|
33
|
-
description: 'The track ID returned by an insert or scan operation.',
|
|
34
|
-
},
|
|
35
|
-
method: {
|
|
36
|
-
type: 'string',
|
|
37
|
-
enum: ['DELETE', 'GET', 'HEAD', 'PATCH', 'POST', 'PUT'],
|
|
38
|
-
description: 'HTTP method for customRequest.',
|
|
39
|
-
},
|
|
40
|
-
path: {
|
|
41
|
-
type: 'string',
|
|
42
|
-
description: 'Relative LightRAG API path for customRequest.',
|
|
43
|
-
},
|
|
44
|
-
queryParameters: {
|
|
45
|
-
type: 'object',
|
|
46
|
-
description: 'URL query parameters for customRequest.',
|
|
47
|
-
additionalProperties: true,
|
|
48
|
-
},
|
|
6
|
+
const SCHEMA_FIELDS = {
|
|
7
|
+
body: {
|
|
8
|
+
type: 'object',
|
|
9
|
+
description: 'The JSON request body for operations that accept one.',
|
|
10
|
+
additionalProperties: true,
|
|
11
|
+
},
|
|
12
|
+
trackId: {
|
|
13
|
+
type: 'string',
|
|
14
|
+
description: 'The track ID returned by an insert or scan operation.',
|
|
15
|
+
},
|
|
16
|
+
method: {
|
|
17
|
+
type: 'string',
|
|
18
|
+
enum: ['DELETE', 'GET', 'HEAD', 'PATCH', 'POST', 'PUT'],
|
|
19
|
+
description: 'HTTP method for customRequest.',
|
|
20
|
+
},
|
|
21
|
+
path: {
|
|
22
|
+
type: 'string',
|
|
23
|
+
description: 'Relative LightRAG API path for customRequest.',
|
|
24
|
+
},
|
|
25
|
+
queryParameters: {
|
|
26
|
+
type: 'object',
|
|
27
|
+
description: 'URL query parameters for customRequest.',
|
|
28
|
+
additionalProperties: true,
|
|
49
29
|
},
|
|
50
|
-
required: ['operation'],
|
|
51
|
-
additionalProperties: false,
|
|
52
30
|
};
|
|
31
|
+
const OPERATION_FIELDS = {
|
|
32
|
+
query: ['body'],
|
|
33
|
+
queryData: ['body'],
|
|
34
|
+
insertText: ['body'],
|
|
35
|
+
insertTexts: ['body'],
|
|
36
|
+
trackStatus: ['trackId'],
|
|
37
|
+
pipelineStatus: [],
|
|
38
|
+
listDocuments: ['body'],
|
|
39
|
+
scanDocuments: [],
|
|
40
|
+
deleteDocuments: ['body'],
|
|
41
|
+
health: [],
|
|
42
|
+
customRequest: ['method', 'path', 'queryParameters', 'body'],
|
|
43
|
+
};
|
|
44
|
+
const OPERATION_REQUIRED = {
|
|
45
|
+
query: ['body'],
|
|
46
|
+
queryData: ['body'],
|
|
47
|
+
insertText: ['body'],
|
|
48
|
+
insertTexts: ['body'],
|
|
49
|
+
trackStatus: ['trackId'],
|
|
50
|
+
deleteDocuments: ['body'],
|
|
51
|
+
customRequest: ['method', 'path'],
|
|
52
|
+
};
|
|
53
|
+
function buildOperationSchema(operation) {
|
|
54
|
+
var _a;
|
|
55
|
+
const fields = OPERATION_FIELDS[operation];
|
|
56
|
+
const properties = Object.fromEntries(fields.map((field) => [field, SCHEMA_FIELDS[field]]));
|
|
57
|
+
return {
|
|
58
|
+
type: 'object',
|
|
59
|
+
properties,
|
|
60
|
+
required: (_a = OPERATION_REQUIRED[operation]) !== null && _a !== void 0 ? _a : [],
|
|
61
|
+
additionalProperties: false,
|
|
62
|
+
};
|
|
63
|
+
}
|
|
53
64
|
class LightRagStructuredTool {
|
|
54
|
-
constructor(executeRequest) {
|
|
65
|
+
constructor(operation, executeRequest) {
|
|
66
|
+
this.operation = operation;
|
|
55
67
|
this.executeRequest = executeRequest;
|
|
56
68
|
this.name = 'light_rag';
|
|
57
|
-
this.description = 'Query and manage a LightRAG knowledge base. Use query or queryData to retrieve knowledge, document operations to manage indexed content, and health to check the server.';
|
|
58
|
-
this.schema = lightRagToolSchema;
|
|
59
69
|
this.lc_namespace = ['catalogicus', 'light-rag'];
|
|
60
70
|
this.returnDirect = false;
|
|
71
|
+
this.schema = buildOperationSchema(operation);
|
|
72
|
+
this.description = `Run the LightRAG "${operation}" operation against the configured knowledge base.`;
|
|
61
73
|
}
|
|
62
74
|
async invoke(input) {
|
|
63
|
-
return await this.executeRequest(this.unwrapToolCall(input));
|
|
75
|
+
return await this.executeRequest(this.withFixedOperation(this.unwrapToolCall(input)));
|
|
64
76
|
}
|
|
65
77
|
async call(input) {
|
|
66
78
|
return await this.invoke(input);
|
|
@@ -74,6 +86,10 @@ class LightRagStructuredTool {
|
|
|
74
86
|
}
|
|
75
87
|
return input;
|
|
76
88
|
}
|
|
89
|
+
withFixedOperation(args) {
|
|
90
|
+
const merged = args !== null && typeof args === 'object' ? { ...args } : {};
|
|
91
|
+
return { ...merged, operation: this.operation };
|
|
92
|
+
}
|
|
77
93
|
}
|
|
78
94
|
class LightRagTool {
|
|
79
95
|
constructor() {
|
|
@@ -96,15 +112,63 @@ class LightRagTool {
|
|
|
96
112
|
required: true,
|
|
97
113
|
},
|
|
98
114
|
],
|
|
99
|
-
properties: [
|
|
115
|
+
properties: [
|
|
116
|
+
{
|
|
117
|
+
displayName: 'Operation',
|
|
118
|
+
name: 'operation',
|
|
119
|
+
type: 'options',
|
|
120
|
+
noDataExpression: true,
|
|
121
|
+
description: 'The LightRAG operation exposed to the AI Agent. The agent fills in the request body and other inputs automatically.',
|
|
122
|
+
options: [
|
|
123
|
+
{ name: 'Custom Request', value: 'customRequest' },
|
|
124
|
+
{ name: 'Delete Documents', value: 'deleteDocuments' },
|
|
125
|
+
{ name: 'Get Pipeline Status', value: 'pipelineStatus' },
|
|
126
|
+
{ name: 'Get Track Status', value: 'trackStatus' },
|
|
127
|
+
{ name: 'Health', value: 'health' },
|
|
128
|
+
{ name: 'Insert Text', value: 'insertText' },
|
|
129
|
+
{ name: 'Insert Texts', value: 'insertTexts' },
|
|
130
|
+
{ name: 'List Documents', value: 'listDocuments' },
|
|
131
|
+
{ name: 'Query', value: 'query' },
|
|
132
|
+
{ name: 'Query Data', value: 'queryData' },
|
|
133
|
+
{ name: 'Scan Documents', value: 'scanDocuments' },
|
|
134
|
+
],
|
|
135
|
+
default: 'query',
|
|
136
|
+
},
|
|
137
|
+
],
|
|
100
138
|
};
|
|
101
139
|
}
|
|
140
|
+
async execute() {
|
|
141
|
+
const credentials = await this.getCredentials('lightRagApi');
|
|
142
|
+
const baseUrl = (0, request_1.normalizeBaseUrl)(credentials.baseUrl);
|
|
143
|
+
const items = this.getInputData();
|
|
144
|
+
const returnData = [];
|
|
145
|
+
for (let itemIndex = 0; itemIndex < items.length; itemIndex++) {
|
|
146
|
+
try {
|
|
147
|
+
const operation = this.getNodeParameter('operation', itemIndex);
|
|
148
|
+
const request = (0, request_1.normalizeToolRequest)({ ...items[itemIndex].json, operation });
|
|
149
|
+
const response = await (0, request_1.executeLightRagRequest)(this, baseUrl, request);
|
|
150
|
+
returnData.push(...(0, request_1.responseToExecutionData)(response, itemIndex));
|
|
151
|
+
}
|
|
152
|
+
catch (error) {
|
|
153
|
+
if (this.continueOnFail()) {
|
|
154
|
+
returnData.push({
|
|
155
|
+
json: { error: error instanceof Error ? error.message : String(error) },
|
|
156
|
+
pairedItem: itemIndex,
|
|
157
|
+
});
|
|
158
|
+
continue;
|
|
159
|
+
}
|
|
160
|
+
throw new n8n_workflow_1.NodeOperationError(this.getNode(), error, { itemIndex });
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
return [returnData];
|
|
164
|
+
}
|
|
102
165
|
async supplyData(itemIndex) {
|
|
103
166
|
const credentials = await this.getCredentials('lightRagApi');
|
|
104
167
|
const baseUrl = (0, request_1.normalizeBaseUrl)(credentials.baseUrl);
|
|
168
|
+
const operation = this.getNodeParameter('operation', itemIndex);
|
|
105
169
|
return {
|
|
106
170
|
metadata: { itemIndex },
|
|
107
|
-
response: new LightRagStructuredTool(async (input) => {
|
|
171
|
+
response: new LightRagStructuredTool(operation, async (input) => {
|
|
108
172
|
const request = (0, request_1.normalizeToolRequest)(input);
|
|
109
173
|
const response = await (0, request_1.executeLightRagRequest)(this, baseUrl, request);
|
|
110
174
|
return typeof response === 'string' ? response : JSON.stringify(response);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LightRagTool.node.js","sourceRoot":"","sources":["../../../nodes/LightRagTool/LightRagTool.node.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"LightRagTool.node.js","sourceRoot":"","sources":["../../../nodes/LightRagTool/LightRagTool.node.ts"],"names":[],"mappings":";;;AAQA,+CAAuE;AACvE,uCAKmB;AAEnB,MAAM,aAAa,GAAG;IACrB,IAAI,EAAE;QACL,IAAI,EAAE,QAA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AAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;YAC3E,CAAC,CAAC;SACF,CAAC;IACH,CAAC;CACD;AAxFD,oCAwFC"}
|
package/package.json
CHANGED
|
@@ -1,62 +1,62 @@
|
|
|
1
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
|
-
|
|
2
|
+
"name": "@catalogicus-international/n8n-nodes-light-rag",
|
|
3
|
+
"version": "0.1.2",
|
|
4
|
+
"description": "n8n workflow and AI Agent tool nodes for the LightRAG API server",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"packageManager": "pnpm@9.15.0",
|
|
7
|
+
"homepage": "https://github.com/catalogicus-international/n8n-nodes-light-rag#readme",
|
|
8
|
+
"keywords": [
|
|
9
|
+
"lightrag",
|
|
10
|
+
"rag",
|
|
11
|
+
"ai-agent",
|
|
12
|
+
"n8n-community-node-package"
|
|
13
|
+
],
|
|
14
|
+
"author": {
|
|
15
|
+
"name": "Catalogicus International",
|
|
16
|
+
"email": "noreply@catalogicus-international.invalid"
|
|
17
|
+
},
|
|
18
|
+
"repository": {
|
|
19
|
+
"type": "git",
|
|
20
|
+
"url": "git+https://github.com/catalogicus-international/n8n-nodes-light-rag.git"
|
|
21
|
+
},
|
|
22
|
+
"scripts": {
|
|
23
|
+
"build": "n8n-node build",
|
|
24
|
+
"build:watch": "tsc --watch",
|
|
25
|
+
"dev": "n8n-node dev",
|
|
26
|
+
"lint": "n8n-node lint",
|
|
27
|
+
"lint:fix": "n8n-node lint --fix",
|
|
28
|
+
"test": "pnpm run build && node --test test/**/*.test.js",
|
|
29
|
+
"release": "n8n-node release",
|
|
30
|
+
"prepublishOnly": "pnpm run lint && pnpm run build"
|
|
31
|
+
},
|
|
32
|
+
"publishConfig": {
|
|
33
|
+
"access": "public"
|
|
34
|
+
},
|
|
35
|
+
"files": [
|
|
36
|
+
"dist/credentials",
|
|
37
|
+
"dist/icons/lightrag.svg",
|
|
38
|
+
"dist/nodes/LightRag",
|
|
39
|
+
"dist/nodes/LightRagTool"
|
|
40
|
+
],
|
|
41
|
+
"n8n": {
|
|
42
|
+
"n8nNodesApiVersion": 1,
|
|
43
|
+
"strict": true,
|
|
44
|
+
"credentials": [
|
|
45
|
+
"dist/credentials/LightRagApi.credentials.js"
|
|
46
|
+
],
|
|
47
|
+
"nodes": [
|
|
48
|
+
"dist/nodes/LightRag/LightRag.node.js",
|
|
49
|
+
"dist/nodes/LightRagTool/LightRagTool.node.js"
|
|
50
|
+
]
|
|
51
|
+
},
|
|
52
|
+
"devDependencies": {
|
|
53
|
+
"@n8n/node-cli": "*",
|
|
54
|
+
"eslint": "9.29.0",
|
|
55
|
+
"prettier": "3.8.3",
|
|
56
|
+
"release-it": "20.2.0",
|
|
57
|
+
"typescript": "5.9.3"
|
|
58
|
+
},
|
|
59
|
+
"peerDependencies": {
|
|
60
|
+
"n8n-workflow": "*"
|
|
61
|
+
}
|
|
62
62
|
}
|