Flowise

Форк
0
/
Multi Retrieval QA Chain.json 
1111 строк · 47.0 Кб
1
{
2
    "description": "A chain that automatically picks an appropriate retriever from multiple different vector databases",
3
    "categories": "ChatOpenAI,Multi Retrieval QA Chain,Pinecone,Chroma,Supabase,Langchain",
4
    "framework": "Langchain",
5
    "nodes": [
6
        {
7
            "width": 300,
8
            "height": 505,
9
            "id": "vectorStoreRetriever_0",
10
            "position": {
11
                "x": 712.9322670298264,
12
                "y": 860.5462810572917
13
            },
14
            "type": "customNode",
15
            "data": {
16
                "id": "vectorStoreRetriever_0",
17
                "label": "Vector Store Retriever",
18
                "version": 1,
19
                "name": "vectorStoreRetriever",
20
                "type": "VectorStoreRetriever",
21
                "baseClasses": ["VectorStoreRetriever"],
22
                "category": "Retrievers",
23
                "description": "Store vector store as retriever. Used with MultiRetrievalQAChain",
24
                "inputParams": [
25
                    {
26
                        "label": "Retriever Name",
27
                        "name": "name",
28
                        "type": "string",
29
                        "placeholder": "netflix movies",
30
                        "id": "vectorStoreRetriever_0-input-name-string"
31
                    },
32
                    {
33
                        "label": "Retriever Description",
34
                        "name": "description",
35
                        "type": "string",
36
                        "rows": 3,
37
                        "description": "Description of when to use the vector store retriever",
38
                        "placeholder": "Good for answering questions about netflix movies",
39
                        "id": "vectorStoreRetriever_0-input-description-string"
40
                    }
41
                ],
42
                "inputAnchors": [
43
                    {
44
                        "label": "Vector Store",
45
                        "name": "vectorStore",
46
                        "type": "VectorStore",
47
                        "id": "vectorStoreRetriever_0-input-vectorStore-VectorStore"
48
                    }
49
                ],
50
                "inputs": {
51
                    "vectorStore": "{{supabase_0.data.instance}}",
52
                    "name": "aqua teen",
53
                    "description": "Good for answering questions about Aqua Teen Hunger Force theme song"
54
                },
55
                "outputAnchors": [
56
                    {
57
                        "id": "vectorStoreRetriever_0-output-vectorStoreRetriever-VectorStoreRetriever",
58
                        "name": "vectorStoreRetriever",
59
                        "label": "VectorStoreRetriever",
60
                        "type": "VectorStoreRetriever"
61
                    }
62
                ],
63
                "outputs": {},
64
                "selected": false
65
            },
66
            "selected": false,
67
            "positionAbsolute": {
68
                "x": 712.9322670298264,
69
                "y": 860.5462810572917
70
            },
71
            "dragging": false
72
        },
73
        {
74
            "width": 300,
75
            "height": 377,
76
            "id": "multiRetrievalQAChain_0",
77
            "position": {
78
                "x": 1563.0150452201099,
79
                "y": 460.78375893303934
80
            },
81
            "type": "customNode",
82
            "data": {
83
                "id": "multiRetrievalQAChain_0",
84
                "label": "Multi Retrieval QA Chain",
85
                "version": 2,
86
                "name": "multiRetrievalQAChain",
87
                "type": "MultiRetrievalQAChain",
88
                "baseClasses": ["MultiRetrievalQAChain", "MultiRouteChain", "BaseChain", "BaseLangChain"],
89
                "category": "Chains",
90
                "description": "QA Chain that automatically picks an appropriate vector store from multiple retrievers",
91
                "inputParams": [
92
                    {
93
                        "label": "Return Source Documents",
94
                        "name": "returnSourceDocuments",
95
                        "type": "boolean",
96
                        "optional": true
97
                    }
98
                ],
99
                "inputAnchors": [
100
                    {
101
                        "label": "Language Model",
102
                        "name": "model",
103
                        "type": "BaseLanguageModel",
104
                        "id": "multiRetrievalQAChain_0-input-model-BaseLanguageModel"
105
                    },
106
                    {
107
                        "label": "Vector Store Retriever",
108
                        "name": "vectorStoreRetriever",
109
                        "type": "VectorStoreRetriever",
110
                        "list": true,
111
                        "id": "multiRetrievalQAChain_0-input-vectorStoreRetriever-VectorStoreRetriever"
112
                    },
113
                    {
114
                        "label": "Input Moderation",
115
                        "description": "Detect text that could generate harmful output and prevent it from being sent to the language model",
116
                        "name": "inputModeration",
117
                        "type": "Moderation",
118
                        "optional": true,
119
                        "list": true,
120
                        "id": "multiRetrievalQAChain_0-input-inputModeration-Moderation"
121
                    }
122
                ],
123
                "inputs": {
124
                    "inputModeration": "",
125
                    "model": "{{chatOpenAI_0.data.instance}}",
126
                    "vectorStoreRetriever": [
127
                        "{{vectorStoreRetriever_0.data.instance}}",
128
                        "{{vectorStoreRetriever_1.data.instance}}",
129
                        "{{vectorStoreRetriever_2.data.instance}}"
130
                    ]
131
                },
132
                "outputAnchors": [
133
                    {
134
                        "id": "multiRetrievalQAChain_0-output-multiRetrievalQAChain-MultiRetrievalQAChain|MultiRouteChain|BaseChain|BaseLangChain",
135
                        "name": "multiRetrievalQAChain",
136
                        "label": "MultiRetrievalQAChain",
137
                        "type": "MultiRetrievalQAChain | MultiRouteChain | BaseChain | BaseLangChain"
138
                    }
139
                ],
140
                "outputs": {},
141
                "selected": false
142
            },
143
            "selected": false,
144
            "positionAbsolute": {
145
                "x": 1563.0150452201099,
146
                "y": 460.78375893303934
147
            },
148
            "dragging": false
149
        },
150
        {
151
            "width": 300,
152
            "height": 505,
153
            "id": "vectorStoreRetriever_1",
154
            "position": {
155
                "x": 711.4902931206071,
156
                "y": 315.2414600651632
157
            },
158
            "type": "customNode",
159
            "data": {
160
                "id": "vectorStoreRetriever_1",
161
                "label": "Vector Store Retriever",
162
                "version": 1,
163
                "name": "vectorStoreRetriever",
164
                "type": "VectorStoreRetriever",
165
                "baseClasses": ["VectorStoreRetriever"],
166
                "category": "Retrievers",
167
                "description": "Store vector store as retriever. Used with MultiRetrievalQAChain",
168
                "inputParams": [
169
                    {
170
                        "label": "Retriever Name",
171
                        "name": "name",
172
                        "type": "string",
173
                        "placeholder": "netflix movies",
174
                        "id": "vectorStoreRetriever_1-input-name-string"
175
                    },
176
                    {
177
                        "label": "Retriever Description",
178
                        "name": "description",
179
                        "type": "string",
180
                        "rows": 3,
181
                        "description": "Description of when to use the vector store retriever",
182
                        "placeholder": "Good for answering questions about netflix movies",
183
                        "id": "vectorStoreRetriever_1-input-description-string"
184
                    }
185
                ],
186
                "inputAnchors": [
187
                    {
188
                        "label": "Vector Store",
189
                        "name": "vectorStore",
190
                        "type": "VectorStore",
191
                        "id": "vectorStoreRetriever_1-input-vectorStore-VectorStore"
192
                    }
193
                ],
194
                "inputs": {
195
                    "vectorStore": "{{chroma_0.data.instance}}",
196
                    "name": "mst3k",
197
                    "description": "Good for answering questions about Mystery Science Theater 3000 theme song"
198
                },
199
                "outputAnchors": [
200
                    {
201
                        "id": "vectorStoreRetriever_1-output-vectorStoreRetriever-VectorStoreRetriever",
202
                        "name": "vectorStoreRetriever",
203
                        "label": "VectorStoreRetriever",
204
                        "type": "VectorStoreRetriever"
205
                    }
206
                ],
207
                "outputs": {},
208
                "selected": false
209
            },
210
            "selected": false,
211
            "positionAbsolute": {
212
                "x": 711.4902931206071,
213
                "y": 315.2414600651632
214
            },
215
            "dragging": false
216
        },
217
        {
218
            "width": 300,
219
            "height": 505,
220
            "id": "vectorStoreRetriever_2",
221
            "position": {
222
                "x": 706.0716220151372,
223
                "y": -217.51566869136752
224
            },
225
            "type": "customNode",
226
            "data": {
227
                "id": "vectorStoreRetriever_2",
228
                "label": "Vector Store Retriever",
229
                "version": 1,
230
                "name": "vectorStoreRetriever",
231
                "type": "VectorStoreRetriever",
232
                "baseClasses": ["VectorStoreRetriever"],
233
                "category": "Retrievers",
234
                "description": "Store vector store as retriever. Used with MultiRetrievalQAChain",
235
                "inputParams": [
236
                    {
237
                        "label": "Retriever Name",
238
                        "name": "name",
239
                        "type": "string",
240
                        "placeholder": "netflix movies",
241
                        "id": "vectorStoreRetriever_2-input-name-string"
242
                    },
243
                    {
244
                        "label": "Retriever Description",
245
                        "name": "description",
246
                        "type": "string",
247
                        "rows": 3,
248
                        "description": "Description of when to use the vector store retriever",
249
                        "placeholder": "Good for answering questions about netflix movies",
250
                        "id": "vectorStoreRetriever_2-input-description-string"
251
                    }
252
                ],
253
                "inputAnchors": [
254
                    {
255
                        "label": "Vector Store",
256
                        "name": "vectorStore",
257
                        "type": "VectorStore",
258
                        "id": "vectorStoreRetriever_2-input-vectorStore-VectorStore"
259
                    }
260
                ],
261
                "inputs": {
262
                    "vectorStore": "{{pinecone_0.data.instance}}",
263
                    "name": "animaniacs",
264
                    "description": "Good for answering questions about Animaniacs theme song"
265
                },
266
                "outputAnchors": [
267
                    {
268
                        "id": "vectorStoreRetriever_2-output-vectorStoreRetriever-VectorStoreRetriever",
269
                        "name": "vectorStoreRetriever",
270
                        "label": "VectorStoreRetriever",
271
                        "type": "VectorStoreRetriever"
272
                    }
273
                ],
274
                "outputs": {},
275
                "selected": false
276
            },
277
            "selected": false,
278
            "positionAbsolute": {
279
                "x": 706.0716220151372,
280
                "y": -217.51566869136752
281
            },
282
            "dragging": false
283
        },
284
        {
285
            "width": 300,
286
            "height": 329,
287
            "id": "openAIEmbeddings_0",
288
            "position": {
289
                "x": -212.46977797044045,
290
                "y": 252.45726960585722
291
            },
292
            "type": "customNode",
293
            "data": {
294
                "id": "openAIEmbeddings_0",
295
                "label": "OpenAI Embeddings",
296
                "version": 3,
297
                "name": "openAIEmbeddings",
298
                "type": "OpenAIEmbeddings",
299
                "baseClasses": ["OpenAIEmbeddings", "Embeddings"],
300
                "category": "Embeddings",
301
                "description": "OpenAI API to generate embeddings for a given text",
302
                "inputParams": [
303
                    {
304
                        "label": "Connect Credential",
305
                        "name": "credential",
306
                        "type": "credential",
307
                        "credentialNames": ["openAIApi"],
308
                        "id": "openAIEmbeddings_0-input-credential-credential"
309
                    },
310
                    {
311
                        "label": "Model Name",
312
                        "name": "modelName",
313
                        "type": "asyncOptions",
314
                        "loadMethod": "listModels",
315
                        "default": "text-embedding-ada-002",
316
                        "id": "openAIEmbeddings_0-input-modelName-options"
317
                    },
318
                    {
319
                        "label": "Strip New Lines",
320
                        "name": "stripNewLines",
321
                        "type": "boolean",
322
                        "optional": true,
323
                        "additionalParams": true,
324
                        "id": "openAIEmbeddings_0-input-stripNewLines-boolean"
325
                    },
326
                    {
327
                        "label": "Batch Size",
328
                        "name": "batchSize",
329
                        "type": "number",
330
                        "optional": true,
331
                        "additionalParams": true,
332
                        "id": "openAIEmbeddings_0-input-batchSize-number"
333
                    },
334
                    {
335
                        "label": "Timeout",
336
                        "name": "timeout",
337
                        "type": "number",
338
                        "optional": true,
339
                        "additionalParams": true,
340
                        "id": "openAIEmbeddings_0-input-timeout-number"
341
                    },
342
                    {
343
                        "label": "BasePath",
344
                        "name": "basepath",
345
                        "type": "string",
346
                        "optional": true,
347
                        "additionalParams": true,
348
                        "id": "openAIEmbeddings_0-input-basepath-string"
349
                    }
350
                ],
351
                "inputAnchors": [],
352
                "inputs": {
353
                    "stripNewLines": "",
354
                    "batchSize": "",
355
                    "timeout": "",
356
                    "basepath": "",
357
                    "modelName": "text-embedding-ada-002"
358
                },
359
                "outputAnchors": [
360
                    {
361
                        "id": "openAIEmbeddings_0-output-openAIEmbeddings-OpenAIEmbeddings|Embeddings",
362
                        "name": "openAIEmbeddings",
363
                        "label": "OpenAIEmbeddings",
364
                        "type": "OpenAIEmbeddings | Embeddings"
365
                    }
366
                ],
367
                "outputs": {},
368
                "selected": false
369
            },
370
            "selected": false,
371
            "positionAbsolute": {
372
                "x": -212.46977797044045,
373
                "y": 252.45726960585722
374
            },
375
            "dragging": false
376
        },
377
        {
378
            "width": 300,
379
            "height": 574,
380
            "id": "chatOpenAI_0",
381
            "position": {
382
                "x": 1166.929741805626,
383
                "y": -297.9691758089252
384
            },
385
            "type": "customNode",
386
            "data": {
387
                "id": "chatOpenAI_0",
388
                "label": "ChatOpenAI",
389
                "version": 6.0,
390
                "name": "chatOpenAI",
391
                "type": "ChatOpenAI",
392
                "baseClasses": ["ChatOpenAI", "BaseChatModel", "BaseLanguageModel", "Runnable"],
393
                "category": "Chat Models",
394
                "description": "Wrapper around OpenAI large language models that use the Chat endpoint",
395
                "inputParams": [
396
                    {
397
                        "label": "Connect Credential",
398
                        "name": "credential",
399
                        "type": "credential",
400
                        "credentialNames": ["openAIApi"],
401
                        "id": "chatOpenAI_0-input-credential-credential"
402
                    },
403
                    {
404
                        "label": "Model Name",
405
                        "name": "modelName",
406
                        "type": "asyncOptions",
407
                        "loadMethod": "listModels",
408
                        "default": "gpt-3.5-turbo",
409
                        "id": "chatOpenAI_0-input-modelName-options"
410
                    },
411
                    {
412
                        "label": "Temperature",
413
                        "name": "temperature",
414
                        "type": "number",
415
                        "step": 0.1,
416
                        "default": 0.9,
417
                        "optional": true,
418
                        "id": "chatOpenAI_0-input-temperature-number"
419
                    },
420
                    {
421
                        "label": "Max Tokens",
422
                        "name": "maxTokens",
423
                        "type": "number",
424
                        "step": 1,
425
                        "optional": true,
426
                        "additionalParams": true,
427
                        "id": "chatOpenAI_0-input-maxTokens-number"
428
                    },
429
                    {
430
                        "label": "Top Probability",
431
                        "name": "topP",
432
                        "type": "number",
433
                        "step": 0.1,
434
                        "optional": true,
435
                        "additionalParams": true,
436
                        "id": "chatOpenAI_0-input-topP-number"
437
                    },
438
                    {
439
                        "label": "Frequency Penalty",
440
                        "name": "frequencyPenalty",
441
                        "type": "number",
442
                        "step": 0.1,
443
                        "optional": true,
444
                        "additionalParams": true,
445
                        "id": "chatOpenAI_0-input-frequencyPenalty-number"
446
                    },
447
                    {
448
                        "label": "Presence Penalty",
449
                        "name": "presencePenalty",
450
                        "type": "number",
451
                        "step": 0.1,
452
                        "optional": true,
453
                        "additionalParams": true,
454
                        "id": "chatOpenAI_0-input-presencePenalty-number"
455
                    },
456
                    {
457
                        "label": "Timeout",
458
                        "name": "timeout",
459
                        "type": "number",
460
                        "step": 1,
461
                        "optional": true,
462
                        "additionalParams": true,
463
                        "id": "chatOpenAI_0-input-timeout-number"
464
                    },
465
                    {
466
                        "label": "BasePath",
467
                        "name": "basepath",
468
                        "type": "string",
469
                        "optional": true,
470
                        "additionalParams": true,
471
                        "id": "chatOpenAI_0-input-basepath-string"
472
                    },
473
                    {
474
                        "label": "BaseOptions",
475
                        "name": "baseOptions",
476
                        "type": "json",
477
                        "optional": true,
478
                        "additionalParams": true,
479
                        "id": "chatOpenAI_0-input-baseOptions-json"
480
                    },
481
                    {
482
                        "label": "Allow Image Uploads",
483
                        "name": "allowImageUploads",
484
                        "type": "boolean",
485
                        "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",
486
                        "default": false,
487
                        "optional": true,
488
                        "id": "chatOpenAI_0-input-allowImageUploads-boolean"
489
                    },
490
                    {
491
                        "label": "Image Resolution",
492
                        "description": "This parameter controls the resolution in which the model views the image.",
493
                        "name": "imageResolution",
494
                        "type": "options",
495
                        "options": [
496
                            {
497
                                "label": "Low",
498
                                "name": "low"
499
                            },
500
                            {
501
                                "label": "High",
502
                                "name": "high"
503
                            },
504
                            {
505
                                "label": "Auto",
506
                                "name": "auto"
507
                            }
508
                        ],
509
                        "default": "low",
510
                        "optional": false,
511
                        "additionalParams": true,
512
                        "id": "chatOpenAI_0-input-imageResolution-options"
513
                    }
514
                ],
515
                "inputAnchors": [
516
                    {
517
                        "label": "Cache",
518
                        "name": "cache",
519
                        "type": "BaseCache",
520
                        "optional": true,
521
                        "id": "chatOpenAI_0-input-cache-BaseCache"
522
                    }
523
                ],
524
                "inputs": {
525
                    "cache": "",
526
                    "modelName": "gpt-3.5-turbo",
527
                    "temperature": 0.9,
528
                    "maxTokens": "",
529
                    "topP": "",
530
                    "frequencyPenalty": "",
531
                    "presencePenalty": "",
532
                    "timeout": "",
533
                    "basepath": "",
534
                    "baseOptions": "",
535
                    "allowImageUploads": true,
536
                    "imageResolution": "low"
537
                },
538
                "outputAnchors": [
539
                    {
540
                        "id": "chatOpenAI_0-output-chatOpenAI-ChatOpenAI|BaseChatModel|BaseLanguageModel|Runnable",
541
                        "name": "chatOpenAI",
542
                        "label": "ChatOpenAI",
543
                        "type": "ChatOpenAI | BaseChatModel | BaseLanguageModel | Runnable"
544
                    }
545
                ],
546
                "outputs": {},
547
                "selected": false
548
            },
549
            "selected": false,
550
            "positionAbsolute": {
551
                "x": 1166.929741805626,
552
                "y": -297.9691758089252
553
            },
554
            "dragging": false
555
        },
556
        {
557
            "width": 300,
558
            "height": 555,
559
            "id": "pinecone_0",
560
            "position": {
561
                "x": 261.3144465918519,
562
                "y": -333.57075989595313
563
            },
564
            "type": "customNode",
565
            "data": {
566
                "id": "pinecone_0",
567
                "label": "Pinecone",
568
                "version": 2,
569
                "name": "pinecone",
570
                "type": "Pinecone",
571
                "baseClasses": ["Pinecone", "VectorStoreRetriever", "BaseRetriever"],
572
                "category": "Vector Stores",
573
                "description": "Upsert embedded data and perform similarity or mmr search using Pinecone, a leading fully managed hosted vector database",
574
                "inputParams": [
575
                    {
576
                        "label": "Connect Credential",
577
                        "name": "credential",
578
                        "type": "credential",
579
                        "credentialNames": ["pineconeApi"],
580
                        "id": "pinecone_0-input-credential-credential"
581
                    },
582
                    {
583
                        "label": "Pinecone Index",
584
                        "name": "pineconeIndex",
585
                        "type": "string",
586
                        "id": "pinecone_0-input-pineconeIndex-string"
587
                    },
588
                    {
589
                        "label": "Pinecone Namespace",
590
                        "name": "pineconeNamespace",
591
                        "type": "string",
592
                        "placeholder": "my-first-namespace",
593
                        "additionalParams": true,
594
                        "optional": true,
595
                        "id": "pinecone_0-input-pineconeNamespace-string"
596
                    },
597
                    {
598
                        "label": "Pinecone Metadata Filter",
599
                        "name": "pineconeMetadataFilter",
600
                        "type": "json",
601
                        "optional": true,
602
                        "additionalParams": true,
603
                        "id": "pinecone_0-input-pineconeMetadataFilter-json"
604
                    },
605
                    {
606
                        "label": "Top K",
607
                        "name": "topK",
608
                        "description": "Number of top results to fetch. Default to 4",
609
                        "placeholder": "4",
610
                        "type": "number",
611
                        "additionalParams": true,
612
                        "optional": true,
613
                        "id": "pinecone_0-input-topK-number"
614
                    },
615
                    {
616
                        "label": "Search Type",
617
                        "name": "searchType",
618
                        "type": "options",
619
                        "default": "similarity",
620
                        "options": [
621
                            {
622
                                "label": "Similarity",
623
                                "name": "similarity"
624
                            },
625
                            {
626
                                "label": "Max Marginal Relevance",
627
                                "name": "mmr"
628
                            }
629
                        ],
630
                        "additionalParams": true,
631
                        "optional": true,
632
                        "id": "pinecone_0-input-searchType-options"
633
                    },
634
                    {
635
                        "label": "Fetch K (for MMR Search)",
636
                        "name": "fetchK",
637
                        "description": "Number of initial documents to fetch for MMR reranking. Default to 20. Used only when the search type is MMR",
638
                        "placeholder": "20",
639
                        "type": "number",
640
                        "additionalParams": true,
641
                        "optional": true,
642
                        "id": "pinecone_0-input-fetchK-number"
643
                    },
644
                    {
645
                        "label": "Lambda (for MMR Search)",
646
                        "name": "lambda",
647
                        "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",
648
                        "placeholder": "0.5",
649
                        "type": "number",
650
                        "additionalParams": true,
651
                        "optional": true,
652
                        "id": "pinecone_0-input-lambda-number"
653
                    }
654
                ],
655
                "inputAnchors": [
656
                    {
657
                        "label": "Document",
658
                        "name": "document",
659
                        "type": "Document",
660
                        "list": true,
661
                        "optional": true,
662
                        "id": "pinecone_0-input-document-Document"
663
                    },
664
                    {
665
                        "label": "Embeddings",
666
                        "name": "embeddings",
667
                        "type": "Embeddings",
668
                        "id": "pinecone_0-input-embeddings-Embeddings"
669
                    }
670
                ],
671
                "inputs": {
672
                    "document": "",
673
                    "embeddings": "{{openAIEmbeddings_0.data.instance}}",
674
                    "pineconeIndex": "",
675
                    "pineconeNamespace": "",
676
                    "pineconeMetadataFilter": "",
677
                    "topK": "",
678
                    "searchType": "similarity",
679
                    "fetchK": "",
680
                    "lambda": ""
681
                },
682
                "outputAnchors": [
683
                    {
684
                        "name": "output",
685
                        "label": "Output",
686
                        "type": "options",
687
                        "options": [
688
                            {
689
                                "id": "pinecone_0-output-retriever-Pinecone|VectorStoreRetriever|BaseRetriever",
690
                                "name": "retriever",
691
                                "label": "Pinecone Retriever",
692
                                "type": "Pinecone | VectorStoreRetriever | BaseRetriever"
693
                            },
694
                            {
695
                                "id": "pinecone_0-output-vectorStore-Pinecone|VectorStore",
696
                                "name": "vectorStore",
697
                                "label": "Pinecone Vector Store",
698
                                "type": "Pinecone | VectorStore"
699
                            }
700
                        ],
701
                        "default": "retriever"
702
                    }
703
                ],
704
                "outputs": {
705
                    "output": "vectorStore"
706
                },
707
                "selected": false
708
            },
709
            "selected": false,
710
            "positionAbsolute": {
711
                "x": 261.3144465918519,
712
                "y": -333.57075989595313
713
            },
714
            "dragging": false
715
        },
716
        {
717
            "width": 300,
718
            "height": 654,
719
            "id": "chroma_0",
720
            "position": {
721
                "x": 263.5395455972911,
722
                "y": 242.72988251281214
723
            },
724
            "type": "customNode",
725
            "data": {
726
                "id": "chroma_0",
727
                "label": "Chroma",
728
                "version": 1,
729
                "name": "chroma",
730
                "type": "Chroma",
731
                "baseClasses": ["Chroma", "VectorStoreRetriever", "BaseRetriever"],
732
                "category": "Vector Stores",
733
                "description": "Upsert embedded data and perform similarity search upon query using Chroma, an open-source embedding database",
734
                "inputParams": [
735
                    {
736
                        "label": "Connect Credential",
737
                        "name": "credential",
738
                        "type": "credential",
739
                        "description": "Only needed if you have chroma on cloud services with X-Api-key",
740
                        "optional": true,
741
                        "credentialNames": ["chromaApi"],
742
                        "id": "chroma_0-input-credential-credential"
743
                    },
744
                    {
745
                        "label": "Collection Name",
746
                        "name": "collectionName",
747
                        "type": "string",
748
                        "id": "chroma_0-input-collectionName-string"
749
                    },
750
                    {
751
                        "label": "Chroma URL",
752
                        "name": "chromaURL",
753
                        "type": "string",
754
                        "optional": true,
755
                        "id": "chroma_0-input-chromaURL-string"
756
                    },
757
                    {
758
                        "label": "Chroma Metadata Filter",
759
                        "name": "chromaMetadataFilter",
760
                        "type": "json",
761
                        "optional": true,
762
                        "additionalParams": true,
763
                        "id": "chroma_0-input-chromaMetadataFilter-json"
764
                    },
765
                    {
766
                        "label": "Top K",
767
                        "name": "topK",
768
                        "description": "Number of top results to fetch. Default to 4",
769
                        "placeholder": "4",
770
                        "type": "number",
771
                        "additionalParams": true,
772
                        "optional": true,
773
                        "id": "chroma_0-input-topK-number"
774
                    }
775
                ],
776
                "inputAnchors": [
777
                    {
778
                        "label": "Document",
779
                        "name": "document",
780
                        "type": "Document",
781
                        "list": true,
782
                        "optional": true,
783
                        "id": "chroma_0-input-document-Document"
784
                    },
785
                    {
786
                        "label": "Embeddings",
787
                        "name": "embeddings",
788
                        "type": "Embeddings",
789
                        "id": "chroma_0-input-embeddings-Embeddings"
790
                    }
791
                ],
792
                "inputs": {
793
                    "document": "",
794
                    "embeddings": "{{openAIEmbeddings_0.data.instance}}",
795
                    "collectionName": "",
796
                    "chromaURL": "",
797
                    "chromaMetadataFilter": "",
798
                    "topK": ""
799
                },
800
                "outputAnchors": [
801
                    {
802
                        "name": "output",
803
                        "label": "Output",
804
                        "type": "options",
805
                        "options": [
806
                            {
807
                                "id": "chroma_0-output-retriever-Chroma|VectorStoreRetriever|BaseRetriever",
808
                                "name": "retriever",
809
                                "label": "Chroma Retriever",
810
                                "type": "Chroma | VectorStoreRetriever | BaseRetriever"
811
                            },
812
                            {
813
                                "id": "chroma_0-output-vectorStore-Chroma|VectorStore",
814
                                "name": "vectorStore",
815
                                "label": "Chroma Vector Store",
816
                                "type": "Chroma | VectorStore"
817
                            }
818
                        ],
819
                        "default": "retriever"
820
                    }
821
                ],
822
                "outputs": {
823
                    "output": "vectorStore"
824
                },
825
                "selected": false
826
            },
827
            "selected": false,
828
            "positionAbsolute": {
829
                "x": 263.5395455972911,
830
                "y": 242.72988251281214
831
            },
832
            "dragging": false
833
        },
834
        {
835
            "width": 300,
836
            "height": 753,
837
            "id": "supabase_0",
838
            "position": {
839
                "x": 263.16882559270005,
840
                "y": 920.6999513218148
841
            },
842
            "type": "customNode",
843
            "data": {
844
                "id": "supabase_0",
845
                "label": "Supabase",
846
                "version": 1,
847
                "name": "supabase",
848
                "type": "Supabase",
849
                "baseClasses": ["Supabase", "VectorStoreRetriever", "BaseRetriever"],
850
                "category": "Vector Stores",
851
                "description": "Upsert embedded data and perform similarity search upon query using Supabase via pgvector extension",
852
                "inputParams": [
853
                    {
854
                        "label": "Connect Credential",
855
                        "name": "credential",
856
                        "type": "credential",
857
                        "credentialNames": ["supabaseApi"],
858
                        "id": "supabase_0-input-credential-credential"
859
                    },
860
                    {
861
                        "label": "Supabase Project URL",
862
                        "name": "supabaseProjUrl",
863
                        "type": "string",
864
                        "id": "supabase_0-input-supabaseProjUrl-string"
865
                    },
866
                    {
867
                        "label": "Table Name",
868
                        "name": "tableName",
869
                        "type": "string",
870
                        "id": "supabase_0-input-tableName-string"
871
                    },
872
                    {
873
                        "label": "Query Name",
874
                        "name": "queryName",
875
                        "type": "string",
876
                        "id": "supabase_0-input-queryName-string"
877
                    },
878
                    {
879
                        "label": "Supabase Metadata Filter",
880
                        "name": "supabaseMetadataFilter",
881
                        "type": "json",
882
                        "optional": true,
883
                        "additionalParams": true,
884
                        "id": "supabase_0-input-supabaseMetadataFilter-json"
885
                    },
886
                    {
887
                        "label": "Top K",
888
                        "name": "topK",
889
                        "description": "Number of top results to fetch. Default to 4",
890
                        "placeholder": "4",
891
                        "type": "number",
892
                        "additionalParams": true,
893
                        "optional": true,
894
                        "id": "supabase_0-input-topK-number"
895
                    },
896
                    {
897
                        "label": "Search Type",
898
                        "name": "searchType",
899
                        "type": "options",
900
                        "default": "similarity",
901
                        "options": [
902
                            {
903
                                "label": "Similarity",
904
                                "name": "similarity"
905
                            },
906
                            {
907
                                "label": "Max Marginal Relevance",
908
                                "name": "mmr"
909
                            }
910
                        ],
911
                        "additionalParams": true,
912
                        "optional": true,
913
                        "id": "pinecone_0-input-searchType-options"
914
                    },
915
                    {
916
                        "label": "Fetch K (for MMR Search)",
917
                        "name": "fetchK",
918
                        "description": "Number of initial documents to fetch for MMR reranking. Default to 20. Used only when the search type is MMR",
919
                        "placeholder": "20",
920
                        "type": "number",
921
                        "additionalParams": true,
922
                        "optional": true,
923
                        "id": "pinecone_0-input-fetchK-number"
924
                    },
925
                    {
926
                        "label": "Lambda (for MMR Search)",
927
                        "name": "lambda",
928
                        "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",
929
                        "placeholder": "0.5",
930
                        "type": "number",
931
                        "additionalParams": true,
932
                        "optional": true,
933
                        "id": "pinecone_0-input-lambda-number"
934
                    }
935
                ],
936
                "inputAnchors": [
937
                    {
938
                        "label": "Document",
939
                        "name": "document",
940
                        "type": "Document",
941
                        "list": true,
942
                        "optional": true,
943
                        "id": "supabase_0-input-document-Document"
944
                    },
945
                    {
946
                        "label": "Embeddings",
947
                        "name": "embeddings",
948
                        "type": "Embeddings",
949
                        "id": "supabase_0-input-embeddings-Embeddings"
950
                    }
951
                ],
952
                "inputs": {
953
                    "document": "",
954
                    "embeddings": "{{openAIEmbeddings_0.data.instance}}",
955
                    "supabaseProjUrl": "",
956
                    "tableName": "",
957
                    "queryName": "",
958
                    "supabaseMetadataFilter": "",
959
                    "topK": "",
960
                    "searchType": "similarity",
961
                    "fetchK": "",
962
                    "lambda": ""
963
                },
964
                "outputAnchors": [
965
                    {
966
                        "name": "output",
967
                        "label": "Output",
968
                        "type": "options",
969
                        "options": [
970
                            {
971
                                "id": "supabase_0-output-retriever-Supabase|VectorStoreRetriever|BaseRetriever",
972
                                "name": "retriever",
973
                                "label": "Supabase Retriever",
974
                                "type": "Supabase | VectorStoreRetriever | BaseRetriever"
975
                            },
976
                            {
977
                                "id": "supabase_0-output-vectorStore-Supabase|VectorStore",
978
                                "name": "vectorStore",
979
                                "label": "Supabase Vector Store",
980
                                "type": "Supabase | VectorStore"
981
                            }
982
                        ],
983
                        "default": "retriever"
984
                    }
985
                ],
986
                "outputs": {
987
                    "output": "vectorStore"
988
                },
989
                "selected": false
990
            },
991
            "selected": false,
992
            "positionAbsolute": {
993
                "x": 263.16882559270005,
994
                "y": 920.6999513218148
995
            },
996
            "dragging": false
997
        }
998
    ],
999
    "edges": [
1000
        {
1001
            "source": "vectorStoreRetriever_0",
1002
            "sourceHandle": "vectorStoreRetriever_0-output-vectorStoreRetriever-VectorStoreRetriever",
1003
            "target": "multiRetrievalQAChain_0",
1004
            "targetHandle": "multiRetrievalQAChain_0-input-vectorStoreRetriever-VectorStoreRetriever",
1005
            "type": "buttonedge",
1006
            "id": "vectorStoreRetriever_0-vectorStoreRetriever_0-output-vectorStoreRetriever-VectorStoreRetriever-multiRetrievalQAChain_0-multiRetrievalQAChain_0-input-vectorStoreRetriever-VectorStoreRetriever",
1007
            "data": {
1008
                "label": ""
1009
            }
1010
        },
1011
        {
1012
            "source": "vectorStoreRetriever_1",
1013
            "sourceHandle": "vectorStoreRetriever_1-output-vectorStoreRetriever-VectorStoreRetriever",
1014
            "target": "multiRetrievalQAChain_0",
1015
            "targetHandle": "multiRetrievalQAChain_0-input-vectorStoreRetriever-VectorStoreRetriever",
1016
            "type": "buttonedge",
1017
            "id": "vectorStoreRetriever_1-vectorStoreRetriever_1-output-vectorStoreRetriever-VectorStoreRetriever-multiRetrievalQAChain_0-multiRetrievalQAChain_0-input-vectorStoreRetriever-VectorStoreRetriever",
1018
            "data": {
1019
                "label": ""
1020
            }
1021
        },
1022
        {
1023
            "source": "vectorStoreRetriever_2",
1024
            "sourceHandle": "vectorStoreRetriever_2-output-vectorStoreRetriever-VectorStoreRetriever",
1025
            "target": "multiRetrievalQAChain_0",
1026
            "targetHandle": "multiRetrievalQAChain_0-input-vectorStoreRetriever-VectorStoreRetriever",
1027
            "type": "buttonedge",
1028
            "id": "vectorStoreRetriever_2-vectorStoreRetriever_2-output-vectorStoreRetriever-VectorStoreRetriever-multiRetrievalQAChain_0-multiRetrievalQAChain_0-input-vectorStoreRetriever-VectorStoreRetriever",
1029
            "data": {
1030
                "label": ""
1031
            }
1032
        },
1033
        {
1034
            "source": "chatOpenAI_0",
1035
            "sourceHandle": "chatOpenAI_0-output-chatOpenAI-ChatOpenAI|BaseChatModel|BaseLanguageModel|Runnable",
1036
            "target": "multiRetrievalQAChain_0",
1037
            "targetHandle": "multiRetrievalQAChain_0-input-model-BaseLanguageModel",
1038
            "type": "buttonedge",
1039
            "id": "chatOpenAI_0-chatOpenAI_0-output-chatOpenAI-ChatOpenAI|BaseChatModel|BaseLanguageModel|Runnable-multiRetrievalQAChain_0-multiRetrievalQAChain_0-input-model-BaseLanguageModel",
1040
            "data": {
1041
                "label": ""
1042
            }
1043
        },
1044
        {
1045
            "source": "pinecone_0",
1046
            "sourceHandle": "pinecone_0-output-vectorStore-Pinecone|VectorStore",
1047
            "target": "vectorStoreRetriever_2",
1048
            "targetHandle": "vectorStoreRetriever_2-input-vectorStore-VectorStore",
1049
            "type": "buttonedge",
1050
            "id": "pinecone_0-pinecone_0-output-vectorStore-Pinecone|VectorStore-vectorStoreRetriever_2-vectorStoreRetriever_2-input-vectorStore-VectorStore",
1051
            "data": {
1052
                "label": ""
1053
            }
1054
        },
1055
        {
1056
            "source": "chroma_0",
1057
            "sourceHandle": "chroma_0-output-vectorStore-Chroma|VectorStore",
1058
            "target": "vectorStoreRetriever_1",
1059
            "targetHandle": "vectorStoreRetriever_1-input-vectorStore-VectorStore",
1060
            "type": "buttonedge",
1061
            "id": "chroma_0-chroma_0-output-vectorStore-Chroma|VectorStore-vectorStoreRetriever_1-vectorStoreRetriever_1-input-vectorStore-VectorStore",
1062
            "data": {
1063
                "label": ""
1064
            }
1065
        },
1066
        {
1067
            "source": "supabase_0",
1068
            "sourceHandle": "supabase_0-output-vectorStore-Supabase|VectorStore",
1069
            "target": "vectorStoreRetriever_0",
1070
            "targetHandle": "vectorStoreRetriever_0-input-vectorStore-VectorStore",
1071
            "type": "buttonedge",
1072
            "id": "supabase_0-supabase_0-output-vectorStore-Supabase|VectorStore-vectorStoreRetriever_0-vectorStoreRetriever_0-input-vectorStore-VectorStore",
1073
            "data": {
1074
                "label": ""
1075
            }
1076
        },
1077
        {
1078
            "source": "openAIEmbeddings_0",
1079
            "sourceHandle": "openAIEmbeddings_0-output-openAIEmbeddings-OpenAIEmbeddings|Embeddings",
1080
            "target": "supabase_0",
1081
            "targetHandle": "supabase_0-input-embeddings-Embeddings",
1082
            "type": "buttonedge",
1083
            "id": "openAIEmbeddings_0-openAIEmbeddings_0-output-openAIEmbeddings-OpenAIEmbeddings|Embeddings-supabase_0-supabase_0-input-embeddings-Embeddings",
1084
            "data": {
1085
                "label": ""
1086
            }
1087
        },
1088
        {
1089
            "source": "openAIEmbeddings_0",
1090
            "sourceHandle": "openAIEmbeddings_0-output-openAIEmbeddings-OpenAIEmbeddings|Embeddings",
1091
            "target": "chroma_0",
1092
            "targetHandle": "chroma_0-input-embeddings-Embeddings",
1093
            "type": "buttonedge",
1094
            "id": "openAIEmbeddings_0-openAIEmbeddings_0-output-openAIEmbeddings-OpenAIEmbeddings|Embeddings-chroma_0-chroma_0-input-embeddings-Embeddings",
1095
            "data": {
1096
                "label": ""
1097
            }
1098
        },
1099
        {
1100
            "source": "openAIEmbeddings_0",
1101
            "sourceHandle": "openAIEmbeddings_0-output-openAIEmbeddings-OpenAIEmbeddings|Embeddings",
1102
            "target": "pinecone_0",
1103
            "targetHandle": "pinecone_0-input-embeddings-Embeddings",
1104
            "type": "buttonedge",
1105
            "id": "openAIEmbeddings_0-openAIEmbeddings_0-output-openAIEmbeddings-OpenAIEmbeddings|Embeddings-pinecone_0-pinecone_0-input-embeddings-Embeddings",
1106
            "data": {
1107
                "label": ""
1108
            }
1109
        }
1110
    ]
1111
}
1112

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

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

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

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