tykiww commited on
Commit
2f6ac46
1 Parent(s): 2dbace5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -58,7 +58,8 @@ def drop_namespace(arg):
58
  namecheck = namespace_check(arg)
59
  if namecheck:
60
  pc = pc_connector._connection()
61
- pc.delete(namespace=arg, delete_all=True)
 
62
  print("Deleted namespace: " + arg)
63
 
64
  def generate_key():
 
58
  namecheck = namespace_check(arg)
59
  if namecheck:
60
  pc = pc_connector._connection()
61
+ index = pc.Index(conf["embeddings"]["index_name"])
62
+ index.delete(namespace=arg, delete_all=True)
63
  print("Deleted namespace: " + arg)
64
 
65
  def generate_key():