MaxKB/apps/common/handle/base_split_handle.py
shaohuzhang1 c55bb3f6e5
Pr@main@pdf (#23)
* feat: 分段API支持word,pdf

* fix: 通用型知识库支持上传 PDF/DOC 格式的文档#19

---------

Co-authored-by: wangdan-fit2cloud <dan.wang@fit2cloud.com>
2024-03-29 18:28:05 +08:00

21 lines
423 B
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# coding=utf-8
"""
@project: maxkb
@Author
@file base_split_handle.py
@date2024/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