Spaces:
Runtime error
Runtime error
Update rag.py
Browse files- app/rag.py +2 -1
app/rag.py
CHANGED
@@ -107,7 +107,8 @@ class ChatPDF:
|
|
107 |
return streaming_response
|
108 |
|
109 |
def clear(self):
|
110 |
-
self.
|
|
|
111 |
self.pdf_count = 0
|
112 |
self.text_chunks = []
|
113 |
self.doc_ids = []
|
|
|
107 |
return streaming_response
|
108 |
|
109 |
def clear(self):
|
110 |
+
for id in self.doc_ids:
|
111 |
+
self.vector_store.delete(id)
|
112 |
self.pdf_count = 0
|
113 |
self.text_chunks = []
|
114 |
self.doc_ids = []
|