feat(rag): add data directory to rag setup

This commit is contained in:
Chris Christiansen 2026-05-30 21:42:48 +00:00
parent 24727e3943
commit ddec009927

View File

@ -157,7 +157,7 @@ wait_for_op() {
return 1 return 1
} }
for GCS_PATH in "seed/" "docs/" "sessions/" "MASTERPLAN.md"; do for GCS_PATH in "seed/" "docs/" "sessions/" "data/" "MASTERPLAN.md"; do
GCS_URI="gs://${CORPUS_BUCKET}/${GCS_PATH}" GCS_URI="gs://${CORPUS_BUCKET}/${GCS_PATH}"
if gsutil ls "${GCS_URI}" &>/dev/null; then if gsutil ls "${GCS_URI}" &>/dev/null; then
RESP=$(curl -s -o /tmp/import_resp.json -w "%{http_code}" -X POST \ RESP=$(curl -s -o /tmp/import_resp.json -w "%{http_code}" -X POST \
@ -198,3 +198,13 @@ echo ""
echo "=== 07: RAG Engine setup COMPLETE ===" echo "=== 07: RAG Engine setup COMPLETE ==="
echo " View: https://console.cloud.google.com/vertex-ai/rag?project=${PROJECT_ID}" echo " View: https://console.cloud.google.com/vertex-ai/rag?project=${PROJECT_ID}"
echo "" echo ""
${CORPUS_NAME}"
echo " Region : ${RAG_REGION}"
echo ""
echo " ACTION REQUIRED — legg til i .env:"
echo " export RAG_CORPUS_NAME=\"${CORPUS_NAME}\""
echo " export RAG_REGION=\"${RAG_REGION}\""
echo ""
echo "=== 07: RAG Engine setup COMPLETE ==="
echo " View: https://console.cloud.google.com/vertex-ai/rag?project=${PROJECT_ID}"
echo ""