fix(script): add app dir to sys.path for proper imports

This commit is contained in:
2025-12-27 15:29:41 +01:00
parent b9f49c170c
commit ee5de90658

View File

@@ -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