gdscript-assistant / stage_index.sh
vivekchakraverty's picture
GDScript RAG assistant: app + corpus (index added later via Colab)
777ea0e verified
raw
history blame contribute delete
508 Bytes
#!/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"