@youngkang/n8n-nodes-seedos 0.1.0 → 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.
|
@@ -171,6 +171,18 @@ class SeedOS {
|
|
|
171
171
|
default: 'gpt-4',
|
|
172
172
|
description: 'Model name',
|
|
173
173
|
},
|
|
174
|
+
{
|
|
175
|
+
displayName: 'Search Top K',
|
|
176
|
+
name: 'searchTopK',
|
|
177
|
+
type: 'number',
|
|
178
|
+
displayOptions: {
|
|
179
|
+
show: {
|
|
180
|
+
operation: ['query'],
|
|
181
|
+
},
|
|
182
|
+
},
|
|
183
|
+
default: 5,
|
|
184
|
+
description: 'Number of memories to search for context',
|
|
185
|
+
},
|
|
174
186
|
// Proof fields
|
|
175
187
|
{
|
|
176
188
|
displayName: 'Address',
|
|
@@ -247,9 +259,10 @@ class SeedOS {
|
|
|
247
259
|
break;
|
|
248
260
|
case 'query':
|
|
249
261
|
responseData = await GenericFunctions_1.seedosApiRequest.call(this, 'POST', '/query', {
|
|
250
|
-
|
|
262
|
+
query: this.getNodeParameter('question', i),
|
|
251
263
|
llm_provider: this.getNodeParameter('llmProvider', i),
|
|
252
264
|
model: this.getNodeParameter('model', i),
|
|
265
|
+
search_top_k: this.getNodeParameter('searchTopK', i, 5),
|
|
253
266
|
});
|
|
254
267
|
break;
|
|
255
268
|
case 'identity':
|