mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 09:43:10 +00:00
* feat: 分段API支持word,pdf * fix: 通用型知识库支持上传 PDF/DOC 格式的文档#19 --------- Co-authored-by: wangdan-fit2cloud <dan.wang@fit2cloud.com>
21 lines
423 B
Python
21 lines
423 B
Python
# coding=utf-8
|
||
"""
|
||
@project: maxkb
|
||
@Author:虎
|
||
@file: base_split_handle.py
|
||
@date:2024/3/27 18:13
|
||
@desc:
|
||
"""
|
||
from abc import ABC, abstractmethod
|
||
from typing import List
|
||
|
||
|
||
class BaseSplitHandle(ABC):
|
||
@abstractmethod
|
||
def support(self, file, get_buffer):
|
||
pass
|
||
|
||
@abstractmethod
|
||
def handle(self, file, pattern_list: List, with_filter: bool, limit: int, get_buffer):
|
||
pass
|