n8n-nodes-berget-mk 0.4.6 → 0.4.7
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.
|
@@ -59,6 +59,14 @@ class BergetAiEmbeddingsModel {
|
|
|
59
59
|
default: 512,
|
|
60
60
|
description: 'Number of documents to embed per API request',
|
|
61
61
|
},
|
|
62
|
+
{
|
|
63
|
+
displayName: 'Dimensions',
|
|
64
|
+
name: 'dimensions',
|
|
65
|
+
type: 'number',
|
|
66
|
+
typeOptions: { minValue: 1 },
|
|
67
|
+
default: 1024,
|
|
68
|
+
description: "The number of dimensions the resulting embedding vectors should have. When omitted or left at the model's native size, the full embedding is returned. Berget's default embedding model intfloat/multilingual-e5-large-instruct produces 1024-dimensional vectors natively. Lower values produce smaller vectors at some cost to retrieval quality — useful when storing many embeddings or when your vector store has a fixed dimension. Must match the dimension your Vector Store is configured for, or indexing will fail.",
|
|
69
|
+
},
|
|
62
70
|
{
|
|
63
71
|
displayName: 'Strip New Lines',
|
|
64
72
|
name: 'stripNewLines',
|
|
@@ -115,6 +123,7 @@ class BergetAiEmbeddingsModel {
|
|
|
115
123
|
batchSize: (_a = options.batchSize) !== null && _a !== void 0 ? _a : 512,
|
|
116
124
|
stripNewLines: (_b = options.stripNewLines) !== null && _b !== void 0 ? _b : true,
|
|
117
125
|
timeout: (_c = options.timeout) !== null && _c !== void 0 ? _c : 60000,
|
|
126
|
+
...(options.dimensions ? { dimensions: options.dimensions } : {}),
|
|
118
127
|
});
|
|
119
128
|
return { response: embeddings };
|
|
120
129
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "n8n-nodes-berget-mk",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.7",
|
|
4
4
|
"description": "n8n community node for Berget AI. Multi-resource action node (chat, OCR, rerank, speech-to-text) plus Chat Model and Embeddings Model sub-nodes that plug into n8n's built-in AI Agent and Vector Store nodes.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"n8n-community-node-package",
|