refactor: update document index removal methods for consistency and clarity

This commit is contained in:
mlogclub
2026-06-02 11:29:06 +08:00
parent abedafe911
commit 7a2f673a02
2 changed files with 4 additions and 8 deletions
@@ -178,7 +178,7 @@ func (s *knowledgeDocumentService) DeleteKnowledgeDocument(id int64) error {
}); err != nil {
return err
}
return rag.Index.RemoveDocumentIndexByChunkModels(context.Background(), id, chunks)
return rag.Index.RemoveDocumentIndexByChunks(context.Background(), id, chunks)
}
func (s *knowledgeDocumentService) buildKnowledgeDocumentModel(req request.CreateKnowledgeDocumentRequest) (*models.KnowledgeDocument, error) {