From ee5de9065891b412cb8e5cff8e8cfabc5a203004 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kr=C3=BCmel=20Branko?= Date: Sat, 27 Dec 2025 15:29:41 +0100 Subject: [PATCH] fix(script): add app dir to sys.path for proper imports --- trigger_history_index.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/trigger_history_index.py b/trigger_history_index.py index 5486823..6608669 100755 --- a/trigger_history_index.py +++ b/trigger_history_index.py @@ -5,6 +5,13 @@ Script to manually trigger indexing of chat history logs. """ import sys import logging +import sys +import os +import logging + +# Add 'app' directory to sys.path to allow imports from app modules +sys.path.append(os.path.join(os.path.dirname(__file__), "app")) + from deps import get_db, get_qdrant_client from config import get_settings from services.provider_factory import ProviderFactory