Spaces:
Sleeping
Sleeping
Update src/rag_engine/retriever.py
Browse files
src/rag_engine/retriever.py
CHANGED
|
@@ -22,7 +22,9 @@ class MindGuardRetriever:
|
|
| 22 |
|
| 23 |
# We MUST use the exact same embedding model used during database creation
|
| 24 |
# Otherwise, the search query and the database documents will be on different mathematical maps
|
| 25 |
-
self.embedding_fn = embedding_functions.
|
|
|
|
|
|
|
| 26 |
|
| 27 |
# Access the specific collection of clinical guidelines
|
| 28 |
self.collection = self.chroma_client.get_collection(
|
|
|
|
| 22 |
|
| 23 |
# We MUST use the exact same embedding model used during database creation
|
| 24 |
# Otherwise, the search query and the database documents will be on different mathematical maps
|
| 25 |
+
self.embedding_fn = embedding_functions.SentenceTransformerEmbeddingFunction(
|
| 26 |
+
model_name="BAAI/bge-base-en-v1.5"
|
| 27 |
+
)
|
| 28 |
|
| 29 |
# Access the specific collection of clinical guidelines
|
| 30 |
self.collection = self.chroma_client.get_collection(
|