jack 2 months ago
parent
commit
6e66f1ab05
1 changed files with 2 additions and 2 deletions
  1. 2 2
      py/core/providers/ingestion/unstructured/base.py

+ 2 - 2
py/core/providers/ingestion/unstructured/base.py

@@ -76,7 +76,7 @@ class UnstructuredIngestionConfig(IngestionConfig):
 
         x = json.loads(self.json())
         x.pop("extra_fields", None)
-        x.pop("provider", None)
+        #x.pop("provider", None)
         x.pop("excluded_parsers", None)
 
         x = {k: v for k, v in x.items() if v is not None}
@@ -359,7 +359,7 @@ class UnstructuredIngestionProvider(IngestionProvider):
             )
 
             file_io = BytesIO(file_content)
-
+            logger.info(f"Provider is: {self.config.provider}")
             # TODO - Include check on excluded parsers here.
             if self.config.provider == "unstructured_api":
                 logger.info(f"Using API to parse document {document.id}")