4 天以前 fb5dcaeb2ab91d0f9ffea26fd15ddcbbe5d36bb9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package cn.iocoder.yudao.module.ai.service.knowledge;
 
import cn.iocoder.yudao.framework.common.pojo.PageResult;
import cn.iocoder.yudao.module.ai.controller.admin.knowledge.vo.segment.*;
import cn.iocoder.yudao.module.ai.dal.dataobject.knowledge.AiKnowledgeSegmentDO;
import cn.iocoder.yudao.module.ai.service.knowledge.bo.AiKnowledgeSegmentSearchReqBO;
import cn.iocoder.yudao.module.ai.service.knowledge.bo.AiKnowledgeSegmentSearchRespBO;
 
import java.util.List;
 
public interface AiKnowledgeSegmentService {
 
    AiKnowledgeSegmentDO getSegment(Long id);
 
    AiKnowledgeSegmentDO validateSegmentExists(Long id);
 
    PageResult<AiKnowledgeSegmentDO> getSegmentPage(AiKnowledgeSegmentPageReqVO pageReqVO);
 
    Long createSegment(AiKnowledgeSegmentSaveReqVO saveReqVO);
 
    void updateSegment(AiKnowledgeSegmentSaveReqVO saveReqVO);
 
    void deleteSegment(Long id);
 
    void updateSegmentStatus(AiKnowledgeSegmentUpdateStatusReqVO updateStatusReqVO);
 
    void deleteSegmentsByDocumentId(Long documentId);
 
    void saveSegments(List<AiKnowledgeSegmentDO> segments, Long knowledgeId, Long embeddingModelId);
 
    List<AiKnowledgeSegmentSearchRespBO> searchSegments(AiKnowledgeSegmentSearchReqBO searchReqBO);
 
}