|
@@ -12,7 +12,7 @@ export const initialData: FlowDocumentJSON = {
|
|
|
type: 'start',
|
|
type: 'start',
|
|
|
meta: {
|
|
meta: {
|
|
|
position: {
|
|
position: {
|
|
|
- x: 180,
|
|
|
|
|
|
|
+ x: 186.39660158249967,
|
|
|
y: 381.75,
|
|
y: 381.75,
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
@@ -91,7 +91,7 @@ export const initialData: FlowDocumentJSON = {
|
|
|
type: 'end',
|
|
type: 'end',
|
|
|
meta: {
|
|
meta: {
|
|
|
position: {
|
|
position: {
|
|
|
- x: 2202.9953917050693,
|
|
|
|
|
|
|
+ x: 2489.2950705293442,
|
|
|
y: 381.75,
|
|
y: 381.75,
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
@@ -125,43 +125,27 @@ export const initialData: FlowDocumentJSON = {
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- id: 'loop_sGybT',
|
|
|
|
|
- type: 'loop',
|
|
|
|
|
|
|
+ id: 'group_5ci0o',
|
|
|
|
|
+ type: 'group',
|
|
|
meta: {
|
|
meta: {
|
|
|
position: {
|
|
position: {
|
|
|
- x: 1373.5714285714287,
|
|
|
|
|
- y: 394.9758064516129,
|
|
|
|
|
- },
|
|
|
|
|
- },
|
|
|
|
|
- data: {
|
|
|
|
|
- title: 'Loop_1',
|
|
|
|
|
- batchFor: {
|
|
|
|
|
- type: 'ref',
|
|
|
|
|
- content: ['start_0', 'array_obj'],
|
|
|
|
|
- },
|
|
|
|
|
- batchOutputs: {
|
|
|
|
|
- results: {
|
|
|
|
|
- type: 'ref',
|
|
|
|
|
- content: ['llm_6aSyo', 'result'],
|
|
|
|
|
- },
|
|
|
|
|
- indexList: {
|
|
|
|
|
- type: 'ref',
|
|
|
|
|
- content: ['loop_sGybT_locals', 'index'],
|
|
|
|
|
- },
|
|
|
|
|
|
|
+ x: 163.32056949283722,
|
|
|
|
|
+ y: -76.50012170998413,
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
|
|
|
+ data: {},
|
|
|
blocks: [
|
|
blocks: [
|
|
|
{
|
|
{
|
|
|
- id: 'llm_6aSyo',
|
|
|
|
|
|
|
+ id: 'llm_8--A3',
|
|
|
type: 'llm',
|
|
type: 'llm',
|
|
|
meta: {
|
|
meta: {
|
|
|
position: {
|
|
position: {
|
|
|
- x: -196.8663594470046,
|
|
|
|
|
- y: 142.0046082949309,
|
|
|
|
|
|
|
+ x: 1177.8341013824886,
|
|
|
|
|
+ y: 9.249999999999977,
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
|
data: {
|
|
data: {
|
|
|
- title: 'LLM_3',
|
|
|
|
|
|
|
+ title: 'LLM_1',
|
|
|
inputsValues: {
|
|
inputsValues: {
|
|
|
modelName: {
|
|
modelName: {
|
|
|
type: 'constant',
|
|
type: 'constant',
|
|
@@ -185,7 +169,7 @@ export const initialData: FlowDocumentJSON = {
|
|
|
},
|
|
},
|
|
|
prompt: {
|
|
prompt: {
|
|
|
type: 'constant',
|
|
type: 'constant',
|
|
|
- content: '# User Input\nquery:{{loop_sGybT_locals.item.int}}',
|
|
|
|
|
|
|
+ content: '# User Input\nquery:{{start_0.query}}\nenable:{{start_0.enable}}',
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
|
inputs: {
|
|
inputs: {
|
|
@@ -229,16 +213,16 @@ export const initialData: FlowDocumentJSON = {
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- id: 'llm_ZqKlP',
|
|
|
|
|
|
|
+ id: 'llm_vTyMa',
|
|
|
type: 'llm',
|
|
type: 'llm',
|
|
|
meta: {
|
|
meta: {
|
|
|
position: {
|
|
position: {
|
|
|
- x: 253.1797235023041,
|
|
|
|
|
- y: 142.00460829493088,
|
|
|
|
|
|
|
+ x: 1621.3675909579388,
|
|
|
|
|
+ y: 19.24999999999997,
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
|
data: {
|
|
data: {
|
|
|
- title: 'LLM_4',
|
|
|
|
|
|
|
+ title: 'LLM_2',
|
|
|
inputsValues: {
|
|
inputsValues: {
|
|
|
modelName: {
|
|
modelName: {
|
|
|
type: 'constant',
|
|
type: 'constant',
|
|
@@ -262,7 +246,7 @@ export const initialData: FlowDocumentJSON = {
|
|
|
},
|
|
},
|
|
|
prompt: {
|
|
prompt: {
|
|
|
type: 'constant',
|
|
type: 'constant',
|
|
|
- content: '# User Input\nquery:{{loop_sGybT_locals.item.str}}',
|
|
|
|
|
|
|
+ content: '# LLM Input\nresult:{{llm_8--A3.result}}',
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
|
inputs: {
|
|
inputs: {
|
|
@@ -308,33 +292,48 @@ export const initialData: FlowDocumentJSON = {
|
|
|
],
|
|
],
|
|
|
edges: [
|
|
edges: [
|
|
|
{
|
|
{
|
|
|
- sourceNodeID: 'llm_6aSyo',
|
|
|
|
|
- targetNodeID: 'llm_ZqKlP',
|
|
|
|
|
|
|
+ sourceNodeID: 'condition_0',
|
|
|
|
|
+ targetNodeID: 'llm_8--A3',
|
|
|
|
|
+ sourcePortID: 'if_0',
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ sourceNodeID: 'llm_8--A3',
|
|
|
|
|
+ targetNodeID: 'llm_vTyMa',
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ sourceNodeID: 'llm_vTyMa',
|
|
|
|
|
+ targetNodeID: 'end_0',
|
|
|
},
|
|
},
|
|
|
],
|
|
],
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- id: 'group_5ci0o',
|
|
|
|
|
- type: 'group',
|
|
|
|
|
|
|
+ id: 'loop_ANNyh',
|
|
|
|
|
+ type: 'loop',
|
|
|
meta: {
|
|
meta: {
|
|
|
position: {
|
|
position: {
|
|
|
- x: 0,
|
|
|
|
|
- y: 0,
|
|
|
|
|
|
|
+ x: 1451.8161064396056,
|
|
|
|
|
+ y: 384.9037102954011,
|
|
|
|
|
+ },
|
|
|
|
|
+ },
|
|
|
|
|
+ data: {
|
|
|
|
|
+ title: 'Loop_1',
|
|
|
|
|
+ batchFor: {
|
|
|
|
|
+ type: 'ref',
|
|
|
|
|
+ content: ['start_0', 'array_obj'],
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
|
- data: {},
|
|
|
|
|
blocks: [
|
|
blocks: [
|
|
|
{
|
|
{
|
|
|
- id: 'llm_8--A3',
|
|
|
|
|
|
|
+ id: 'llm_6aSyo',
|
|
|
type: 'llm',
|
|
type: 'llm',
|
|
|
meta: {
|
|
meta: {
|
|
|
position: {
|
|
position: {
|
|
|
- x: 1177.8341013824886,
|
|
|
|
|
- y: 19.25,
|
|
|
|
|
|
|
+ x: -110.10677817900246,
|
|
|
|
|
+ y: 182.98973079191808,
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
|
data: {
|
|
data: {
|
|
|
- title: 'LLM_1',
|
|
|
|
|
|
|
+ title: 'LLM_3',
|
|
|
inputsValues: {
|
|
inputsValues: {
|
|
|
modelName: {
|
|
modelName: {
|
|
|
type: 'constant',
|
|
type: 'constant',
|
|
@@ -358,7 +357,7 @@ export const initialData: FlowDocumentJSON = {
|
|
|
},
|
|
},
|
|
|
prompt: {
|
|
prompt: {
|
|
|
type: 'constant',
|
|
type: 'constant',
|
|
|
- content: '# User Input\nquery:{{start_0.query}}\nenable:{{start_0.enable}}',
|
|
|
|
|
|
|
+ content: '',
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
|
inputs: {
|
|
inputs: {
|
|
@@ -402,16 +401,16 @@ export const initialData: FlowDocumentJSON = {
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- id: 'llm_vTyMa',
|
|
|
|
|
|
|
+ id: 'llm_ZqKlP',
|
|
|
type: 'llm',
|
|
type: 'llm',
|
|
|
meta: {
|
|
meta: {
|
|
|
position: {
|
|
position: {
|
|
|
- x: 1625.6221198156682,
|
|
|
|
|
- y: 19.25,
|
|
|
|
|
|
|
+ x: 332.31739662589257,
|
|
|
|
|
+ y: 182.98973079191802,
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
|
data: {
|
|
data: {
|
|
|
- title: 'LLM_2',
|
|
|
|
|
|
|
+ title: 'LLM_4',
|
|
|
inputsValues: {
|
|
inputsValues: {
|
|
|
modelName: {
|
|
modelName: {
|
|
|
type: 'constant',
|
|
type: 'constant',
|
|
@@ -435,7 +434,7 @@ export const initialData: FlowDocumentJSON = {
|
|
|
},
|
|
},
|
|
|
prompt: {
|
|
prompt: {
|
|
|
type: 'constant',
|
|
type: 'constant',
|
|
|
- content: '# LLM Input\nresult:{{llm_8--A3.result}}',
|
|
|
|
|
|
|
+ content: '',
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
|
inputs: {
|
|
inputs: {
|
|
@@ -478,20 +477,41 @@ export const initialData: FlowDocumentJSON = {
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
|
|
|
+ {
|
|
|
|
|
+ id: 'block_start_loop_ANNyh',
|
|
|
|
|
+ type: 'block-start',
|
|
|
|
|
+ meta: {
|
|
|
|
|
+ position: {
|
|
|
|
|
+ x: -404.5309529838977,
|
|
|
|
|
+ y: 346.08973079191816,
|
|
|
|
|
+ },
|
|
|
|
|
+ },
|
|
|
|
|
+ data: {},
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ id: 'block_end_loop_ANNyh',
|
|
|
|
|
+ type: 'block-end',
|
|
|
|
|
+ meta: {
|
|
|
|
|
+ position: {
|
|
|
|
|
+ x: 626.7415714307878,
|
|
|
|
|
+ y: 346.08973079191793,
|
|
|
|
|
+ },
|
|
|
|
|
+ },
|
|
|
|
|
+ data: {},
|
|
|
|
|
+ },
|
|
|
],
|
|
],
|
|
|
edges: [
|
|
edges: [
|
|
|
{
|
|
{
|
|
|
- sourceNodeID: 'condition_0',
|
|
|
|
|
- targetNodeID: 'llm_8--A3',
|
|
|
|
|
- sourcePortID: 'if_0',
|
|
|
|
|
|
|
+ sourceNodeID: 'block_start_loop_ANNyh',
|
|
|
|
|
+ targetNodeID: 'llm_6aSyo',
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- sourceNodeID: 'llm_8--A3',
|
|
|
|
|
- targetNodeID: 'llm_vTyMa',
|
|
|
|
|
|
|
+ sourceNodeID: 'llm_6aSyo',
|
|
|
|
|
+ targetNodeID: 'llm_ZqKlP',
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- sourceNodeID: 'llm_vTyMa',
|
|
|
|
|
- targetNodeID: 'end_0',
|
|
|
|
|
|
|
+ sourceNodeID: 'llm_ZqKlP',
|
|
|
|
|
+ targetNodeID: 'block_end_loop_ANNyh',
|
|
|
},
|
|
},
|
|
|
],
|
|
],
|
|
|
},
|
|
},
|
|
@@ -508,7 +528,7 @@ export const initialData: FlowDocumentJSON = {
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
sourceNodeID: 'condition_0',
|
|
sourceNodeID: 'condition_0',
|
|
|
- targetNodeID: 'loop_sGybT',
|
|
|
|
|
|
|
+ targetNodeID: 'loop_ANNyh',
|
|
|
sourcePortID: 'if_f0rOAt',
|
|
sourcePortID: 'if_f0rOAt',
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
@@ -516,7 +536,7 @@ export const initialData: FlowDocumentJSON = {
|
|
|
targetNodeID: 'end_0',
|
|
targetNodeID: 'end_0',
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- sourceNodeID: 'loop_sGybT',
|
|
|
|
|
|
|
+ sourceNodeID: 'loop_ANNyh',
|
|
|
targetNodeID: 'end_0',
|
|
targetNodeID: 'end_0',
|
|
|
},
|
|
},
|
|
|
],
|
|
],
|