Testys commited on
Commit
2bff6ee
Β·
1 Parent(s): 0880e2f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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 = Path("combined_index.faiss")
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.index.ntotal:,}")
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: