IoA Installationยถ
๐ Quick Startยถ
Get IoA up and running in just a few steps:
1. ๐ Prerequisitesยถ
Make sure you have Docker installed on your local environment. If Docker is not installed, for download details, please visit the Docker official website .
2. ๐ณ๏ธ Clone the Repositoryยถ
git clone git@github.com:OpenBMB/IoA.git
cd IoA
3. ๐๏ธ Build Docker Imagesยถ
Core Componentsยถ
You can directly pull the pre-built docker images from docker hub:
# Server
docker pull weize/ioa-server:latest
# Client
docker pull weize/ioa-client:latest
# Server Frontend
docker pull weize/ioa-server-frontend:latest
# Rename the images
docker tag weize/ioa-server:latest ioa-server:latest
docker tag weize/ioa-client:latest ioa-client:latest
docker tag weize/ioa-server-frontend:latest ioa-server-frontend:latest
Or you can build from source
# Server
docker build -f dockerfiles/server.Dockerfile -t ioa-server:latest .
# Client
docker build -f dockerfiles/client.Dockerfile -t ioa-client:latest .
# Server Frontend
docker build -f dockerfiles/server_frontend.Dockerfile -t ioa-server-frontend:latest .
Agent Images (Build as needed)ยถ
# ReAct Agent
docker pull weize/react-agent:latest
docker tag weize/react-agent:latest react-agent:latest
# AutoGPT (we have fixed some bugs in AutoGPT's original docker image)
docker pull weize/autogpt:latest
docker tag weize/autogpt:latest autogpt:latest
# Open Interpreter
docker pull weize/open-interpreter:latest
docker tag weize/open-interpreter:latest open-interpreter:latest
Or you can build from source
# ReAct Agent
docker build -f dockerfiles/tool_agents/react.Dockerfile -t react-agent:latest .
# AutoGPT (we have fixed some bugs in AutoGPT's original docker image)
docker build -f dockerfiles/tool_agents/autogpt.Dockerfile -t autogpt:latest .
# Open Interpreter
docker build -f dockerfiles/tool_agents/open_interpreter.Dockerfile -t open-interpreter:latest .
4. ๐ Launch Milvus Serviceยถ
docker network create agent_network
docker-compose -f dockerfiles/compose/milvus.yaml up
5. ๐ฌ Start IoAยถ
cd dockerfiles/compose/
cp .env_template .env
In .env
, fill in your OpenAI API key and other optional environment variables. Then for a quick demo with AutoGPT and Open Interpreter:
cd ../../
docker-compose -f dockerfiles/compose/open_instruction.yaml up
And you will set up your own small-scale Internet of Agents with AutoGPT and Open Interpreter!
6. ๐งช Test It Outยถ
You can use the following script to test IoA on our Open Instruction dataset.
python scripts/open_instruction/test_open_instruction.py
Or simply send a post request like:
import requests
goal = "I want to know the annual revenue of Microsoft from 2014 to 2020. Please generate a figure in text format showing the trend of the annual revenue, and give me a analysis report."
response = requests.post(
"http://127.0.0.1:5050/launch_goal",
json={
"goal": goal,
"max_turns": 20,
"team_member_names": ["AutoGPT", "Open Interpreter"], # When it is left "None", the agent will decide whether to form a team autonomously
},
)
print(response)