package com.hertz.modules.knowledge.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.hertz.modules.knowledge.entity.KnowledgeBase;
import com.hertz.modules.knowledge.entity.KnowledgeDocument;
import org.springframework.web.multipart.MultipartFile;
import java.util.List;

public interface KnowledgeBaseService {
    KnowledgeBase createKnowledgeBase(String name, String description);
    IPage<KnowledgeBase> pageKnowledgeBases(int page, int size, String keyword);
    void uploadDocument(Long kbId, MultipartFile file);
    List<KnowledgeDocument> listDocuments(Long kbId);
    void deleteDocument(Long kbId, Long documentId);
    void rebuildVectorStore(Long kbId);
    void deleteKnowledgeBase(Long id);
}
