DrishtiSharma commited on
Commit
a4d6114
·
verified ·
1 Parent(s): f186264

Update patentwiz/qa_agent.py

Browse files
Files changed (1) hide show
  1. 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
- vectordb.delete()
 
 
 
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