feat:自建 RAG 聊天应用,限制知识库文档格式,只允许上传(".pdf", ".docx", ".md", ".txt")

This commit is contained in:
PingChuan
2026-04-20 17:55:49 +08:00
parent 5bee9288b9
commit 5aa040c94e
2 changed files with 23 additions and 4 deletions
@@ -65,7 +65,9 @@ export const INDEXING_STATUS_CONFIG: Record<IndexingStatus, { text: string; perc
/**
* 支持的文件格式
*/
export const SUPPORTED_FORMATS = 'TXT, MARKDOWN, MDX, PDF, HTML, XLSX, XLS, DOCX, CSV, VTT, PROPERTIES, MD, HTM';
export const SUPPORTED_FILE_EXTENSIONS = ['.pdf', '.docx', '.md', '.txt'] as const;
export const SUPPORTED_FORMATS = 'PDF, DOCX, MD, TXT';
export const SUPPORTED_ACCEPT = SUPPORTED_FILE_EXTENSIONS.join(',');
/**
* 文档上传组件 Props