OpenRAG is a comprehensive, single package Retrieval-Augmented Generation platform built on Langflow, Docling, and Opensearch.
Python
fix tentn id and remove in components (#2123)
Edwin Josecb22b3f45a0d
diff --git a/flows/ingestion_flow.json b/flows/ingestion_flow.jsonindex 23e714ddf..1aff55f16 100644--- a/flows/ingestion_flow.json+++ b/flows/ingestion_flow.json@@ -666,7 +666,7 @@"value": true},"key": "X-Tenant-Id",- "value": "OWNER"+ "value": ""}]},diff --git a/src/api/docling.py b/src/api/docling.pyindex 70ddf54a5..40c860b6a 100644--- a/src/api/docling.py+++ b/src/api/docling.py@@ -8,11 +8,11 @@ from config.settings import (DOCLING_HOST_IP,DOCLING_SERVE_URL,DOCLING_SERVE_VERIFY_SSL,- IBM_AUTH_ENABLED,)from dependencies import get_optional_userfrom session_manager import Userfrom utils.logging_config import get_logger+from utils.run_mode_utils import is_run_mode_on_prem, is_run_mode_saaslogger = get_logger(__name__)@@ -31,11 +31,9 @@ async def health("""health_url = f"{DOCLING_SERVICE_URL}/health"headers = {}- if IBM_AUTH_ENABLED and user:+ if (is_run_mode_saas() or is_run_mode_on_prem()) and user:if user.jwt_token:headers["Authorization"] = user.jwt_token- if user.user_id:- headers["X-Tenant-Id"] = user.user_idtry:async with httpx.AsyncClient(verify=DOCLING_SERVE_VERIFY_SSL) as client: