Spaces:
Sleeping
Sleeping
Dus Tran commited on
Commit ·
dc6ff05
1
Parent(s): f475e72
fix: use models/gemini-embedding-2 with 768 dimensions for compatibility with local database
Browse files- app/core/config.py +1 -1
app/core/config.py
CHANGED
|
@@ -27,7 +27,7 @@ RERANK_MODEL_NAME = "cross-encoder/ms-marco-MiniLM-L-6-v2"
|
|
| 27 |
|
| 28 |
def get_embeddings():
|
| 29 |
if IS_RENDER:
|
| 30 |
-
return GoogleGenerativeAIEmbeddings(model="models/
|
| 31 |
return HuggingFaceEmbeddings(model_name=EMBED_MODEL_NAME)
|
| 32 |
|
| 33 |
|
|
|
|
| 27 |
|
| 28 |
def get_embeddings():
|
| 29 |
if IS_RENDER:
|
| 30 |
+
return GoogleGenerativeAIEmbeddings(model="models/gemini-embedding-2", output_dimensionality=768)
|
| 31 |
return HuggingFaceEmbeddings(model_name=EMBED_MODEL_NAME)
|
| 32 |
|
| 33 |
|