Spaces:
Running
Running
File size: 469 Bytes
b89e6d6 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | """Phase 3 entrypoint: build + persist the FAISS retrieval index.
Usage: python scripts/03_build_index.py
Reads data/processed/train.parquet, writes the index to data/index/.
"""
import sys
from pathlib import Path
sys.path.append(str(Path(__file__).resolve().parents[1]))
from src.rag.embedder import build_index_from_processed
if __name__ == "__main__":
print("=" * 60, "\nPHASE 3: BUILD RETRIEVAL INDEX\n", "=" * 60, sep="")
build_index_from_processed()
|