n8n-nodes-caedral 0.2.0 → 0.3.0
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.
- package/dist/nodes/CaedralEmbeddings/CaedralEmbeddings.node.d.ts +10 -0
- package/dist/nodes/CaedralEmbeddings/CaedralEmbeddings.node.js +114 -0
- package/dist/nodes/CaedralEmbeddings/CaedralEmbeddings.node.js.map +1 -0
- package/dist/nodes/CaedralEmbeddings/CaedralEmbeddings.node.json +16 -0
- package/dist/nodes/CaedralReranker/CaedralReranker.node.d.ts +10 -0
- package/dist/nodes/CaedralReranker/CaedralReranker.node.js +126 -0
- package/dist/nodes/CaedralReranker/CaedralReranker.node.js.map +1 -0
- package/dist/nodes/CaedralReranker/CaedralReranker.node.json +16 -0
- package/package.json +8 -3
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { INodeType, INodeTypeDescription, ISupplyDataFunctions, SupplyData } from "n8n-workflow";
|
|
2
|
+
/**
|
|
3
|
+
* Caedral Embeddings — an AI Embedding sub-node compatible with
|
|
4
|
+
* n8n's Vector Store nodes. Provides embedDocuments and embedQuery
|
|
5
|
+
* methods using the Caedral /v1/embeddings endpoint.
|
|
6
|
+
*/
|
|
7
|
+
export declare class CaedralEmbeddings implements INodeType {
|
|
8
|
+
description: INodeTypeDescription;
|
|
9
|
+
supplyData(this: ISupplyDataFunctions, itemIndex: number): Promise<SupplyData>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CaedralEmbeddings = void 0;
|
|
4
|
+
const n8n_workflow_1 = require("n8n-workflow");
|
|
5
|
+
const helpers_1 = require("../Caedral/helpers");
|
|
6
|
+
/**
|
|
7
|
+
* Caedral Embeddings — an AI Embedding sub-node compatible with
|
|
8
|
+
* n8n's Vector Store nodes. Provides embedDocuments and embedQuery
|
|
9
|
+
* methods using the Caedral /v1/embeddings endpoint.
|
|
10
|
+
*/
|
|
11
|
+
class CaedralEmbeddings {
|
|
12
|
+
constructor() {
|
|
13
|
+
this.description = {
|
|
14
|
+
displayName: "Caedral Embeddings",
|
|
15
|
+
name: "caedralEmbeddings",
|
|
16
|
+
icon: {
|
|
17
|
+
light: "file:../../icons/caedral.svg",
|
|
18
|
+
dark: "file:../../icons/caedral.dark.svg",
|
|
19
|
+
},
|
|
20
|
+
group: ["transform"],
|
|
21
|
+
version: 1,
|
|
22
|
+
description: "Generate text embeddings via Caedral for use with Vector Store nodes",
|
|
23
|
+
defaults: {
|
|
24
|
+
name: "Caedral Embeddings",
|
|
25
|
+
},
|
|
26
|
+
codex: {
|
|
27
|
+
categories: ["AI"],
|
|
28
|
+
subcategories: {
|
|
29
|
+
AI: ["Embeddings"],
|
|
30
|
+
},
|
|
31
|
+
resources: {
|
|
32
|
+
primaryDocumentation: [
|
|
33
|
+
{ url: "https://caedral.com/docs/n8n-overview" },
|
|
34
|
+
],
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
inputs: [],
|
|
38
|
+
outputs: [n8n_workflow_1.NodeConnectionTypes.AiEmbedding],
|
|
39
|
+
outputNames: ["Embeddings"],
|
|
40
|
+
credentials: [
|
|
41
|
+
{
|
|
42
|
+
name: "caedralApi",
|
|
43
|
+
required: true,
|
|
44
|
+
},
|
|
45
|
+
],
|
|
46
|
+
properties: [
|
|
47
|
+
{
|
|
48
|
+
displayName: "Model",
|
|
49
|
+
name: "model",
|
|
50
|
+
type: "string",
|
|
51
|
+
default: "caedral-embed",
|
|
52
|
+
description: "Embedding model to use. Caedral Embed provides high-quality 1536-dimension vectors.",
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
displayName: "Batch Size",
|
|
56
|
+
name: "batchSize",
|
|
57
|
+
type: "number",
|
|
58
|
+
typeOptions: { minValue: 1, maxValue: 2048 },
|
|
59
|
+
default: 512,
|
|
60
|
+
description: "Maximum number of documents to embed in a single API call",
|
|
61
|
+
},
|
|
62
|
+
],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
async supplyData(itemIndex) {
|
|
66
|
+
const credentials = (await this.getCredentials("caedralApi"));
|
|
67
|
+
const baseUrl = (0, helpers_1.normalizeBaseUrl)(credentials.baseUrl);
|
|
68
|
+
const apiKey = credentials.apiKey;
|
|
69
|
+
const model = this.getNodeParameter("model", itemIndex);
|
|
70
|
+
const batchSize = this.getNodeParameter("batchSize", itemIndex);
|
|
71
|
+
const helpers = this.helpers;
|
|
72
|
+
async function callEmbeddings(input) {
|
|
73
|
+
const url = (0, helpers_1.buildRequestUrl)(baseUrl, "/v1/embeddings");
|
|
74
|
+
const response = (await helpers.httpRequest({
|
|
75
|
+
method: "POST",
|
|
76
|
+
url,
|
|
77
|
+
headers: {
|
|
78
|
+
Authorization: `Bearer ${apiKey}`,
|
|
79
|
+
"Content-Type": "application/json",
|
|
80
|
+
Accept: "application/json",
|
|
81
|
+
},
|
|
82
|
+
body: { model, input },
|
|
83
|
+
json: true,
|
|
84
|
+
}));
|
|
85
|
+
return response.data
|
|
86
|
+
.sort((a, b) => a.index - b.index)
|
|
87
|
+
.map((item) => item.embedding);
|
|
88
|
+
}
|
|
89
|
+
const embeddings = {
|
|
90
|
+
lc_namespace: ["langchain", "embeddings", "caedral"],
|
|
91
|
+
async embedDocuments(documents) {
|
|
92
|
+
if (documents.length === 0)
|
|
93
|
+
return [];
|
|
94
|
+
const results = [];
|
|
95
|
+
for (let i = 0; i < documents.length; i += batchSize) {
|
|
96
|
+
const batch = documents.slice(i, i + batchSize);
|
|
97
|
+
const batchResults = await callEmbeddings(batch);
|
|
98
|
+
results.push(...batchResults);
|
|
99
|
+
}
|
|
100
|
+
return results;
|
|
101
|
+
},
|
|
102
|
+
async embedQuery(query) {
|
|
103
|
+
var _a;
|
|
104
|
+
const results = await callEmbeddings(query);
|
|
105
|
+
return (_a = results[0]) !== null && _a !== void 0 ? _a : [];
|
|
106
|
+
},
|
|
107
|
+
};
|
|
108
|
+
return {
|
|
109
|
+
response: embeddings,
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
exports.CaedralEmbeddings = CaedralEmbeddings;
|
|
114
|
+
//# sourceMappingURL=CaedralEmbeddings.node.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CaedralEmbeddings.node.js","sourceRoot":"","sources":["../../../nodes/CaedralEmbeddings/CaedralEmbeddings.node.ts"],"names":[],"mappings":";;;AAMA,+CAAmD;AAEnD,gDAAuE;AAavE;;;;GAIG;AACH,MAAa,iBAAiB;IAA9B;QACE,gBAAW,GAAyB;YAClC,WAAW,EAAE,oBAAoB;YACjC,IAAI,EAAE,mBAAmB;YACzB,IAAI,EAAE;gBACJ,KAAK,EAAE,8BAA8B;gBACrC,IAAI,EAAE,mCAAmC;aAC1C;YACD,KAAK,EAAE,CAAC,WAAW,CAAC;YACpB,OAAO,EAAE,CAAC;YACV,WAAW,EACT,sEAAsE;YACxE,QAAQ,EAAE;gBACR,IAAI,EAAE,oBAAoB;aAC3B;YACD,KAAK,EAAE;gBACL,UAAU,EAAE,CAAC,IAAI,CAAC;gBAClB,aAAa,EAAE;oBACb,EAAE,EAAE,CAAC,YAAY,CAAC;iBACnB;gBACD,SAAS,EAAE;oBACT,oBAAoB,EAAE;wBACpB,EAAE,GAAG,EAAE,uCAAuC,EAAE;qBACjD;iBACF;aACF;YACD,MAAM,EAAE,EAAE;YACV,OAAO,EAAE,CAAC,kCAAmB,CAAC,WAAW,CAAC;YAC1C,WAAW,EAAE,CAAC,YAAY,CAAC;YAC3B,WAAW,EAAE;gBACX;oBACE,IAAI,EAAE,YAAY;oBAClB,QAAQ,EAAE,IAAI;iBACf;aACF;YACD,UAAU,EAAE;gBACV;oBACE,WAAW,EAAE,OAAO;oBACpB,IAAI,EAAE,OAAO;oBACb,IAAI,EAAE,QAAQ;oBACd,OAAO,EAAE,eAAe;oBACxB,WAAW,EACT,qFAAqF;i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
8
|
+
},
|
|
9
|
+
"resources": {
|
|
10
|
+
"primaryDocumentation": [
|
|
11
|
+
{
|
|
12
|
+
"url": "https://caedral.com/docs/n8n-overview"
|
|
13
|
+
}
|
|
14
|
+
]
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { INodeType, INodeTypeDescription, ISupplyDataFunctions, SupplyData } from "n8n-workflow";
|
|
2
|
+
/**
|
|
3
|
+
* Caedral Reranker — an AI Reranker sub-node compatible with
|
|
4
|
+
* n8n's Vector Store nodes. Implements the compressDocuments pattern
|
|
5
|
+
* (LangChain BaseDocumentCompressor interface) using Caedral /v1/rerank.
|
|
6
|
+
*/
|
|
7
|
+
export declare class CaedralReranker implements INodeType {
|
|
8
|
+
description: INodeTypeDescription;
|
|
9
|
+
supplyData(this: ISupplyDataFunctions, itemIndex: number): Promise<SupplyData>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CaedralReranker = void 0;
|
|
4
|
+
const n8n_workflow_1 = require("n8n-workflow");
|
|
5
|
+
const helpers_1 = require("../Caedral/helpers");
|
|
6
|
+
/**
|
|
7
|
+
* Caedral Reranker — an AI Reranker sub-node compatible with
|
|
8
|
+
* n8n's Vector Store nodes. Implements the compressDocuments pattern
|
|
9
|
+
* (LangChain BaseDocumentCompressor interface) using Caedral /v1/rerank.
|
|
10
|
+
*/
|
|
11
|
+
class CaedralReranker {
|
|
12
|
+
constructor() {
|
|
13
|
+
this.description = {
|
|
14
|
+
displayName: "Caedral Reranker",
|
|
15
|
+
name: "caedralReranker",
|
|
16
|
+
icon: {
|
|
17
|
+
light: "file:../../icons/caedral.svg",
|
|
18
|
+
dark: "file:../../icons/caedral.dark.svg",
|
|
19
|
+
},
|
|
20
|
+
group: ["transform"],
|
|
21
|
+
version: 1,
|
|
22
|
+
description: "Rerank documents by relevance using Caedral for improved retrieval quality",
|
|
23
|
+
defaults: {
|
|
24
|
+
name: "Caedral Reranker",
|
|
25
|
+
},
|
|
26
|
+
codex: {
|
|
27
|
+
categories: ["AI"],
|
|
28
|
+
subcategories: {
|
|
29
|
+
AI: ["Miscellaneous"],
|
|
30
|
+
},
|
|
31
|
+
resources: {
|
|
32
|
+
primaryDocumentation: [
|
|
33
|
+
{ url: "https://caedral.com/docs/n8n-overview" },
|
|
34
|
+
],
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
inputs: [],
|
|
38
|
+
outputs: [n8n_workflow_1.NodeConnectionTypes.AiReranker],
|
|
39
|
+
outputNames: ["Reranker"],
|
|
40
|
+
credentials: [
|
|
41
|
+
{
|
|
42
|
+
name: "caedralApi",
|
|
43
|
+
required: true,
|
|
44
|
+
},
|
|
45
|
+
],
|
|
46
|
+
properties: [
|
|
47
|
+
{
|
|
48
|
+
displayName: "Model",
|
|
49
|
+
name: "model",
|
|
50
|
+
type: "string",
|
|
51
|
+
default: "caedral-rerank",
|
|
52
|
+
description: "Reranking model to use",
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
displayName: "Top N",
|
|
56
|
+
name: "topN",
|
|
57
|
+
type: "number",
|
|
58
|
+
typeOptions: { minValue: 1, maxValue: 100 },
|
|
59
|
+
default: 5,
|
|
60
|
+
description: "Number of most relevant documents to return after reranking",
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
displayName: "Minimum Score",
|
|
64
|
+
name: "minScore",
|
|
65
|
+
type: "number",
|
|
66
|
+
typeOptions: { minValue: 0, maxValue: 1, numberStepSize: 0.05 },
|
|
67
|
+
default: 0,
|
|
68
|
+
description: "Only return documents with a relevance score above this threshold (0 = no filtering)",
|
|
69
|
+
},
|
|
70
|
+
],
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
async supplyData(itemIndex) {
|
|
74
|
+
const credentials = (await this.getCredentials("caedralApi"));
|
|
75
|
+
const baseUrl = (0, helpers_1.normalizeBaseUrl)(credentials.baseUrl);
|
|
76
|
+
const apiKey = credentials.apiKey;
|
|
77
|
+
const model = this.getNodeParameter("model", itemIndex);
|
|
78
|
+
const topN = this.getNodeParameter("topN", itemIndex);
|
|
79
|
+
const minScore = this.getNodeParameter("minScore", itemIndex);
|
|
80
|
+
const helpers = this.helpers;
|
|
81
|
+
const reranker = {
|
|
82
|
+
lc_namespace: ["langchain", "retrievers", "document_compressors", "caedral"],
|
|
83
|
+
async compressDocuments(documents, query) {
|
|
84
|
+
if (documents.length === 0)
|
|
85
|
+
return [];
|
|
86
|
+
const documentTexts = documents.map((doc) => doc.pageContent);
|
|
87
|
+
const url = (0, helpers_1.buildRequestUrl)(baseUrl, "/v1/rerank");
|
|
88
|
+
const response = (await helpers.httpRequest({
|
|
89
|
+
method: "POST",
|
|
90
|
+
url,
|
|
91
|
+
headers: {
|
|
92
|
+
Authorization: `Bearer ${apiKey}`,
|
|
93
|
+
"Content-Type": "application/json",
|
|
94
|
+
Accept: "application/json",
|
|
95
|
+
},
|
|
96
|
+
body: {
|
|
97
|
+
model,
|
|
98
|
+
query,
|
|
99
|
+
documents: documentTexts,
|
|
100
|
+
top_n: Math.min(topN, documents.length),
|
|
101
|
+
},
|
|
102
|
+
json: true,
|
|
103
|
+
}));
|
|
104
|
+
const results = response.results
|
|
105
|
+
.filter((r) => r.relevance_score >= minScore)
|
|
106
|
+
.sort((a, b) => b.relevance_score - a.relevance_score)
|
|
107
|
+
.slice(0, topN);
|
|
108
|
+
return results.map((r) => {
|
|
109
|
+
const original = documents[r.index];
|
|
110
|
+
return {
|
|
111
|
+
pageContent: original.pageContent,
|
|
112
|
+
metadata: {
|
|
113
|
+
...original.metadata,
|
|
114
|
+
relevance_score: r.relevance_score,
|
|
115
|
+
},
|
|
116
|
+
};
|
|
117
|
+
});
|
|
118
|
+
},
|
|
119
|
+
};
|
|
120
|
+
return {
|
|
121
|
+
response: reranker,
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
exports.CaedralReranker = CaedralReranker;
|
|
126
|
+
//# sourceMappingURL=CaedralReranker.node.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CaedralReranker.node.js","sourceRoot":"","sources":["../../../nodes/CaedralReranker/CaedralReranker.node.ts"],"names":[],"mappings":";;;AAMA,+CAAmD;AAEnD,gDAAuE;AAsBvE;;;;GAIG;AACH,MAAa,eAAe;IAA5B;QACE,gBAAW,GAAyB;YAClC,WAAW,EAAE,kBAAkB;YAC/B,IAAI,EAAE,iBAAiB;YACvB,IAAI,EAAE;gBACJ,KAAK,EAAE,8BAA8B;gBACrC,IAAI,EAAE,mCAAmC;aAC1C;YACD,KAAK,EAAE,CAAC,WAAW,CAAC;YACpB,OAAO,EAAE,CAAC;YACV,WAAW,EACT,4EAA4E;YAC9E,QAAQ,EAAE;gBACR,IAAI,EAAE,kBAAkB;aACzB;YACD,KAAK,EAAE;gBACL,UAAU,EAAE,CAAC,IAAI,CAAC;gBAClB,aAAa,EAAE;oBACb,EAAE,EAAE,CAAC,eAAe,CAAC;iBACtB;gBACD,SAAS,EAAE;oBACT,oBAAoB,EAAE;wBACpB,EAAE,GAAG,EAAE,uCAAuC,EAAE;qBACjD;iBACF;aACF;YACD,MAAM,EAAE,EAAE;YACV,OAAO,EAAE,CAAC,kCAAmB,CAAC,UAAU,CAAC;YACzC,WAAW,EAAE,CAAC,UAAU,CAAC;YACzB,WAAW,EAAE;gBACX;oBACE,IAAI,EAAE,YAAY;oBAClB,QAAQ,EAAE,IAAI;iBACf;aACF;YACD,UAAU,EAAE;gBACV;oBACE,WAAW,EAAE,OAAO;oBACpB,IAAI,EAAE,OAAO;oBACb,IAAI,EAAE,QAAQ;oBACd,OAAO,EAAE,gBAAgB;oBACzB,WAAW,EAAE,wBAAwB;iBACtC;gBACD;oBACE,WAAW,EAAE,OAAO;oBACpB,IAAI,EAAE,MAAM;oBACZ,IAAI,EAAE,QAAQ;oBACd,WAA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jID,0CAiIC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"node": "n8n-nodes-caedral.caedralReranker",
|
|
3
|
+
"nodeVersion": "1.0",
|
|
4
|
+
"codexVersion": "1.0",
|
|
5
|
+
"categories": ["AI"],
|
|
6
|
+
"subcategories": {
|
|
7
|
+
"AI": ["Miscellaneous"]
|
|
8
|
+
},
|
|
9
|
+
"resources": {
|
|
10
|
+
"primaryDocumentation": [
|
|
11
|
+
{
|
|
12
|
+
"url": "https://caedral.com/docs/n8n-overview"
|
|
13
|
+
}
|
|
14
|
+
]
|
|
15
|
+
}
|
|
16
|
+
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "n8n-nodes-caedral",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "n8n community node for Caedral AI — chat, images, embeddings, audio, rerank, AI agents, and triggers",
|
|
3
|
+
"version": "0.3.0",
|
|
4
|
+
"description": "n8n community node for Caedral AI — chat, images, embeddings, audio, rerank, AI agents, vector stores, and triggers",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"n8n-community-node-package",
|
|
@@ -14,7 +14,10 @@
|
|
|
14
14
|
"embeddings",
|
|
15
15
|
"image-generation",
|
|
16
16
|
"rerank",
|
|
17
|
-
"ai-agent"
|
|
17
|
+
"ai-agent",
|
|
18
|
+
"vector-store",
|
|
19
|
+
"embeddings-model",
|
|
20
|
+
"reranker"
|
|
18
21
|
],
|
|
19
22
|
"author": {
|
|
20
23
|
"name": "Caedral",
|
|
@@ -48,6 +51,8 @@
|
|
|
48
51
|
"nodes": [
|
|
49
52
|
"dist/nodes/Caedral/Caedral.node.js",
|
|
50
53
|
"dist/nodes/CaedralChatModel/CaedralChatModel.node.js",
|
|
54
|
+
"dist/nodes/CaedralEmbeddings/CaedralEmbeddings.node.js",
|
|
55
|
+
"dist/nodes/CaedralReranker/CaedralReranker.node.js",
|
|
51
56
|
"dist/nodes/CaedralTrigger/CaedralTrigger.node.js"
|
|
52
57
|
]
|
|
53
58
|
},
|