Spaces:
Sleeping
Sleeping
Update Index.py
Browse files
Index.py
CHANGED
@@ -148,7 +148,7 @@ def _upsert_docs(doc, embeddings, vector_doc_path: str, db_present: bool):
|
|
148 |
def get_domain_file_path(domain: str, file_path: str):
|
149 |
print(domain, file_path)
|
150 |
print(os.getcwd())
|
151 |
-
bool_value = _check_if_db_exists(db_path=f"{os.getcwd()}
|
152 |
print(bool_value)
|
153 |
if bool_value:
|
154 |
embeddings = load_embeddings(domain=domain, db_present=bool_value)
|
|
|
148 |
def get_domain_file_path(domain: str, file_path: str):
|
149 |
print(domain, file_path)
|
150 |
print(os.getcwd())
|
151 |
+
bool_value = _check_if_db_exists(db_path=f"{os.getcwd()}/index/{domain}/documents")
|
152 |
print(bool_value)
|
153 |
if bool_value:
|
154 |
embeddings = load_embeddings(domain=domain, db_present=bool_value)
|