Spaces:
Sleeping
Sleeping
| """Smoke test for FAISS vector store.""" | |
| import sys | |
| from pathlib import Path | |
| sys.path.insert(0, str(Path(__file__).resolve().parents[1])) | |
| from db.faiss_client import FaissDB | |
| def main(): | |
| print("Opening FAISS store...") | |
| db = FaissDB() | |
| docs = db.list_documents() | |
| print(f"Documents indexed: {len(docs)}") | |
| db.close() | |
| print("FAISS test passed.") | |
| if __name__ == "__main__": | |
| main() | |