FinSightAI / backend /scripts /test_faiss.py
Aniket2003333333's picture
start
7248d39
Raw
History Blame Contribute Delete
409 Bytes
"""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()