Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -55,12 +55,12 @@ def add_diagnostics_ui(search_system):
|
|
55 |
# FAISS validation
|
56 |
with col2:
|
57 |
st.subheader("π FAISS Validation")
|
58 |
-
faiss_path =
|
59 |
if faiss_path.exists():
|
60 |
st.write(f"Index Path: `{faiss_path}`")
|
61 |
-
if hasattr(search_system, 'index') and search_system.index:
|
62 |
-
|
63 |
-
|
64 |
else:
|
65 |
st.error("β Index not loaded")
|
66 |
else:
|
|
|
55 |
# FAISS validation
|
56 |
with col2:
|
57 |
st.subheader("π FAISS Validation")
|
58 |
+
faiss_path = search_system.shard_dir
|
59 |
if faiss_path.exists():
|
60 |
st.write(f"Index Path: `{faiss_path}`")
|
61 |
+
# if hasattr(search_system, 'index') and search_system.index:
|
62 |
+
st.success(f"β
Index loaded")
|
63 |
+
st.write(f"Vectors: {search_system.total_vetors}")
|
64 |
else:
|
65 |
st.error("β Index not loaded")
|
66 |
else:
|