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"