diff --git a/.env.example b/.env.example index 5a5f6429..849b94ad 100644 --- a/.env.example +++ b/.env.example @@ -66,6 +66,10 @@ EMBEDDING_MODEL= # OPTIONAL url for openrag link to langflow in the UI LANGFLOW_PUBLIC_URL= +# OPTIONAL: Override the full docling-serve URL (e.g., for remote instances) +# If not set, auto-detects host and uses port 5001 +# DOCLING_SERVE_URL=http://my-docling-server:5001 + # OPTIONAL: Override host for docling service (for special networking setups) # HOST_DOCKER_INTERNAL=host.containers.internal diff --git a/docker-compose.yml b/docker-compose.yml index c99205a6..30574506 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -29,7 +29,7 @@ services: - "9200:9200" - "9600:9600" volumes: - - ${OPENSEARCH_DATA_PATH:-./opensearch-data}:/usr/share/opensearch/data:Z + - ${OPENSEARCH_DATA_PATH:-./opensearch-data}:/usr/share/opensearch/data:U,z dashboards: image: opensearchproject/opensearch-dashboards:3.0.0 diff --git a/docs/docs/reference/api-sdk-overview.mdx b/docs/docs/reference/api-sdk-overview.mdx new file mode 100644 index 00000000..d3a7418f --- /dev/null +++ b/docs/docs/reference/api-sdk-overview.mdx @@ -0,0 +1,12 @@ +--- +title: OpenRAG APIs and SDKs +slug: /reference/api-sdk-overview +--- + +You can use OpenRAG's APIs and SDKs to integrate and extend OpenRAG's capabilities: + +* [Python SDK](https://github.com/langflow-ai/openrag/tree/main/sdks/python) +* [TypeScript/JavaScript SDK](https://github.com/langflow-ai/openrag/tree/main/sdks/typescript) + + + \ No newline at end of file diff --git a/docs/docusaurus.config.js b/docs/docusaurus.config.js index 62345bb8..5bc29f58 100644 --- a/docs/docusaurus.config.js +++ b/docs/docusaurus.config.js @@ -17,14 +17,6 @@ const config = { favicon: 'img/favicon.ico', headTags: [ - // Algolia site verification meta tag - { - tagName: "meta", - attributes: { - name: "algolia-site-verification", - content: "424339D27FB7921F", - }, - }, ...(isProduction ? [ // Google Consent Mode - Set defaults before Google tags load diff --git a/docs/sidebars.js b/docs/sidebars.js index bc11ffa6..0cc0be91 100644 --- a/docs/sidebars.js +++ b/docs/sidebars.js @@ -75,6 +75,11 @@ const sidebars = { label: "Chat", }, "reference/configuration", + { + type: "doc", + id: "reference/api-sdk-overview", + label: "APIs and SDKs", + }, "support/contribute", "support/troubleshoot", ], diff --git a/src/api/docling.py b/src/api/docling.py index 22b709ef..2f9adcbd 100644 --- a/src/api/docling.py +++ b/src/api/docling.py @@ -1,5 +1,6 @@ """Docling service proxy endpoints.""" +import os import socket import struct from pathlib import Path @@ -73,9 +74,15 @@ def determine_docling_host() -> str: return "localhost" -# Detect the host IP once at startup -HOST_IP = determine_docling_host() -DOCLING_SERVICE_URL = f"http://{HOST_IP}:5001" +# Use explicit URL if provided, otherwise auto-detect host +_docling_url_override = os.getenv("DOCLING_SERVE_URL") +if _docling_url_override: + DOCLING_SERVICE_URL = _docling_url_override.rstrip("/") + HOST_IP = _docling_url_override # For display in health responses + logger.info("Using DOCLING_SERVE_URL override: %s", DOCLING_SERVICE_URL) +else: + HOST_IP = determine_docling_host() + DOCLING_SERVICE_URL = f"http://{HOST_IP}:5001" async def health(request: Request) -> JSONResponse: