Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -75,10 +75,10 @@ bm25 = BM25Encoder().load("./UAE-NLA.json")
|
|
75 |
##################################################
|
76 |
##################################################
|
77 |
|
78 |
-
old_embed_model = HuggingFaceEmbeddings(model_name="sentence-transformers/gte-multilingual-base")
|
79 |
|
80 |
# Initialize models and retriever
|
81 |
-
embed_model = HuggingFaceEmbeddings(model_name="Alibaba-NLP/gte-
|
82 |
retriever = PineconeHybridSearchRetriever(
|
83 |
embeddings=embed_model,
|
84 |
sparse_encoder=bm25,
|
|
|
75 |
##################################################
|
76 |
##################################################
|
77 |
|
78 |
+
# old_embed_model = HuggingFaceEmbeddings(model_name="sentence-transformers/gte-multilingual-base")
|
79 |
|
80 |
# Initialize models and retriever
|
81 |
+
embed_model = HuggingFaceEmbeddings(model_name="Alibaba-NLP/gte-multilingual-base", model_kwargs={"trust_remote_code":True})
|
82 |
retriever = PineconeHybridSearchRetriever(
|
83 |
embeddings=embed_model,
|
84 |
sparse_encoder=bm25,
|