change embed model
Browse files
app.py
CHANGED
@@ -73,7 +73,7 @@ bm25 = BM25Encoder().load("./updated-traveler.json")
|
|
73 |
##################################################
|
74 |
|
75 |
# Initialize models and retriever
|
76 |
-
embed_model = HuggingFaceEmbeddings(model_name="
|
77 |
retriever = PineconeHybridSearchRetriever(
|
78 |
embeddings=embed_model,
|
79 |
sparse_encoder=bm25,
|
|
|
73 |
##################################################
|
74 |
|
75 |
# Initialize models and retriever
|
76 |
+
embed_model = HuggingFaceEmbeddings(model_name="jinaai/jina-embeddings-v3", model_kwargs={"trust_remote_code":True})
|
77 |
retriever = PineconeHybridSearchRetriever(
|
78 |
embeddings=embed_model,
|
79 |
sparse_encoder=bm25,
|