i_chunk_handle.py 319 B

12345678910111213141516
  1. # coding=utf-8
  2. """
  3. @project: MaxKB
  4. @Author:虎
  5. @file: i_chunk_handle.py
  6. @date:2024/7/23 16:51
  7. @desc:
  8. """
  9. from abc import ABC, abstractmethod
  10. from typing import List
  11. class IChunkHandle(ABC):
  12. @abstractmethod
  13. def handle(self, chunk_list: List[str], chunk_size: int = 256):
  14. pass