Spaces:
Runtime error
Runtime error
Update app/rag.py
Browse files- app/rag.py +8 -7
app/rag.py
CHANGED
@@ -107,10 +107,11 @@ class ChatPDF:
|
|
107 |
return streaming_response
|
108 |
|
109 |
def clear(self):
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
|
|
|
107 |
return streaming_response
|
108 |
|
109 |
def clear(self):
|
110 |
+
self.vector_store = QdrantVectorStore(
|
111 |
+
client=self.client,
|
112 |
+
collection_name="rag_documents",
|
113 |
+
)
|
114 |
+
self.pdf_count = 0
|
115 |
+
self.text_chunks = []
|
116 |
+
self.doc_ids = []
|
117 |
+
self.nodes = []
|