GraphResearcher / app /ingestion /base_parser.py
yugbirla's picture
Sync GraphRAG fusion quality cleanup and evaluation files
b7d0804
Raw
History Blame Contribute Delete
321 Bytes
from abc import ABC, abstractmethod
from typing import List
from app.schemas.rich_content_block import RichContentBlock
class BaseParser(ABC):
@abstractmethod
def parse(
self,
file_path: str,
document_id: str,
source_file_name: str
) -> List[RichContentBlock]:
pass