| #!/bin/bash |
| |
|
|
| echo "π Free GAIA Agent Setup" |
| echo "========================" |
| echo "No API keys required!" |
|
|
| |
| python_version=$(python3 --version 2>&1) |
| echo "π Python version: $python_version" |
|
|
| |
| echo "π¦ Creating virtual environment..." |
| python3 -m venv free_gaia_env |
| source free_gaia_env/bin/activate |
|
|
| |
| echo "π₯ Installing requirements..." |
| pip install --upgrade pip |
| pip install datasets pandas requests wikipedia |
|
|
| |
| 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') |
| " |
|
|
| |
| 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" |