Source code for kor.documents.typedefs

import abc

from langchain_core.documents import Document


[docs]class AbstractDocumentProcessor(abc.ABC): """An interface for document transformers."""
[docs] @abc.abstractmethod def process(self, document: Document) -> Document: """Process document.""" raise NotImplementedError()