refactor(module-llm):优化知识库文档保存逻辑
- 移除了对文档 ID 的非空过滤,因为 KnowledgeDocumentsSaveReqVO 已确保 ID 不为 null
This commit is contained in:
parent
d5c789bea1
commit
0a79f153ef
@ -124,7 +124,6 @@ public class KnowledgeBaseServiceImpl implements KnowledgeBaseService {
|
||||
// 获取需要保留的文档 ID
|
||||
List<Long> retainedIds = documents.stream()
|
||||
.map(KnowledgeDocumentsSaveReqVO::getId)
|
||||
.filter(Objects::nonNull)
|
||||
.collect(Collectors.toList());
|
||||
|
||||
// 删除不需要保留的文档
|
||||
|
Loading…
x
Reference in New Issue
Block a user