File size: 1,824 Bytes
4e56cc5 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 |
#!/bin/bash
# setup_free_gaia.sh - Setup script for Free GAIA Agent
echo "π Free GAIA Agent Setup"
echo "========================"
echo "No API keys required!"
# Check Python version
python_version=$(python3 --version 2>&1)
echo "π Python version: $python_version"
# Create virtual environment (optional but recommended)
echo "π¦ Creating virtual environment..."
python3 -m venv free_gaia_env
source free_gaia_env/bin/activate
# Install minimal requirements
echo "π₯ Installing requirements..."
pip install --upgrade pip
pip install datasets pandas requests wikipedia
# Test internet connection
echo "π Testing internet connection..."
python3 -c "
import requests
try:
response = requests.get('https://api.duckduckgo.com/', timeout=5)
print('β
Internet connection working')
except:
print('β Internet connection failed')
print('β οΈ This agent requires internet access')
"
# Test dataset access
echo "π§ͺ Testing GAIA dataset access..."
python3 -c "
from datasets import load_dataset
try:
dataset = load_dataset('gaia-benchmark/GAIA', '2023_all')
print('β
GAIA dataset access successful!')
print(f' Validation set: {len(dataset[\"validation\"])} questions')
print(f' Test set: {len(dataset[\"test\"])} questions')
except Exception as e:
print(f'β Dataset access failed: {e}')
print('π‘ You may need to request access at:')
print(' https://huggingface.co/datasets/gaia-benchmark/GAIA')
"
echo ""
echo "π Setup complete!"
echo ""
echo "π Next steps:"
echo "1. Run: python3 free_gaia_agent.py"
echo "2. Choose test mode first (5 questions)"
echo "3. If successful, try larger batches"
echo "4. Submit generated .jsonl file to GAIA leaderboard"
echo ""
echo "π GAIA Leaderboard: https://huggingface.co/spaces/gaia-benchmark/leaderboard" |