import warnings import os # Suppress torch.classes warnings that occur during sentence-transformers initialization warnings.filterwarnings("ignore", message=".*Tried to instantiate class '__path__._path'.*") warnings.filterwarnings("ignore", message=".*Examining the path of torch.classes.*") # Optimize tokenizer parallelism os.environ["TOKENIZERS_PARALLELISM"] = "false"