Skip to content

OpenRAG is a comprehensive, single package Retrieval-Augmented Generation platform built on Langflow, Docling, and Opensearch.

Python

Merge branch 'main' into make-docling-core-optional

Edwin Jose2dbab924aecd
diff --cc Makefile
index b323b8230,15437e56f..c79c68877
--- a/Makefile
+++ b/Makefile
@@@ -638,26 -638,10 +638,26 @@@ test-ci: ## Start infra, run integratio
echo "$(YELLOW)Building OpenSearch image override...$(NC)"; \
$(CONTAINER_RUNTIME) build --no-cache -t langflowai/openrag-opensearch:latest -f Dockerfile .; \
echo "$(YELLOW)Starting infra (OpenSearch + Dashboards + Langflow + Backend + Frontend) with CPU containers$(NC)"; \
- $(COMPOSE_CMD) up -d opensearch dashboards langflow openrag-backend openrag-frontend; \
+ OPENSEARCH_HOST=opensearch $(COMPOSE_CMD) up -d opensearch dashboards langflow openrag-backend openrag-frontend; \
+ echo "$(CYAN)Architecture: $$(uname -m), Platform: $$(uname -s)$(NC)"; \
echo "$(YELLOW)Starting docling-serve...$(NC)"; \
- DOCLING_ENDPOINT=$$(uv run python scripts/docling_ctl.py start --port 5001 | grep "Endpoint:" | awk '{print $$2}'); \
+ DOCLING_START_FAILED=0; \
+ DOCLING_START_OUTPUT=$$(uv run python scripts/docling_ctl.py start --port 5001 --timeout 180 2>&1) || DOCLING_START_FAILED=1; \
+ echo "$$DOCLING_START_OUTPUT"; \
+ if [ "$$DOCLING_START_FAILED" = "1" ]; then \
+ echo "$(RED)ERROR: docling_ctl.py start failed. Output above.$(NC)"; \
+ uv run python scripts/docling_ctl.py status 2>&1 || true; \
+ $(COMPOSE_CMD) down -v 2>/dev/null || true; \
+ exit 1; \
+ fi; \
+ DOCLING_ENDPOINT=$$(echo "$$DOCLING_START_OUTPUT" | grep "Endpoint:" | awk '{print $$2}'); \
+ if [ -z "$$DOCLING_ENDPOINT" ]; then \
+ echo "$(RED)WARNING: docling-serve did not report an endpoint. Defaulting to http://localhost:5001$(NC)"; \
+ DOCLING_ENDPOINT="http://localhost:5001"; \
+ fi; \
echo "$(PURPLE)Docling-serve started at $$DOCLING_ENDPOINT$(NC)"; \
+ echo "$(YELLOW)Docling-serve status check:$(NC)"; \
+ uv run python scripts/docling_ctl.py status 2>&1 || true; \
echo "$(YELLOW)Waiting for backend OIDC endpoint...$(NC)"; \
for i in $$(seq 1 60); do \
$(CONTAINER_RUNTIME) exec openrag-backend curl -s http://localhost:8000/.well-known/openid-configuration >/dev/null 2>&1 && break || sleep 2; \
@@@ -750,26 -725,10 +750,26 @@@ test-ci-local: ## Same as test-ci but b
$(CONTAINER_RUNTIME) build -t langflowai/openrag-frontend:latest -f Dockerfile.frontend .; \
$(CONTAINER_RUNTIME) build -t langflowai/openrag-langflow:latest -f Dockerfile.langflow .; \
echo "$(YELLOW)Starting infra (OpenSearch + Dashboards + Langflow + Backend + Frontend) with CPU containers$(NC)"; \
- $(COMPOSE_CMD) up -d opensearch dashboards langflow openrag-backend openrag-frontend; \
+ echo "$(CYAN)Architecture: $$(uname -m), Platform: $$(uname -s)$(NC)"; \
+ OPENSEARCH_HOST=opensearch $(COMPOSE_CMD) up -d opensearch dashboards langflow openrag-backend openrag-frontend; \
echo "$(YELLOW)Starting docling-serve...$(NC)"; \
- DOCLING_ENDPOINT=$$(uv run python scripts/docling_ctl.py start --port 5001 | grep "Endpoint:" | awk '{print $$2}'); \
+ DOCLING_START_FAILED=0; \
+ DOCLING_START_OUTPUT=$$(uv run python scripts/docling_ctl.py start --port 5001 --timeout 180 2>&1) || DOCLING_START_FAILED=1; \
+ echo "$$DOCLING_START_OUTPUT"; \
+ if [ "$$DOCLING_START_FAILED" = "1" ]; then \
+ echo "$(RED)ERROR: docling_ctl.py start failed. Output above.$(NC)"; \
+ uv run python scripts/docling_ctl.py status 2>&1 || true; \
+ $(COMPOSE_CMD) down -v 2>/dev/null || true; \
+ exit 1; \
+ fi; \
+ DOCLING_ENDPOINT=$$(echo "$$DOCLING_START_OUTPUT" | grep "Endpoint:" | awk '{print $$2}'); \
+ if [ -z "$$DOCLING_ENDPOINT" ]; then \
+ echo "$(RED)WARNING: docling-serve did not report an endpoint. Defaulting to http://localhost:5001$(NC)"; \
+ DOCLING_ENDPOINT="http://localhost:5001"; \
+ fi; \
echo "$(PURPLE)Docling-serve started at $$DOCLING_ENDPOINT$(NC)"; \
+ echo "$(YELLOW)Docling-serve status check:$(NC)"; \
+ uv run python scripts/docling_ctl.py status 2>&1 || true; \
echo "$(YELLOW)Waiting for backend OIDC endpoint...$(NC)"; \
for i in $$(seq 1 60); do \
$(CONTAINER_RUNTIME) exec openrag-backend curl -s http://localhost:8000/.well-known/openid-configuration >/dev/null 2>&1 && break || sleep 2; \