Flowise

Форк
0
548 строк · 22.4 Кб
1
{
2
    "description": "Use BabyAGI to create tasks and reprioritize for a given objective",
3
    "categories": "BabyAGI,ChatOpenAI,Pinecone,Langchain",
4
    "framework": "Langchain",
5
    "nodes": [
6
        {
7
            "width": 300,
8
            "height": 379,
9
            "id": "babyAGI_1",
10
            "position": {
11
                "x": 950.8042093214954,
12
                "y": 66.00028106865324
13
            },
14
            "type": "customNode",
15
            "data": {
16
                "id": "babyAGI_1",
17
                "label": "BabyAGI",
18
                "version": 2,
19
                "name": "babyAGI",
20
                "type": "BabyAGI",
21
                "baseClasses": ["BabyAGI"],
22
                "category": "Agents",
23
                "description": "Task Driven Autonomous Agent which creates new task and reprioritizes task list based on objective",
24
                "inputParams": [
25
                    {
26
                        "label": "Task Loop",
27
                        "name": "taskLoop",
28
                        "type": "number",
29
                        "default": 3,
30
                        "id": "babyAGI_1-input-taskLoop-number"
31
                    }
32
                ],
33
                "inputAnchors": [
34
                    {
35
                        "label": "Chat Model",
36
                        "name": "model",
37
                        "type": "BaseChatModel",
38
                        "id": "babyAGI_1-input-model-BaseChatModel"
39
                    },
40
                    {
41
                        "label": "Vector Store",
42
                        "name": "vectorStore",
43
                        "type": "VectorStore",
44
                        "id": "babyAGI_1-input-vectorStore-VectorStore"
45
                    },
46
                    {
47
                        "label": "Input Moderation",
48
                        "description": "Detect text that could generate harmful output and prevent it from being sent to the language model",
49
                        "name": "inputModeration",
50
                        "type": "Moderation",
51
                        "optional": true,
52
                        "list": true,
53
                        "id": "babyAGI_1-input-inputModeration-Moderation"
54
                    }
55
                ],
56
                "inputs": {
57
                    "inputModeration": "",
58
                    "model": "{{chatOpenAI_0.data.instance}}",
59
                    "vectorStore": "{{pinecone_0.data.instance}}",
60
                    "taskLoop": 3
61
                },
62
                "outputAnchors": [
63
                    {
64
                        "id": "babyAGI_1-output-babyAGI-BabyAGI",
65
                        "name": "babyAGI",
66
                        "label": "BabyAGI",
67
                        "type": "BabyAGI"
68
                    }
69
                ],
70
                "outputs": {},
71
                "selected": false
72
            },
73
            "selected": false,
74
            "dragging": false,
75
            "positionAbsolute": {
76
                "x": 950.8042093214954,
77
                "y": 66.00028106865324
78
            }
79
        },
80
        {
81
            "width": 300,
82
            "height": 329,
83
            "id": "openAIEmbeddings_0",
84
            "position": {
85
                "x": -111.82510263637522,
86
                "y": -224.88655030419665
87
            },
88
            "type": "customNode",
89
            "data": {
90
                "id": "openAIEmbeddings_0",
91
                "label": "OpenAI Embeddings",
92
                "version": 3,
93
                "name": "openAIEmbeddings",
94
                "type": "OpenAIEmbeddings",
95
                "baseClasses": ["OpenAIEmbeddings", "Embeddings"],
96
                "category": "Embeddings",
97
                "description": "OpenAI API to generate embeddings for a given text",
98
                "inputParams": [
99
                    {
100
                        "label": "Connect Credential",
101
                        "name": "credential",
102
                        "type": "credential",
103
                        "credentialNames": ["openAIApi"],
104
                        "id": "openAIEmbeddings_0-input-credential-credential"
105
                    },
106
                    {
107
                        "label": "Model Name",
108
                        "name": "modelName",
109
                        "type": "asyncOptions",
110
                        "loadMethod": "listModels",
111
                        "default": "text-embedding-ada-002",
112
                        "id": "openAIEmbeddings_0-input-modelName-options"
113
                    },
114
                    {
115
                        "label": "Strip New Lines",
116
                        "name": "stripNewLines",
117
                        "type": "boolean",
118
                        "optional": true,
119
                        "additionalParams": true,
120
                        "id": "openAIEmbeddings_0-input-stripNewLines-boolean"
121
                    },
122
                    {
123
                        "label": "Batch Size",
124
                        "name": "batchSize",
125
                        "type": "number",
126
                        "optional": true,
127
                        "additionalParams": true,
128
                        "id": "openAIEmbeddings_0-input-batchSize-number"
129
                    },
130
                    {
131
                        "label": "Timeout",
132
                        "name": "timeout",
133
                        "type": "number",
134
                        "optional": true,
135
                        "additionalParams": true,
136
                        "id": "openAIEmbeddings_0-input-timeout-number"
137
                    },
138
                    {
139
                        "label": "BasePath",
140
                        "name": "basepath",
141
                        "type": "string",
142
                        "optional": true,
143
                        "additionalParams": true,
144
                        "id": "openAIEmbeddings_0-input-basepath-string"
145
                    }
146
                ],
147
                "inputAnchors": [],
148
                "inputs": {
149
                    "stripNewLines": "",
150
                    "batchSize": "",
151
                    "timeout": "",
152
                    "basepath": "",
153
                    "modelName": "text-embedding-ada-002"
154
                },
155
                "outputAnchors": [
156
                    {
157
                        "id": "openAIEmbeddings_0-output-openAIEmbeddings-OpenAIEmbeddings|Embeddings",
158
                        "name": "openAIEmbeddings",
159
                        "label": "OpenAIEmbeddings",
160
                        "type": "OpenAIEmbeddings | Embeddings"
161
                    }
162
                ],
163
                "outputs": {},
164
                "selected": false
165
            },
166
            "selected": false,
167
            "positionAbsolute": {
168
                "x": -111.82510263637522,
169
                "y": -224.88655030419665
170
            },
171
            "dragging": false
172
        },
173
        {
174
            "width": 300,
175
            "height": 555,
176
            "id": "pinecone_0",
177
            "position": {
178
                "x": 238.1350223788262,
179
                "y": -133.38073692212225
180
            },
181
            "type": "customNode",
182
            "data": {
183
                "id": "pinecone_0",
184
                "label": "Pinecone",
185
                "version": 2,
186
                "name": "pinecone",
187
                "type": "Pinecone",
188
                "baseClasses": ["Pinecone", "VectorStoreRetriever", "BaseRetriever"],
189
                "category": "Vector Stores",
190
                "description": "Upsert embedded data and perform similarity or mmr search using Pinecone, a leading fully managed hosted vector database",
191
                "inputParams": [
192
                    {
193
                        "label": "Connect Credential",
194
                        "name": "credential",
195
                        "type": "credential",
196
                        "credentialNames": ["pineconeApi"],
197
                        "id": "pinecone_0-input-credential-credential"
198
                    },
199
                    {
200
                        "label": "Pinecone Index",
201
                        "name": "pineconeIndex",
202
                        "type": "string",
203
                        "id": "pinecone_0-input-pineconeIndex-string"
204
                    },
205
                    {
206
                        "label": "Pinecone Namespace",
207
                        "name": "pineconeNamespace",
208
                        "type": "string",
209
                        "placeholder": "my-first-namespace",
210
                        "additionalParams": true,
211
                        "optional": true,
212
                        "id": "pinecone_0-input-pineconeNamespace-string"
213
                    },
214
                    {
215
                        "label": "Pinecone Metadata Filter",
216
                        "name": "pineconeMetadataFilter",
217
                        "type": "json",
218
                        "optional": true,
219
                        "additionalParams": true,
220
                        "id": "pinecone_0-input-pineconeMetadataFilter-json"
221
                    },
222
                    {
223
                        "label": "Top K",
224
                        "name": "topK",
225
                        "description": "Number of top results to fetch. Default to 4",
226
                        "placeholder": "4",
227
                        "type": "number",
228
                        "additionalParams": true,
229
                        "optional": true,
230
                        "id": "pinecone_0-input-topK-number"
231
                    },
232
                    {
233
                        "label": "Search Type",
234
                        "name": "searchType",
235
                        "type": "options",
236
                        "default": "similarity",
237
                        "options": [
238
                            {
239
                                "label": "Similarity",
240
                                "name": "similarity"
241
                            },
242
                            {
243
                                "label": "Max Marginal Relevance",
244
                                "name": "mmr"
245
                            }
246
                        ],
247
                        "additionalParams": true,
248
                        "optional": true,
249
                        "id": "pinecone_0-input-searchType-options"
250
                    },
251
                    {
252
                        "label": "Fetch K (for MMR Search)",
253
                        "name": "fetchK",
254
                        "description": "Number of initial documents to fetch for MMR reranking. Default to 20. Used only when the search type is MMR",
255
                        "placeholder": "20",
256
                        "type": "number",
257
                        "additionalParams": true,
258
                        "optional": true,
259
                        "id": "pinecone_0-input-fetchK-number"
260
                    },
261
                    {
262
                        "label": "Lambda (for MMR Search)",
263
                        "name": "lambda",
264
                        "description": "Number between 0 and 1 that determines the degree of diversity among the results, where 0 corresponds to maximum diversity and 1 to minimum diversity. Used only when the search type is MMR",
265
                        "placeholder": "0.5",
266
                        "type": "number",
267
                        "additionalParams": true,
268
                        "optional": true,
269
                        "id": "pinecone_0-input-lambda-number"
270
                    }
271
                ],
272
                "inputAnchors": [
273
                    {
274
                        "label": "Document",
275
                        "name": "document",
276
                        "type": "Document",
277
                        "list": true,
278
                        "optional": true,
279
                        "id": "pinecone_0-input-document-Document"
280
                    },
281
                    {
282
                        "label": "Embeddings",
283
                        "name": "embeddings",
284
                        "type": "Embeddings",
285
                        "id": "pinecone_0-input-embeddings-Embeddings"
286
                    }
287
                ],
288
                "inputs": {
289
                    "document": "",
290
                    "embeddings": "{{openAIEmbeddings_0.data.instance}}",
291
                    "pineconeIndex": "",
292
                    "pineconeNamespace": "",
293
                    "pineconeMetadataFilter": "",
294
                    "topK": "",
295
                    "searchType": "similarity",
296
                    "fetchK": "",
297
                    "lambda": ""
298
                },
299
                "outputAnchors": [
300
                    {
301
                        "name": "output",
302
                        "label": "Output",
303
                        "type": "options",
304
                        "options": [
305
                            {
306
                                "id": "pinecone_0-output-retriever-Pinecone|VectorStoreRetriever|BaseRetriever",
307
                                "name": "retriever",
308
                                "label": "Pinecone Retriever",
309
                                "type": "Pinecone | VectorStoreRetriever | BaseRetriever"
310
                            },
311
                            {
312
                                "id": "pinecone_0-output-vectorStore-Pinecone|VectorStore",
313
                                "name": "vectorStore",
314
                                "label": "Pinecone Vector Store",
315
                                "type": "Pinecone | VectorStore"
316
                            }
317
                        ],
318
                        "default": "retriever"
319
                    }
320
                ],
321
                "outputs": {
322
                    "output": "vectorStore"
323
                },
324
                "selected": false
325
            },
326
            "selected": false,
327
            "positionAbsolute": {
328
                "x": 238.1350223788262,
329
                "y": -133.38073692212225
330
            },
331
            "dragging": false
332
        },
333
        {
334
            "width": 300,
335
            "height": 574,
336
            "id": "chatOpenAI_0",
337
            "position": {
338
                "x": 600.5963052289515,
339
                "y": -359.24280496678995
340
            },
341
            "type": "customNode",
342
            "data": {
343
                "id": "chatOpenAI_0",
344
                "label": "ChatOpenAI",
345
                "version": 6.0,
346
                "name": "chatOpenAI",
347
                "type": "ChatOpenAI",
348
                "baseClasses": ["ChatOpenAI", "BaseChatModel", "BaseLanguageModel", "Runnable"],
349
                "category": "Chat Models",
350
                "description": "Wrapper around OpenAI large language models that use the Chat endpoint",
351
                "inputParams": [
352
                    {
353
                        "label": "Connect Credential",
354
                        "name": "credential",
355
                        "type": "credential",
356
                        "credentialNames": ["openAIApi"],
357
                        "id": "chatOpenAI_0-input-credential-credential"
358
                    },
359
                    {
360
                        "label": "Model Name",
361
                        "name": "modelName",
362
                        "type": "asyncOptions",
363
                        "loadMethod": "listModels",
364
                        "default": "gpt-3.5-turbo",
365
                        "id": "chatOpenAI_0-input-modelName-options"
366
                    },
367
                    {
368
                        "label": "Temperature",
369
                        "name": "temperature",
370
                        "type": "number",
371
                        "step": 0.1,
372
                        "default": 0.9,
373
                        "optional": true,
374
                        "id": "chatOpenAI_0-input-temperature-number"
375
                    },
376
                    {
377
                        "label": "Max Tokens",
378
                        "name": "maxTokens",
379
                        "type": "number",
380
                        "step": 1,
381
                        "optional": true,
382
                        "additionalParams": true,
383
                        "id": "chatOpenAI_0-input-maxTokens-number"
384
                    },
385
                    {
386
                        "label": "Top Probability",
387
                        "name": "topP",
388
                        "type": "number",
389
                        "step": 0.1,
390
                        "optional": true,
391
                        "additionalParams": true,
392
                        "id": "chatOpenAI_0-input-topP-number"
393
                    },
394
                    {
395
                        "label": "Frequency Penalty",
396
                        "name": "frequencyPenalty",
397
                        "type": "number",
398
                        "step": 0.1,
399
                        "optional": true,
400
                        "additionalParams": true,
401
                        "id": "chatOpenAI_0-input-frequencyPenalty-number"
402
                    },
403
                    {
404
                        "label": "Presence Penalty",
405
                        "name": "presencePenalty",
406
                        "type": "number",
407
                        "step": 0.1,
408
                        "optional": true,
409
                        "additionalParams": true,
410
                        "id": "chatOpenAI_0-input-presencePenalty-number"
411
                    },
412
                    {
413
                        "label": "Timeout",
414
                        "name": "timeout",
415
                        "type": "number",
416
                        "step": 1,
417
                        "optional": true,
418
                        "additionalParams": true,
419
                        "id": "chatOpenAI_0-input-timeout-number"
420
                    },
421
                    {
422
                        "label": "BasePath",
423
                        "name": "basepath",
424
                        "type": "string",
425
                        "optional": true,
426
                        "additionalParams": true,
427
                        "id": "chatOpenAI_0-input-basepath-string"
428
                    },
429
                    {
430
                        "label": "BaseOptions",
431
                        "name": "baseOptions",
432
                        "type": "json",
433
                        "optional": true,
434
                        "additionalParams": true,
435
                        "id": "chatOpenAI_0-input-baseOptions-json"
436
                    },
437
                    {
438
                        "label": "Allow Image Uploads",
439
                        "name": "allowImageUploads",
440
                        "type": "boolean",
441
                        "description": "Automatically uses gpt-4-vision-preview when image is being uploaded from chat. Only works with LLMChain, Conversation Chain, ReAct Agent, and Conversational Agent",
442
                        "default": false,
443
                        "optional": true,
444
                        "id": "chatOpenAI_0-input-allowImageUploads-boolean"
445
                    },
446
                    {
447
                        "label": "Image Resolution",
448
                        "description": "This parameter controls the resolution in which the model views the image.",
449
                        "name": "imageResolution",
450
                        "type": "options",
451
                        "options": [
452
                            {
453
                                "label": "Low",
454
                                "name": "low"
455
                            },
456
                            {
457
                                "label": "High",
458
                                "name": "high"
459
                            },
460
                            {
461
                                "label": "Auto",
462
                                "name": "auto"
463
                            }
464
                        ],
465
                        "default": "low",
466
                        "optional": false,
467
                        "additionalParams": true,
468
                        "id": "chatOpenAI_0-input-imageResolution-options"
469
                    }
470
                ],
471
                "inputAnchors": [
472
                    {
473
                        "label": "Cache",
474
                        "name": "cache",
475
                        "type": "BaseCache",
476
                        "optional": true,
477
                        "id": "chatOpenAI_0-input-cache-BaseCache"
478
                    }
479
                ],
480
                "inputs": {
481
                    "cache": "",
482
                    "modelName": "gpt-3.5-turbo",
483
                    "temperature": 0.9,
484
                    "maxTokens": "",
485
                    "topP": "",
486
                    "frequencyPenalty": "",
487
                    "presencePenalty": "",
488
                    "timeout": "",
489
                    "basepath": "",
490
                    "baseOptions": "",
491
                    "allowImageUploads": true,
492
                    "imageResolution": "low"
493
                },
494
                "outputAnchors": [
495
                    {
496
                        "id": "chatOpenAI_0-output-chatOpenAI-ChatOpenAI|BaseChatModel|BaseLanguageModel|Runnable",
497
                        "name": "chatOpenAI",
498
                        "label": "ChatOpenAI",
499
                        "type": "ChatOpenAI | BaseChatModel | BaseLanguageModel | Runnable"
500
                    }
501
                ],
502
                "outputs": {},
503
                "selected": false
504
            },
505
            "selected": false,
506
            "positionAbsolute": {
507
                "x": 600.5963052289515,
508
                "y": -359.24280496678995
509
            },
510
            "dragging": false
511
        }
512
    ],
513
    "edges": [
514
        {
515
            "source": "openAIEmbeddings_0",
516
            "sourceHandle": "openAIEmbeddings_0-output-openAIEmbeddings-OpenAIEmbeddings|Embeddings",
517
            "target": "pinecone_0",
518
            "targetHandle": "pinecone_0-input-embeddings-Embeddings",
519
            "type": "buttonedge",
520
            "id": "openAIEmbeddings_0-openAIEmbeddings_0-output-openAIEmbeddings-OpenAIEmbeddings|Embeddings-pinecone_0-pinecone_0-input-embeddings-Embeddings",
521
            "data": {
522
                "label": ""
523
            }
524
        },
525
        {
526
            "source": "chatOpenAI_0",
527
            "sourceHandle": "chatOpenAI_0-output-chatOpenAI-ChatOpenAI|BaseChatModel|BaseLanguageModel|Runnable",
528
            "target": "babyAGI_1",
529
            "targetHandle": "babyAGI_1-input-model-BaseChatModel",
530
            "type": "buttonedge",
531
            "id": "chatOpenAI_0-chatOpenAI_0-output-chatOpenAI-ChatOpenAI|BaseChatModel|BaseLanguageModel|Runnable-babyAGI_1-babyAGI_1-input-model-BaseChatModel",
532
            "data": {
533
                "label": ""
534
            }
535
        },
536
        {
537
            "source": "pinecone_0",
538
            "sourceHandle": "pinecone_0-output-vectorStore-Pinecone|VectorStore",
539
            "target": "babyAGI_1",
540
            "targetHandle": "babyAGI_1-input-vectorStore-VectorStore",
541
            "type": "buttonedge",
542
            "id": "pinecone_0-pinecone_0-output-vectorStore-Pinecone|VectorStore-babyAGI_1-babyAGI_1-input-vectorStore-VectorStore",
543
            "data": {
544
                "label": ""
545
            }
546
        }
547
    ]
548
}
549

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.