From 9f62d066ef4b9469b2fc03d66f68146ee08c0bb5 Mon Sep 17 00:00:00 2001 From: Edwin Jose Date: Thu, 4 Sep 2025 13:37:06 -0400 Subject: [PATCH] Update main.py --- src/main.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/main.py b/src/main.py index 4b7a84db..b31a6c98 100644 --- a/src/main.py +++ b/src/main.py @@ -196,12 +196,7 @@ async def ingest_default_documents_when_ready(services): try: # Ensure OpenSearch is ready and indices exist await init_index() - - # Only run in no-auth mode (mirrors non-auth upload behavior) - if not is_no_auth_mode(): - print("[INGEST] Skipping default documents ingestion: auth mode enabled") - return - + base_dir = os.path.abspath(os.path.join(os.getcwd(), "documents")) if not os.path.isdir(base_dir): print(f"[INGEST] Documents directory not found at {base_dir}; skipping")