feat: 集成 AI-Core gRPC 文档解析服务
- 新增 AICoreClient 客户端 - 添加 document_parser_client.go - 知识库服务集成 AI-Core 解析 - 配置中添加 ai_core_service_addr Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -87,6 +87,7 @@ type KnowledgeDocument struct {
|
||||
FileKey string `json:"file_key" gorm:"type:varchar(500)"`
|
||||
FileURL string `json:"file_url" gorm:"type:varchar(500)"` // 文件访问 URL
|
||||
FileSize int64 `json:"file_size" gorm:"type:bigint;default:0"`
|
||||
Content string `json:"content" gorm:"type:longtext"` // Markdown 内容(AI-Core 解析结果)
|
||||
Status string `json:"status" gorm:"type:varchar(20);default:parsing"` // parsing / parsed / failed
|
||||
ChunkCount int `json:"chunk_count" gorm:"default:0"`
|
||||
UploadedAt time.Time `json:"uploaded_at"`
|
||||
|
||||
Reference in New Issue
Block a user