fix(script): add app dir to sys.path for proper imports
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user