code-gen-assistant / scripts /03_build_index.py
Rushabh147's picture
Initial deploy to HF Spaces (clean history, LFS for all binaries)
b89e6d6
Raw
History Blame Contribute Delete
469 Bytes
"""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()