feat: 完善后端知识库服务和配置

- 优化 AI-Core 客户端调用
- 添加更多知识库配置选项
- 完善文档解析逻辑

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-09 15:42:42 +08:00
parent 5012a25f99
commit 4a7199de93
21 changed files with 3892 additions and 72 deletions

View File

@@ -145,7 +145,8 @@ type UploadDocumentResponse struct {
// DocumentPreviewResponse 文档预览响应
type DocumentPreviewResponse struct {
TotalPages int `json:"total_pages"`
CurrentPage int `json:"current_page"`
Content string `json:"content"`
TotalPages int `json:"total_pages"`
CurrentPage int `json:"current_page"`
Content string `json:"content"`
ContentType string `json:"content_type"` // url: 文件URL, html: HTML内容
}