Update src/document_processor.py
Browse files
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.
|
|
|
|
| 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 |
)
|