Spaces:
Runtime error
Runtime error
minor fix
Browse files- app/rag.py +1 -1
app/rag.py
CHANGED
@@ -109,7 +109,7 @@ class ChatPDF:
|
|
109 |
return streaming_response
|
110 |
|
111 |
def clear(self):
|
112 |
-
self.client.delete(collection_name="rag_documents",
|
113 |
self.pdf_count = 0
|
114 |
self.text_chunks = []
|
115 |
self.doc_ids = []
|
|
|
109 |
return streaming_response
|
110 |
|
111 |
def clear(self):
|
112 |
+
self.client.delete(collection_name="rag_documents", points_selector=self.doc_ids)
|
113 |
self.pdf_count = 0
|
114 |
self.text_chunks = []
|
115 |
self.doc_ids = []
|