Spaces:
Running on Zero
Running on Zero
File size: 508 Bytes
777ea0e | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | #!/usr/bin/env bash
# Copy the finished jina FAISS index into the Space's data/ dir.
# Run this from the project root (v:\Coding_RAG) AFTER the embed build completes
# (status shows embedded == 91720).
set -e
SRC=data/index
DST=hf-space/gdscript-assistant/data
cp "$SRC/embeddings.faiss" "$DST/embeddings.faiss"
cp "$SRC/id_map.json" "$DST/id_map.json"
# chunks.jsonl is already staged; refresh in case it changed:
cp data/chunks.jsonl "$DST/chunks.jsonl"
echo "Staged into $DST:"
ls -lh "$DST"
|