Feat: Add the iteration Node #4242 (#4247)

### What problem does this PR solve?

Feat: Add the iteration Node #4242

### Type of change


- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
balibabu
2024-12-27 11:24:17 +08:00
committed by GitHub
parent a6f4153775
commit a1a825c830
72 changed files with 1330 additions and 560 deletions

View File

@ -1077,6 +1077,22 @@ The above is the content you need to summarize.`,
contentTip: 'content: Email content (Optional)',
jsonUploadTypeErrorMessage: 'Please upload json file',
jsonUploadContentErrorMessage: 'json file error',
iteration: 'Iteration',
iterationDescription: `This component firstly split the input into array by "delimiter".
Perform the same operation steps on the elements in the array in sequence until all results are output, which can be understood as a task batch processor.
For example, within the long text translation iteration node, if all content is input to the LLM node, the single conversation limit may be reached. The upstream node can first split the long text into multiple fragments, and cooperate with the iterative node to perform batch translation on each fragment to avoid reaching the LLM message limit for a single conversation.`,
delimiterTip: `
This delimiter is used to split the input text into several text pieces echo of which will be performed as input item of each iteration.`,
delimiterOptions: {
comma: 'Comma',
lineBreak: 'Line break',
tab: 'Tab',
underline: 'Underline',
diagonal: 'Diagonal',
minus: 'Minus',
semicolon: 'Semicolon',
},
},
footer: {
profile: 'All rights reserved @ React',

View File

@ -1016,6 +1016,20 @@ export default {
templateDescription: '此元件用於排版各種元件的輸出。 ',
jsonUploadTypeErrorMessage: '請上傳json檔',
jsonUploadContentErrorMessage: 'json 檔案錯誤',
iterationDescription: `此元件首先透過「分隔符號」將輸入拆分為陣列。
對數組中的元素依序執行相同的操作步驟,直到輸出所有結果,可以理解為任務批次處理器。
例如在長文本翻譯迭代節點內如果所有內容都輸入到LLM節點則可能會達到單次對話限制。上游節點可以先將長文本拆分為多個分片並配合迭代節點對每個分片進行批次翻譯避免達到單次對話的LLM訊息限制。`,
delimiterTip: `此分隔符號用於將輸入文字分割成多個文字片段,其中的回顯將作為每次迭代的輸入項執行。`,
delimiterOptions: {
comma: '逗號',
lineBreak: '換行',
tab: '製表符',
underline: '底線',
diagonal: '斜線',
minus: '減號',
semicolon: '分號',
},
},
footer: {
profile: '“保留所有權利 @ react”',

View File

@ -1060,6 +1060,20 @@ export default {
contentTip: 'content: 邮件内容(可选)',
jsonUploadTypeErrorMessage: '请上传json文件',
jsonUploadContentErrorMessage: 'json 文件错误',
iteration: '循环',
iterationDescription: `该组件首先将输入以“分隔符”分割成数组,然后依次对数组中的元素执行相同的操作步骤,直到输出所有结果,可以理解为一个任务批处理器。
例如在长文本翻译迭代节点中如果所有内容都输入到LLM节点可能会达到单次对话的限制上游节点可以先将长文本分割成多个片段配合迭代节点对每个片段进行批量翻译避免达到单次对话的LLM消息限制。`,
delimiterTip: `该分隔符用于将输入文本分割成几个文本片段,每个文本片段的回显将作为每次迭代的输入项。`,
delimiterOptions: {
comma: '逗号',
lineBreak: '换行',
tab: '制表符',
underline: '下划线',
diagonal: '斜线',
minus: '减号',
semicolon: '分号',
},
},
footer: {
profile: 'All rights reserved @ React',