Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -44,7 +44,7 @@ def retrieve_answer(question, goals, session_key):
|
|
44 |
def namespace_check(arg):
|
45 |
pc = pc_connector._connection()
|
46 |
index = pc.Index(conf["embeddings"]["index_name"])
|
47 |
-
stats = index.
|
48 |
name_list = stats['namespaces'].keys()
|
49 |
arg in name_list
|
50 |
return arg in name_list
|
|
|
44 |
def namespace_check(arg):
|
45 |
pc = pc_connector._connection()
|
46 |
index = pc.Index(conf["embeddings"]["index_name"])
|
47 |
+
stats = index.describe_index_stats()
|
48 |
name_list = stats['namespaces'].keys()
|
49 |
arg in name_list
|
50 |
return arg in name_list
|