MohitRajput45 commited on
Commit
0d1f079
·
verified ·
1 Parent(s): 117b594

Update src/rag_engine/retriever.py

Browse files
Files changed (1) hide show
  1. src/rag_engine/retriever.py +3 -1
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.DefaultEmbeddingFunction()
 
 
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(