Spaces:
Sleeping
Sleeping
| import os | |
| class Config: | |
| def is_huggingface(): | |
| return os.environ.get("SPACE_ID") is not None or True # Always return True to force FAISS usage | |
| def get_vector_store_type(): | |
| return "faiss" # Always use FAISS | |
| def get_model_path(): | |
| if Config.is_huggingface(): | |
| return "sentence-transformers/multi-qa-MiniLM-L6-cos-v1" | |
| return "multi-qa-MiniLM-L6-cos-v1" |