OpenRAG 0.5.1__tar.gz → 0.5.1.dev2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {openrag-0.5.1/src/openrag.egg-info → openrag-0.5.1.dev2}/PKG-INFO +1 -1
- {openrag-0.5.1 → openrag-0.5.1.dev2}/pyproject.toml +1 -1
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/connectors/onedrive/connector.py +19 -5
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/models/processors.py +0 -43
- {openrag-0.5.1 → openrag-0.5.1.dev2/src/openrag.egg-info}/PKG-INFO +1 -1
- {openrag-0.5.1 → openrag-0.5.1.dev2}/LICENSE +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/MANIFEST.in +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/README.md +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/setup.cfg +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/agent.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/api/__init__.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/api/auth.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/api/chat.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/api/connectors.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/api/docling.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/api/documents.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/api/flows.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/api/keys.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/api/knowledge_filter.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/api/langflow_files.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/api/models.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/api/nudges.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/api/oidc.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/api/provider_health.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/api/provider_validation.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/api/router.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/api/search.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/api/settings.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/api/tasks.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/api/upload.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/api/v1/__init__.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/api/v1/chat.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/api/v1/documents.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/api/v1/knowledge_filters.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/api/v1/models.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/api/v1/search.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/api/v1/settings.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/auth/__init__.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/auth/ibm_auth.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/auth_context.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/bootstrap.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/config/__init__.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/config/config_manager.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/config/embedding_constants.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/config/model_constants.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/config/paths.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/config/settings.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/connectors/__init__.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/connectors/aws_s3/__init__.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/connectors/aws_s3/api.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/connectors/aws_s3/auth.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/connectors/aws_s3/connector.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/connectors/aws_s3/models.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/connectors/aws_s3/support.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/connectors/base.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/connectors/connection_manager.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/connectors/google_drive/__init__.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/connectors/google_drive/connector.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/connectors/google_drive/oauth.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/connectors/ibm_cos/__init__.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/connectors/ibm_cos/api.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/connectors/ibm_cos/auth.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/connectors/ibm_cos/connector.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/connectors/ibm_cos/models.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/connectors/ibm_cos/support.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/connectors/onedrive/__init__.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/connectors/onedrive/oauth.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/connectors/service.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/connectors/sharepoint/__init__.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/connectors/sharepoint/connector.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/connectors/sharepoint/oauth.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/connectors/sharepoint/utils.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/dependencies.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/main.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/mcp_http/__init__.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/mcp_http/server.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/models/__init__.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/models/tasks.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/models/url.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/openrag.egg-info/SOURCES.txt +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/openrag.egg-info/dependency_links.txt +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/openrag.egg-info/entry_points.txt +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/openrag.egg-info/requires.txt +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/openrag.egg-info/top_level.txt +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/services/__init__.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/services/api_key_service.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/services/auth_service.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/services/chat_service.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/services/conversation_persistence_service.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/services/document_service.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/services/flows_service.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/services/knowledge_filter_service.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/services/langflow_file_service.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/services/langflow_history_service.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/services/langflow_mcp_service.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/services/models_service.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/services/monitor_service.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/services/search_service.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/services/session_ownership_service.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/services/task_service.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/session_manager.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/tui/__init__.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/tui/_assets/docker-compose.gpu.yml +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/tui/_assets/docker-compose.yml +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/tui/_assets/flows/components/ollama_embedding.json +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/tui/_assets/flows/components/ollama_llm.json +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/tui/_assets/flows/components/ollama_llm_text.json +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/tui/_assets/flows/components/watsonx_embedding.json +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/tui/_assets/flows/components/watsonx_llm.json +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/tui/_assets/flows/components/watsonx_llm_text.json +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/tui/_assets/flows/ingestion_flow.json +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/tui/_assets/flows/openrag_agent.json +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/tui/_assets/flows/openrag_nudges.json +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/tui/_assets/flows/openrag_url_mcp.json +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/tui/_assets/openrag-documents/docling.pdf +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/tui/_assets/openrag-documents/ibm_anthropic.pdf +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/tui/_assets/openrag-documents/warmup_ocr.pdf +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/tui/cli.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/tui/config_fields.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/tui/main.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/tui/managers/__init__.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/tui/managers/container_manager.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/tui/managers/docling_manager.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/tui/managers/env_manager.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/tui/screens/__init__.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/tui/screens/config.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/tui/screens/diagnostics.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/tui/screens/logs.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/tui/screens/monitor.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/tui/screens/welcome.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/tui/utils/__init__.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/tui/utils/clipboard.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/tui/utils/platform.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/tui/utils/startup_checks.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/tui/utils/validation.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/tui/utils/version_check.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/tui/widgets/__init__.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/tui/widgets/command_modal.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/tui/widgets/diagnostics_notification.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/tui/widgets/error_notification.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/tui/widgets/factory_reset_warning_modal.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/tui/widgets/flow_backup_warning_modal.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/tui/widgets/prune_options_modal.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/tui/widgets/upgrade_instructions_modal.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/tui/widgets/version_mismatch_warning_modal.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/tui/widgets/waves.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/utils/__init__.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/utils/acl_utils.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/utils/container_utils.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/utils/docling_client.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/utils/document_processing.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/utils/embedding_fields.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/utils/embeddings.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/utils/encryption.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/utils/env_utils.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/utils/file_utils.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/utils/gpu_detection.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/utils/hash_utils.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/utils/langflow_headers.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/utils/langflow_utils.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/utils/logging_config.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/utils/opensearch_delete.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/utils/opensearch_queries.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/utils/opensearch_utils.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/utils/paths.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/utils/run_mode_utils.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/utils/telemetry/__init__.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/utils/telemetry/category.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/utils/telemetry/client.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/utils/telemetry/message_id.py +0 -0
- {openrag-0.5.1 → openrag-0.5.1.dev2}/src/utils/version_utils.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: openrag
|
|
3
|
-
Version: 0.5.1
|
|
3
|
+
Version: 0.5.1.dev2
|
|
4
4
|
Summary: OpenRAG is a comprehensive Retrieval-Augmented Generation platform that enables intelligent document search and AI-powered conversations.
|
|
5
5
|
Classifier: Development Status :: 4 - Beta
|
|
6
6
|
Classifier: Environment :: Console
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "openrag"
|
|
7
|
-
version = "0.5.1"
|
|
7
|
+
version = "0.5.1.dev2"
|
|
8
8
|
description = "OpenRAG is a comprehensive Retrieval-Augmented Generation platform that enables intelligent document search and AI-powered conversations."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.13"
|
|
@@ -636,7 +636,7 @@ class OneDriveConnector(BaseConnector):
|
|
|
636
636
|
|
|
637
637
|
# Check if ID contains '!' which indicates driveId!itemId format
|
|
638
638
|
if "!" in file_id:
|
|
639
|
-
parts = file_id.
|
|
639
|
+
parts = file_id.rsplit("!", 1)
|
|
640
640
|
if len(parts) == 2:
|
|
641
641
|
drive_id = parts[0]
|
|
642
642
|
item_id = parts[1]
|
|
@@ -735,7 +735,7 @@ class OneDriveConnector(BaseConnector):
|
|
|
735
735
|
|
|
736
736
|
# Build URL based on ID format
|
|
737
737
|
if "!" in file_id:
|
|
738
|
-
parts = file_id.
|
|
738
|
+
parts = file_id.rsplit("!", 1)
|
|
739
739
|
if len(parts) == 2:
|
|
740
740
|
drive_id = parts[0]
|
|
741
741
|
item_id = parts[1]
|
|
@@ -747,8 +747,11 @@ class OneDriveConnector(BaseConnector):
|
|
|
747
747
|
return content
|
|
748
748
|
|
|
749
749
|
# Try drives endpoint for driveId!itemId format
|
|
750
|
-
|
|
751
|
-
|
|
750
|
+
if not item_id.startswith("s"):
|
|
751
|
+
url = f"{self._graph_base_url}/drives/{drive_id}/items/{item_id}/content"
|
|
752
|
+
logger.info(f"Downloading via drives endpoint: {url}")
|
|
753
|
+
else:
|
|
754
|
+
url = f"{self._graph_base_url}/me/drive/items/{file_id}/content"
|
|
752
755
|
else:
|
|
753
756
|
url = f"{self._graph_base_url}/me/drive/items/{file_id}/content"
|
|
754
757
|
else:
|
|
@@ -883,7 +886,18 @@ class OneDriveConnector(BaseConnector):
|
|
|
883
886
|
files: list[dict[str, Any]] = []
|
|
884
887
|
|
|
885
888
|
try:
|
|
886
|
-
|
|
889
|
+
drive_id = None
|
|
890
|
+
if "!" in folder_id:
|
|
891
|
+
parts = folder_id.rsplit("!", 1)
|
|
892
|
+
if len(parts) == 2:
|
|
893
|
+
potential_drive_id, item_id = parts
|
|
894
|
+
if not item_id.startswith("s"):
|
|
895
|
+
drive_id = potential_drive_id
|
|
896
|
+
url = f"{self._graph_base_url}/drives/{drive_id}/items/{item_id}/children"
|
|
897
|
+
|
|
898
|
+
if not drive_id:
|
|
899
|
+
url = f"{self._graph_base_url}/me/drive/items/{folder_id}/children"
|
|
900
|
+
|
|
887
901
|
params = dict(self._default_params)
|
|
888
902
|
|
|
889
903
|
response = await self._make_graph_request(url, params=params)
|
|
@@ -27,15 +27,6 @@ from .tasks import FileTask, TaskStatus, UploadTask
|
|
|
27
27
|
|
|
28
28
|
logger = get_logger(__name__)
|
|
29
29
|
|
|
30
|
-
# Image file extensions that require OCR
|
|
31
|
-
IMAGE_EXTENSIONS = {"bmp", "jpeg", "jpg", "png", "tiff", "tif", "webp"}
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
def is_image_file(filename: str) -> bool:
|
|
35
|
-
"""Check if a file is an image based on its extension."""
|
|
36
|
-
ext = filename.split(".")[-1].lower() if "." in filename else ""
|
|
37
|
-
return ext in IMAGE_EXTENSIONS
|
|
38
|
-
|
|
39
30
|
if TYPE_CHECKING:
|
|
40
31
|
from connectors.base import DocumentACL
|
|
41
32
|
|
|
@@ -464,18 +455,6 @@ class DocumentFileProcessor(TaskProcessor):
|
|
|
464
455
|
file_task.updated_at = time.time()
|
|
465
456
|
|
|
466
457
|
try:
|
|
467
|
-
# Check if OCR is disabled and file is an image
|
|
468
|
-
filename = os.path.basename(item)
|
|
469
|
-
config = get_openrag_config()
|
|
470
|
-
ocr_enabled = config.knowledge.ocr
|
|
471
|
-
|
|
472
|
-
if not ocr_enabled and is_image_file(filename):
|
|
473
|
-
file_task.status = TaskStatus.FAILED
|
|
474
|
-
file_task.error = f"The file '{filename}' is an image file and cannot be ingested because OCR is disabled."
|
|
475
|
-
file_task.updated_at = time.time()
|
|
476
|
-
upload_task.failed_files += 1
|
|
477
|
-
return
|
|
478
|
-
|
|
479
458
|
# Compute hash
|
|
480
459
|
file_hash = hash_id(item)
|
|
481
460
|
|
|
@@ -599,17 +578,6 @@ class ConnectorFileProcessor(TaskProcessor):
|
|
|
599
578
|
file_task.updated_at = time.time()
|
|
600
579
|
upload_task.failed_files += 1
|
|
601
580
|
return
|
|
602
|
-
|
|
603
|
-
# Check if OCR is disabled and file is an image
|
|
604
|
-
config = get_openrag_config()
|
|
605
|
-
ocr_enabled = config.knowledge.ocr
|
|
606
|
-
|
|
607
|
-
if not ocr_enabled and is_image_file(file_task.filename):
|
|
608
|
-
file_task.status = TaskStatus.FAILED
|
|
609
|
-
file_task.error = f"The file '{file_task.filename}' is an image file and cannot be ingested because OCR is disabled."
|
|
610
|
-
file_task.updated_at = time.time()
|
|
611
|
-
upload_task.failed_files += 1
|
|
612
|
-
return
|
|
613
581
|
|
|
614
582
|
# Get file content from connector
|
|
615
583
|
try:
|
|
@@ -674,17 +642,6 @@ class ConnectorFileProcessor(TaskProcessor):
|
|
|
674
642
|
file_task.updated_at = time.time()
|
|
675
643
|
upload_task.failed_files += 1
|
|
676
644
|
return
|
|
677
|
-
|
|
678
|
-
# Check if OCR is disabled and file is an image
|
|
679
|
-
config = get_openrag_config()
|
|
680
|
-
ocr_enabled = config.knowledge.ocr
|
|
681
|
-
|
|
682
|
-
if not ocr_enabled and is_image_file(name):
|
|
683
|
-
file_task.status = TaskStatus.FAILED
|
|
684
|
-
file_task.error = f"The file '{name}' is an image file and cannot be ingested because OCR is disabled."
|
|
685
|
-
file_task.updated_at = time.time()
|
|
686
|
-
upload_task.failed_files += 1
|
|
687
|
-
return
|
|
688
645
|
|
|
689
646
|
if not self.user_id:
|
|
690
647
|
raise ValueError("user_id not provided to ConnectorFileProcessor")
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: openrag
|
|
3
|
-
Version: 0.5.1
|
|
3
|
+
Version: 0.5.1.dev2
|
|
4
4
|
Summary: OpenRAG is a comprehensive Retrieval-Augmented Generation platform that enables intelligent document search and AI-powered conversations.
|
|
5
5
|
Classifier: Development Status :: 4 - Beta
|
|
6
6
|
Classifier: Environment :: Console
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{openrag-0.5.1 → openrag-0.5.1.dev2}/src/tui/_assets/flows/components/watsonx_embedding.json
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|