1 line
5.1 KiB
JSON
1 line
5.1 KiB
JSON
{"repo": "bhattaraiprayag/host-assist-agent", "files": {"scripts/setup.sh": {"d9a65dd893c59876e4279a6ab1bf427252053b22": {"t": 1785745944.5129893, "n": 2251, "h": "d394624ff6915d24", "c": "#!/bin/bash\n\n# Setup script for AI Guest Response Agent\nset -e\n\necho \"===================================\"\necho \"AI Guest Response Agent Setup\"\necho \"===================================\"\necho \"\"\n\n# Check Python version\necho \"Checking Python version...\"\npython_version=$(python3 --version 2>&1 | awk '{print $2}')\necho \"Python version: $python_version\"\n\n# Check Docker\necho \"Checking Docker...\"\nif ! command -v docker &> /dev/null; then\n echo \"Error: Docker is not installed. Please install Docker first.\"\n exit 1\nfi\necho \"Docker: OK\"\n\n# Check Docker Compose\necho \"Checking Docker Compose...\"\nif ! command -v docker-compose &> /dev/null; then\n echo \"Error: Docker Compose is not installed. Please install Docker Compose first.\"\n exit 1\nfi\necho \"Docker Compose: OK\"\necho \"\"\n\n# Check if .env exists\nif [ ! -f .env ]; then\n echo \"Creating .env file from .env.example...\"\n cp .env.example .env\n echo \"\"\n echo \"⚠️ IMPORTANT: Please edit .env and add your API keys:\"\n echo \" - OPENAI_API_KEY\"\n echo \" - DEEPSEEK_API_KEY\"\n echo \" - LANGSMITH_API_KEY (optional)\"\n echo \"\"\n read -p \"Press Enter once you've added your API keys...\"\nfi\n\n# Start Docker services\necho \"Starting Docker services (Qdrant, Prometheus, Grafana)...\"\ndocker-compose up -d qdrant prometheus grafana\n\necho \"Waiting for services to start...\"\nsleep 10\n\n# Check Qdrant\necho \"Checking Qdrant...\"\nif curl -s http://localhost:6333/healthz > /dev/null; then\n echo \"Qdrant: OK\"\nelse\n echo \"Error: Qdrant is not responding. Check Docker logs.\"\n exit 1\nfi\n\n# Generate synthetic data\necho \"\"\necho \"Generating synthetic data...\"\npython scripts/generate_synthetic_data.py\n\n# Setup Qdrant and index templates\necho \"\"\necho \"Indexing templates in Qdrant...\"\npython scripts/setup_qdrant.py\n\necho \"\"\necho \"===================================\"\necho \"Setup complete! 🎉\"\necho \"===================================\"\necho \"\"\necho \"Next steps:\"\necho \"1. Run the application: python src/main.py\"\necho \"2. View Swagger docs: http://localhost:8000/docs\"\necho \"3. View Grafana dashboard: http://localhost:3000 (admin/admin)\"\necho \"4. View Prometheus: http://localhost:9090\"\necho \"\"\necho \"To run tests: pytest\"\necho \"To start full stack: docker-compose up\"\necho \"\"\n"}, "8876581f23759bb5f3b52dc48c106ce53cc7cbe7": {"t": 1785758157.1902313, "n": 2251, "h": "d394624ff6915d24", "c": "#!/bin/bash\n\n# Setup script for AI Guest Response Agent\nset -e\n\necho \"===================================\"\necho \"AI Guest Response Agent Setup\"\necho \"===================================\"\necho \"\"\n\n# Check Python version\necho \"Checking Python version...\"\npython_version=$(python3 --version 2>&1 | awk '{print $2}')\necho \"Python version: $python_version\"\n\n# Check Docker\necho \"Checking Docker...\"\nif ! command -v docker &> /dev/null; then\n echo \"Error: Docker is not installed. Please install Docker first.\"\n exit 1\nfi\necho \"Docker: OK\"\n\n# Check Docker Compose\necho \"Checking Docker Compose...\"\nif ! command -v docker-compose &> /dev/null; then\n echo \"Error: Docker Compose is not installed. Please install Docker Compose first.\"\n exit 1\nfi\necho \"Docker Compose: OK\"\necho \"\"\n\n# Check if .env exists\nif [ ! -f .env ]; then\n echo \"Creating .env file from .env.example...\"\n cp .env.example .env\n echo \"\"\n echo \"⚠️ IMPORTANT: Please edit .env and add your API keys:\"\n echo \" - OPENAI_API_KEY\"\n echo \" - DEEPSEEK_API_KEY\"\n echo \" - LANGSMITH_API_KEY (optional)\"\n echo \"\"\n read -p \"Press Enter once you've added your API keys...\"\nfi\n\n# Start Docker services\necho \"Starting Docker services (Qdrant, Prometheus, Grafana)...\"\ndocker-compose up -d qdrant prometheus grafana\n\necho \"Waiting for services to start...\"\nsleep 10\n\n# Check Qdrant\necho \"Checking Qdrant...\"\nif curl -s http://localhost:6333/healthz > /dev/null; then\n echo \"Qdrant: OK\"\nelse\n echo \"Error: Qdrant is not responding. Check Docker logs.\"\n exit 1\nfi\n\n# Generate synthetic data\necho \"\"\necho \"Generating synthetic data...\"\npython scripts/generate_synthetic_data.py\n\n# Setup Qdrant and index templates\necho \"\"\necho \"Indexing templates in Qdrant...\"\npython scripts/setup_qdrant.py\n\necho \"\"\necho \"===================================\"\necho \"Setup complete! 🎉\"\necho \"===================================\"\necho \"\"\necho \"Next steps:\"\necho \"1. Run the application: python src/main.py\"\necho \"2. View Swagger docs: http://localhost:8000/docs\"\necho \"3. View Grafana dashboard: http://localhost:3000 (admin/admin)\"\necho \"4. View Prometheus: http://localhost:9090\"\necho \"\"\necho \"To run tests: pytest\"\necho \"To start full stack: docker-compose up\"\necho \"\"\n"}}}} |