Skip to content

feat: split file from knowledge#417

Open
jackxu2011 wants to merge 6 commits intospring-ai-alibaba:mainfrom
jackxu2011:feat-split-file-from-knowledge
Open

feat: split file from knowledge#417
jackxu2011 wants to merge 6 commits intospring-ai-alibaba:mainfrom
jackxu2011:feat-split-file-from-knowledge

Conversation

@jackxu2011
Copy link
Copy Markdown
Contributor

@jackxu2011 jackxu2011 commented Feb 3, 2026

Describe what this PR does / why we need it

将文档存储信息单独抽取出来

  1. 将文件上传的存储信息进行统一管理,并增加存储类型,以便后续对不同类型的文件存储到不同的存储介质上进行配置。
  2. 可以通过file_id,将文件的访问地址与存储介质进行分离,可以方便后续文件的迁移,并通过获取访问URL重新获得访问地址,如对头像进行改造。
  3. 代码更改情况:
    1. agentKnowledge表增加file_id字段,当删除知识时,直接调用文件存储服务的删除方法,并对历史数据做兼容处理。
    2. 将原文件存储服务更改为文件存储提供者,增加新的文件存储服务,提供查询,保存,获取资源,获取访问url,删除物理资源等方法。
    3. 增加文件物理资源定时清理方法
    4. 统一FileUploadController的返回结构

Does this pull request fix one issue?

Describe how you did it

Describe how to verify it

Special notes for reviews

@jackxu2011 jackxu2011 changed the title Feat split file from knowledge feat: split file from knowledge Feb 3, 2026
@VLSMB
Copy link
Copy Markdown
Member

VLSMB commented Feb 3, 2026

请解决冲突,另外请描述一下此PR实现了什么功能或者解决了什么问题,以及代码更改情况。

@jackxu2011 jackxu2011 force-pushed the feat-split-file-from-knowledge branch from fd6b7cc to 48cec48 Compare February 4, 2026 03:14
@VLSMB VLSMB added the wait for feedback wait for user's feedback label Feb 8, 2026
@jackxu2011 jackxu2011 force-pushed the feat-split-file-from-knowledge branch from 46964bb to 3c7e8ec Compare February 9, 2026 05:21
@jackxu2011 jackxu2011 force-pushed the feat-split-file-from-knowledge branch from b255601 to 9551b9d Compare February 27, 2026 02:59
@jackxu2011 jackxu2011 force-pushed the feat-split-file-from-knowledge branch from 9551b9d to aaa1575 Compare February 28, 2026 09:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

wait for feedback wait for user's feedback

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants