diff --git a/compass_sdk/__init__.py b/compass_sdk/__init__.py index d0e0ed6..abcd4bf 100644 --- a/compass_sdk/__init__.py +++ b/compass_sdk/__init__.py @@ -266,6 +266,15 @@ def _missing_(cls, value): return cls.QuickText +class PresentationParsingStrategy(StrEnum): + Unstructured = "Unstructured" + ImageToMarkdown = "ImageToMarkdown" + + @classmethod + def _missing_(cls, value): + return cls.Unstructured + + class ParserConfig(BaseModel): """ CompassParser configuration. Important parameters: @@ -319,6 +328,7 @@ class ParserConfig(BaseModel): horizontal_table_crop_margin: int = 100 pdf_parsing_strategy: PDFParsingStrategy = PDFParsingStrategy.QuickText + presentation_parsing_strategy: PresentationParsingStrategy = PresentationParsingStrategy.Unstructured ### Document indexing