feat(faq): support rich-text image upload and RAG output

- add FAQ image upload API with MinIO path and mime/size validation

- enable FAQ editor image upload and text-or-image validation

- include FAQ image metadata in vector content and retrieval output

- enforce markdown image preservation via bot system prompt rule
This commit is contained in:
2026-02-25 19:53:39 +08:00
parent fcf1100b56
commit 01f354ede5
8 changed files with 396 additions and 26 deletions

View File

@@ -108,7 +108,11 @@
"questionPlaceholder": "请输入问题",
"answerPlaceholder": "请输入答案",
"questionRequired": "问题不能为空",
"answerRequired": "答案不能为空"
"answerRequired": "答案不能为空",
"collectionRequired": "知识库ID不能为空",
"imageTypeInvalid": "仅支持 JPG/PNG/WEBP/GIF 图片",
"imageSizeExceeded": "图片大小不能超过5MB",
"imageUploadFailed": "图片上传失败"
},
"searchResults": "检索结果",
"documentPreview": "文档预览",