File size: 461 Bytes
e6ba543
 
 
 
 
4565c57
e6ba543
 
 
4565c57
e6ba543
 
 
4565c57
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import os

class Config:
    @staticmethod
    def is_huggingface():
        return os.environ.get("SPACE_ID") is not None or True  # Always return True to force FAISS usage

    @staticmethod
    def get_vector_store_type():
        return "faiss"  # Always use FAISS

    @staticmethod
    def get_model_path():
        if Config.is_huggingface():
            return "sentence-transformers/multi-qa-MiniLM-L6-cos-v1"
        return "multi-qa-MiniLM-L6-cos-v1"