import logging # Configure logging logging.basicConfig( level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s', handlers=[ logging.StreamHandler(), logging.FileHandler('app.log') ] ) # Quran data configuration (included for compatibility with app.py, though not used by quran_search.py) QURAN_DATA_SOURCES = [ "https://cdn.jsdelivr.net/npm/quran-json@3.1.2/dist/quran.json" # Fallback, kept for app.py ] # Model configuration MODEL_NAME = 'paraphrase-multilingual-MiniLM-L12-v2' CHUNK_SIZE = 25 # Reduced for memory safety