mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-23 05:12:39 +00:00
Yuque dataset baseurl (#4742)
* Yuque dataset baseurl (#4512) * feat: 增加API数据集功能和国际化支持 * 在apiDataset.d.ts中添加uuid、slug、parent_uuid和children字段 * 更新英文、简体中文和繁体中文的dataset.json文件,增加多条提示信息 * 在ApiDatasetForm组件中实现目录选择功能,支持获取Yuque路径 * 新增BaseUrlSelector组件,用于选择根目录 * 实现getpath API,支持根据Yuque服务器获取路径 * 更新相关API调用,确保兼容性和功能完整性 * feat: 更新Yuque服务器的baseUrl处理逻辑 * 在apiDataset.d.ts中将YuqueServer的baseUrl属性改为必填 * 更新ApiDatasetForm组件,调整baseUrl的状态管理和路径加载逻辑 * 新增getcatalog API以支持获取数据集目录 * 修改相关API调用,确保baseUrl的正确传递和使用 * 优化路径返回值为中文“根目录” * feat: 更新数据集API调用逻辑 * 将getFeishuAndYuqueDatasetFileList替换为getProApiDatasetFileListRequest,统一API调用方式 * 更新相关文件以确保新API的正确使用 * 优化代码结构,提高可读性和维护性 * 清理代码:移除ApiDatasetForm、BaseUrlSelector和相关API中的调试日志 * 删除不必要的console.log语句,提升代码整洁性 * 确保API逻辑的清晰性,避免冗余输出 * 更新数据集相关类型和API逻辑 - 在apiDataset.d.ts中添加ApiDatasetDetailResponse类型,移除不必要的字段。 - 在proApi.ts中新增DETAIL操作类型及相关参数类型。 - 修改ApiDatasetForm.tsx以支持新的API调用逻辑,统一路径获取方式。 - 更新BaseUrlSelector组件,简化目录选择逻辑。 - 优化getpath.ts和getcatalog.ts中的路径处理逻辑,确保API调用的一致性和正确性。 - 清理不必要的代码和注释,提高代码可读性。 * 清理ApiDatasetForm组件中的调试日志,移除console.log语句以提升代码整洁性和可读性。 * fix * updata apidatasetform * remove console * updata * updata * updata editapiservermodal * updata i18n * add type * update getpath * add type * perf: yuque dataset baseurl * perf: remove rerank records * fix: ts --------- Co-authored-by: dreamer6680 <1468683855@qq.com>
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
"add_file": "Import",
|
||||
"api_file": "API Dataset",
|
||||
"api_url": "API Url",
|
||||
"apidataset_configuration": "Configuration information",
|
||||
"auto_indexes": "Automatically generate supplementary indexes",
|
||||
"auto_indexes_tips": "Additional index generation is performed through large models to improve semantic richness and improve retrieval accuracy.",
|
||||
"auto_training_queue": "Enhanced index queueing",
|
||||
@@ -61,6 +62,8 @@
|
||||
"external_read_url": "External Preview URL",
|
||||
"external_read_url_tip": "Configure the reading URL of your file library for user authentication. Use the {{fileId}} variable to refer to the external file ID.",
|
||||
"external_url": "File Access URL",
|
||||
"failedToLoadRootDirectories": "Failed to load root directories",
|
||||
"failedToLoadSubDirectories": "Failed to load subdirectories",
|
||||
"feishu_dataset": "Feishu Dataset",
|
||||
"feishu_dataset_config": "Feishu Dataset Config",
|
||||
"feishu_dataset_desc": "Can build a dataset using Feishu documents by configuring permissions, without secondary storage",
|
||||
@@ -68,6 +71,7 @@
|
||||
"file_model_function_tip": "Enhances indexing and QA generation",
|
||||
"filename": "Filename",
|
||||
"folder_dataset": "Folder",
|
||||
"getDirectoryFailed": "Get directory failed",
|
||||
"image_auto_parse": "Automatic image indexing",
|
||||
"image_auto_parse_tips": "Call VLM to automatically label the pictures in the document and generate additional search indexes",
|
||||
"image_training_queue": "Queue of image processing",
|
||||
@@ -84,9 +88,15 @@
|
||||
"import_select_link": "Enter link",
|
||||
"index_size": "Index size",
|
||||
"index_size_tips": "When vectorized, the system will automatically further segment the blocks according to this size.",
|
||||
"input_required_field_to_select_baseurl": "Please enter the required information first",
|
||||
"is_open_schedule": "Enable scheduled synchronization",
|
||||
"keep_image": "Keep the picture",
|
||||
"loading": "Loading...",
|
||||
"move.hint": "After moving, the selected knowledge base/folder will inherit the permission settings of the new folder, and the original permission settings will become invalid.",
|
||||
"noChildren": "No subdirectories",
|
||||
"noSelectedFolder": "No selected folder",
|
||||
"noSelectedId": "No selected ID",
|
||||
"noValidId": "No valid ID",
|
||||
"open_auto_sync": "After scheduled synchronization is turned on, the system will try to synchronize the collection from time to time every day. During the collection synchronization period, the collection data will not be searched.",
|
||||
"params_config": "Config",
|
||||
"params_setting": "Parameter settings",
|
||||
@@ -96,6 +106,7 @@
|
||||
"permission.des.manage": "Can manage the entire knowledge base data and information",
|
||||
"permission.des.read": "View knowledge base content",
|
||||
"permission.des.write": "Ability to add and change knowledge base content",
|
||||
"pleaseFillUserIdAndToken": "Please fill in User ID and Token",
|
||||
"preview_chunk": "Preview chunks",
|
||||
"preview_chunk_empty": "File content is empty",
|
||||
"preview_chunk_intro": "A total of {{total}} blocks, up to 10",
|
||||
@@ -112,7 +123,11 @@
|
||||
"request_headers": "Request headers, will automatically append 'Bearer '",
|
||||
"retain_collection": "Adjust Training Parameters",
|
||||
"retrain_task_submitted": "The retraining task has been submitted",
|
||||
"rootDirectoryFormatError": "Root directory data format is incorrect",
|
||||
"rootdirectory": "/rootdirectory",
|
||||
"same_api_collection": "The same API set exists",
|
||||
"selectDirectory": "Choose",
|
||||
"selectRootFolder": "Select Root Folder",
|
||||
"split_chunk_char": "Block by specified splitter",
|
||||
"split_chunk_size": "Block by length",
|
||||
"split_sign_break": "1 newline character",
|
||||
@@ -128,10 +143,10 @@
|
||||
"sync_collection_failed": "Synchronization collection error, please check whether the source file can be accessed normally",
|
||||
"sync_schedule": "Timing synchronization",
|
||||
"sync_schedule_tip": "Only existing collections will be synchronized. \nIncludes linked collections and all collections in the API knowledge base. \nThe system will poll for updates every day, and the specific update time cannot be determined.",
|
||||
"tag.add_new": "add_new",
|
||||
"tag.Add_new_tag": "add_new Tag",
|
||||
"tag.Edit_tag": "Edit Tag",
|
||||
"tag.add": "Create",
|
||||
"tag.add_new": "add_new",
|
||||
"tag.cancel": "Cancel",
|
||||
"tag.delete_tag_confirm": "Confirm to delete the tag?",
|
||||
"tag.manage": "Tagging",
|
||||
|
Reference in New Issue
Block a user