#!/bin/bash # Busca semântica no banco RAG do sistema Tigre (codeclass/Sources). # Uso: rag/search_tigre.sh "consulta" [top_k] set -e RAG_DIR="$(cd "$(dirname "$0")" && pwd)" "$RAG_DIR/ensure_tunnel.sh" >&2 PY="${RAG_DIR}/.venv/bin/python3" if [ ! -x "$PY" ]; then PY="$(command -v python3)" fi export RAG_ENV_FILE="$RAG_DIR/tigre.env" exec "$PY" "$RAG_DIR/search.py" "$@"