Spaces:
Sleeping
Sleeping
stivenDR14
commited on
Commit
·
449ec56
1
Parent(s):
b29e8f3
comment vector_db delete collection
Browse files- pdf_processor.py +2 -2
pdf_processor.py
CHANGED
|
@@ -175,8 +175,8 @@ class PDFProcessor:
|
|
| 175 |
_, embeddings = self.set_llm(ai_model, type_model, api_key, project_id_watsonx)
|
| 176 |
|
| 177 |
#delete all documents from the vectorstore
|
| 178 |
-
if vectorstore:
|
| 179 |
-
|
| 180 |
|
| 181 |
chromadb.api.client.SharedSystemClient.clear_system_cache()
|
| 182 |
new_client = chromadb.EphemeralClient()
|
|
|
|
| 175 |
_, embeddings = self.set_llm(ai_model, type_model, api_key, project_id_watsonx)
|
| 176 |
|
| 177 |
#delete all documents from the vectorstore
|
| 178 |
+
#if vectorstore:
|
| 179 |
+
# vectorstore.delete_collection()
|
| 180 |
|
| 181 |
chromadb.api.client.SharedSystemClient.clear_system_cache()
|
| 182 |
new_client = chromadb.EphemeralClient()
|