- Applied Black formatter and isort across entire codebase for professional consistency - Moved implementation scripts (rag-mini.py, rag-tui.py) to bin/ directory for cleaner root - Updated shell scripts to reference new bin/ locations maintaining user compatibility - Added comprehensive linting configuration (.flake8, pyproject.toml) with dedicated .venv-linting - Removed development artifacts (commit_message.txt, GET_STARTED.md duplicate) from root - Consolidated documentation and fixed script references across all guides - Relocated test_fixes.py to proper tests/ directory - Enhanced project structure following Python packaging standards All user commands work identically while improving code organization and beginner accessibility.
22 lines
624 B
Bash
Executable File
22 lines
624 B
Bash
Executable File
#!/bin/bash
|
|
# rag-tui - FSS-Mini-RAG Text User Interface
|
|
# Simple, educational interface for beginners
|
|
|
|
set -e
|
|
|
|
# Get script directory
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
PYTHON="$SCRIPT_DIR/.venv/bin/python3"
|
|
|
|
# Check if virtual environment exists
|
|
if [ ! -f "$PYTHON" ]; then
|
|
echo "❌ Virtual environment not found at $SCRIPT_DIR/.venv"
|
|
echo ""
|
|
echo "🔧 To fix this:"
|
|
echo " 1. Run: ./install_mini_rag.sh"
|
|
echo " 2. Or manually: python3 -m venv .venv && .venv/bin/pip install -r requirements.txt"
|
|
exit 1
|
|
fi
|
|
|
|
# Launch TUI
|
|
exec "$PYTHON" "$SCRIPT_DIR/bin/rag-tui.py" "$@" |