DrishtiSharma
commited on
Update patentwiz/qa_agent.py
Browse files- patentwiz/qa_agent.py +4 -1
patentwiz/qa_agent.py
CHANGED
@@ -154,7 +154,10 @@ def call_QA_to_json(
|
|
154 |
print("An error occurred while processing the output.")
|
155 |
print("Error message:", str(e))
|
156 |
|
157 |
-
|
|
|
|
|
|
|
158 |
return cost, output
|
159 |
|
160 |
|
|
|
154 |
print("An error occurred while processing the output.")
|
155 |
print("Error message:", str(e))
|
156 |
|
157 |
+
try:
|
158 |
+
vectordb.delete(ids=["*"])
|
159 |
+
except Exception as e:
|
160 |
+
print(f"Error deleting vector database: {str(e)}")
|
161 |
return cost, output
|
162 |
|
163 |
|