suryaprakash01 commited on
Commit
bb2d74e
·
verified ·
1 Parent(s): a64398f

Update src/document_processor.py

Browse files
Files changed (1) hide show
  1. src/document_processor.py +4 -1
src/document_processor.py CHANGED
@@ -27,6 +27,8 @@ class DynamicRAGUpdater:
27
  vector_db_path: str,
28
  embedding_model: str,
29
  ):
 
 
30
  self.vector_db_path = Path(vector_db_path)
31
 
32
  self.embedding_model = SentenceTransformer(
@@ -53,7 +55,8 @@ class DynamicRAGUpdater:
53
  "chunks": self.chunks,
54
  "chunk_id_to_idx": self.chunk_id_to_idx,
55
  "embedding_dim": self.embedding_dim,
56
- "model": self.embedding_model._model_card,
 
57
  },
58
  f,
59
  )
 
27
  vector_db_path: str,
28
  embedding_model: str,
29
  ):
30
+ self.model_name = embedding_model
31
+
32
  self.vector_db_path = Path(vector_db_path)
33
 
34
  self.embedding_model = SentenceTransformer(
 
55
  "chunks": self.chunks,
56
  "chunk_id_to_idx": self.chunk_id_to_idx,
57
  "embedding_dim": self.embedding_dim,
58
+ "model": self.model_name,
59
+
60
  },
61
  f,
62
  )