diff --git a/cognee/infrastructure/loaders/external/unstructured_loader.py b/cognee/infrastructure/loaders/external/unstructured_loader.py index b60691018..1bf983608 100644 --- a/cognee/infrastructure/loaders/external/unstructured_loader.py +++ b/cognee/infrastructure/loaders/external/unstructured_loader.py @@ -104,7 +104,6 @@ class UnstructuredLoader(LoaderInterface): # Determine content type from file extension file_ext = os.path.splitext(file_path)[1].lower() - content_type_hint = None # Get file size and basic info file_size = os.path.getsize(file_path) diff --git a/cognee/tasks/ingestion/adapters/loader_to_ingestion_adapter.py b/cognee/tasks/ingestion/adapters/loader_to_ingestion_adapter.py index 912337659..241837d76 100644 --- a/cognee/tasks/ingestion/adapters/loader_to_ingestion_adapter.py +++ b/cognee/tasks/ingestion/adapters/loader_to_ingestion_adapter.py @@ -235,6 +235,5 @@ class LoaderToIngestionAdapter: Returns: IngestionData compatible object """ - from cognee.modules.ingestion.data_types import TextData return TextData(content)