#!/bin/bash # Indexa o codigo do sistema legado (code/) no banco RAG rag_doza. # Uso: rag/index_doza.sh [--full] [--file ] set -e RAG_DIR="$(cd "$(dirname "$0")" && pwd)" "$RAG_DIR/ensure_tunnel.sh" >&2 PY="${RAG_DIR}/.venv/bin/python3" [ -x "$PY" ] || PY="$(command -v python3)" export RAG_ENV_FILE="$RAG_DIR/.env" exec "$PY" "$RAG_DIR/index_code.py" "$@"