Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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.
|
|
|
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():
|