File input (#2270)

* doc

* feat: file upload  config

* perf: chat box file params

* feat: markdown show file

* feat: chat file store and clear

* perf: read file contentType

* feat: llm vision config

* feat: file url output

* perf: plugin error text

* perf: image load

* feat: ai chat document

* perf: file block ui

* feat: read file node

* feat: file read response field

* feat: simple mode support read files

* feat: tool call

* feat: read file histories

* perf: select file

* perf: select file config

* i18n

* i18n

* fix: ts; feat: tool response preview result
This commit is contained in:
Archer
2024-08-06 10:00:22 +08:00
committed by GitHub
parent 10dcdb5491
commit e36d9d794f
121 changed files with 2600 additions and 1142 deletions

View File

@@ -13,21 +13,30 @@
"chat_debug": "调试预览",
"chat_logs": "对话日志",
"chat_logs_tips": "日志会记录该应用的在线、分享和 API需填写 chatId对话记录",
"config_file_upload": "点击配置文件上传规则",
"confirm_copy_app_tip": "系统将为您创建一个相同配置应用,但权限不会进行复制,请确认!",
"confirm_del_app_tip": "确认删除该应用及其所有聊天记录?",
"confirm_delete_folder_tip": "确认删除该文件夹?将会删除它下面所有应用及对应的聊天记录,请确认!",
"copy_one_app": "创建副本",
"create_copy_success": "创建副本成功",
"current_settings": "当前配置",
"document_upload": "文档上传",
"edit_app": "编辑应用",
"edit_info": "编辑信息",
"export_config_successful": "已复制配置,自动过滤部分敏感信息,请注意检查是否仍有敏感数据",
"export_configs": "导出配置",
"feedback_count": "用户反馈",
"file_upload": "文件上传",
"file_upload_tip": "开启后,可以上传文档/图片。文档保留7天图片保留15天。使用该功能可能产生较多额外费用。为保证使用体验使用该功能时请选择上下文长度较大的AI模型。",
"go_to_chat": "去对话",
"go_to_run": "去运行",
"image_upload": "图片上传",
"image_upload_tip": "请确保选择可处理图片的视觉模型",
"import_configs": "导入配置",
"import_configs_failed": "导入配置失败,请确保配置正常!",
"llm_not_support_vision": "该模型不支持图片识别",
"llm_use_vision": "启用图片识别",
"llm_use_vision_tip": "启用图片识别后,该模型会自动接收来自“对话框上传”的图片,以及“用户问题”中的图片链接。",
"logs_empty": "还没有日志噢~",
"logs_message_total": "消息总数",
"logs_title": "标题",
@@ -72,14 +81,22 @@
"Simple bot": "简易应用",
"Workflow bot": "工作流"
},
"upload_file_max_amount": "单轮最大文件上传数量",
"version": {
"Revert success": "回滚成功"
},
"workflow": {
"Input guide": "填写说明",
"file_url": "文档链接",
"read_files": "文档解析",
"read_files_result": "文档解析结果",
"read_files_result_desc": "文档原文,由文件名和文档内容组成,多个文件之间通过横线隔开。",
"read_files_tip": "解析对话中上传的文档,返回对应文档内容",
"template": {
"communication": "通信"
}
},
"user_file_input": "文件链接",
"user_file_input_desc": "用户上传的文档和图片链接"
},
"interval": {
"per_hour": "每小时",
@@ -109,5 +126,7 @@
},
"day": "日",
"execute_time": "执行时间",
"time_zone": "时区"
"time_zone": "时区",
"document_quote": "文档引用",
"document_quote_tip": "通常用于接受用户上传的文档内容(这需要文档解析),也可以用于引用其他字符串数据。"
}

View File

@@ -7,6 +7,7 @@
"csv_input_lexicon_tip": "仅支持 CSV 批量导入,点击下载模板",
"custom_input_guide_url": "自定义词库地址",
"delete_all_input_guide_confirm": "确定要清空输入引导词库吗?",
"file_amount_over": "超出最大文件数量 {{max}}",
"input_guide": "输入引导",
"input_guide_lexicon": "词库",
"input_guide_tip": "可以配置一些预设的问题。在用户输入问题时,会从这些预设问题中获取相关问题进行提示。",
@@ -30,5 +31,7 @@
"question_tip": "从上到下,为各个模块的响应顺序",
"rearrangement": "检索结果重排",
"web_site_sync": "Web站点同步",
"new_chat": "新对话"
"new_chat": "新对话",
"select_file": "选择文件",
"select_img": "选择图片"
}

View File

@@ -559,7 +559,7 @@
"module cq result": "分类结果",
"module extract description": "提取背景描述",
"module extract result": "提取结果",
"module historyPreview": "完整记录",
"module historyPreview": "记录预览(仅展示部分内容)",
"module http result": "响应体",
"module if else Result": "判断器结果",
"module limit": "单次搜索上限",
@@ -646,7 +646,8 @@
"success": "开始同步"
}
},
"training": {}
"training": {
}
},
"data": {
"Auxiliary Data": "辅助数据",
@@ -857,7 +858,7 @@
"AppSecret": "AppSecret",
"ChatId": "当前对话 ID",
"Current time": "当前时间",
"Histories": "最近 10 条聊天记录",
"Histories": "历史记录",
"Key already exists": "Key 已经存在",
"Key cannot be empty": "参数名不能为空",
"Props name": "参数名",
@@ -1331,6 +1332,7 @@
},
"textarea_variable_picker_tip": "输入 / 可选择变量",
"unusable_variable": "无可用变量",
"upload_file_error": "上传文件失败",
"user": {
"Account": "账号",
"Amount of earnings": "收益(¥)",

View File

@@ -1,9 +1,10 @@
{
"bucket_chat": "对话文件",
"bucket_file": "知识库文件",
"click_to_view_raw_source": "点击查看来源",
"release_the_mouse_to_upload_the_file": "松开鼠标上传文件",
"upload_error_description": "单次只支持上传多个文件或者一个文件夹",
"file_name": "文件名",
"file_size": "文件大小",
"release_the_mouse_to_upload_the_file": "松开鼠标上传文件",
"select_and_drag_file_tip": "点击或拖动文件到此处上传",
"select_file_amount_limit": "最多选择 {{max}} 个文件",
"some_file_count_exceeds_limit": "超出 {{maxCount}} 个文件,已自动截取",
@@ -12,5 +13,6 @@
"support_max_count": "最多支持 {{maxCount}} 个文件",
"support_max_size": "单个文件最大 {{maxSize}}",
"upload_failed": "上传异常",
"reached_max_file_count": "已达到最大文件数量"
"reached_max_file_count": "已达到最大文件数量",
"upload_error_description": "单次只支持上传多个文件或者一个文件夹"
}

View File

@@ -25,7 +25,19 @@
"Code log": "Log 日志",
"Custom inputs": "自定义输入",
"Custom outputs": "自定义输出",
"Error": "错误信息"
"Error": "错误信息",
"Read file result": "文档解析结果预览",
"read files": "解析的文档"
},
"template": {
"ai_chat": "AI 对话",
"ai_chat_intro": "AI 大模型对话",
"dataset_search": "知识库搜索",
"dataset_search_intro": "调用“语义检索”和“全文检索”能力,从“知识库”中查找可能与问题相关的参考内容",
"system_config": "系统配置",
"tool_call": "工具调用",
"tool_call_intro": "通过AI模型自动选择一个或多个功能块进行调用也可以对插件进行调用。",
"workflow_start": "流程开始"
},
"tool_input": "工具参数",
"variable_picker_tips": "可输入节点名或变量名搜索",