File size: 1,973 Bytes
c2649ec
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
59
60
61
62
# Running AWorld Agent

## Prerequisites

1. **Conda Environment**
   - Ensure Conda is installed and configured on your machine
   - Create a Conda environment:
     ```bash
     conda create -n aworld python=3.11
     conda activate aworld
     ```

2. **Clone Repository**
   - Clone the repository and switch to the main branch:
     ```bash
     git clone https://github.com/inclusionAI/AWorld
     cd AWorld
     ```

3. **Dataset Preparation**
   - Download the GAIA dataset from [Hugging Face](https://huggingface.co/datasets/gaia-benchmark/GAIA)
   - Place it in the correct directory:
     ```bash
     git clone git@hf.co:datasets/gaia-benchmark/GAIA examples/gaia/GAIA
     ```
   - ⚠️ **Note**: You need to configure [Hugging Face SSH Keys](https://huggingface.co/settings/keys) to access the GAIA repository

4. **API Configuration**
   - Set up your environment variables:
     ```bash
     cp .env.template .env
     ```
   - Edit the `.env` file and replace all `{YOUR_CONFIG}` placeholders with your actual values

## Running the Agent

1. **Start the Web Server**
   - Build and run the AWorld Agent:
     ```bash
     sh run-server.sh
     ```
   - Wait for the installation to complete

2. **Access the Interface**
   - Open your browser and navigate to [http://127.0.0.1:8000](http://127.0.0.1:8000)

## Troubleshooting

   - For dataset access problems, verify that your Hugging Face SSH keys are correctly configured
   - Set up a pip mirror if necessary

## Develop Your Own Agent

   - Copy `examples/web/agent_deploy/weather_agent` to `examples/web/agent_deploy/{YOUR_AGENT_NAME}`
   - Write your code in `examples/web/agent_deploy/{YOUR_AGENT_NAME}/agent.py`
   - Configure the MCP Server in `examples/web/agent_deploy/{YOUR_AGENT_NAME}/mcp.json`

## Additional Resources

   - [GAIA Benchmark Documentation](https://huggingface.co/datasets/gaia-benchmark/GAIA)
   - [Hugging Face SSH Keys Setup Guide](https://huggingface.co/settings/keys)