Files

66 lines
3.4 KiB
Markdown
Raw Permalink Normal View History

2024-04-07 14:26:45 +08:00
# AgentCoord: Visually Exploring Coordination Strategy for LLM-based Multi-Agent Collaboration
<p align="center">
2024-04-07 23:12:14 +08:00
<a ><img src="static/icon.png" alt=" AgentCoord: Visually Exploring Coordination Strategy for LLM-based Multi-Agent Collaboration" width="200px"></a>
2024-04-07 14:26:45 +08:00
</p>
2024-04-19 10:19:24 +08:00
AgentCoord is an experimental open-source system to help general users design coordination strategies for multiple LLM-based agents.
[Research paper](https://arxiv.org/abs/2404.11943)
2024-04-07 14:26:45 +08:00
## System Usage
2024-04-07 23:12:55 +08:00
<a href="https://youtu.be/s56rHJx-eqY" target="_blank"><img src="static/videoPreview.png"
2024-04-07 14:26:45 +08:00
alt="System Usage Video" width="800" border="5" /></a>
## Installation
2024-04-07 14:58:42 +08:00
### Install with Docker (Recommended)
If you have installed [docker](https://www.docker.com/) and [docker-compose](https://docs.docker.com/compose/) on your machine, we recommend running AgentCoord in docker
2024-04-07 22:12:40 +08:00
Step 1: Clone the project:
2024-04-07 14:58:42 +08:00
```bash
git clone https://github.com/AgentCoord/AgentCoord.git
cd AgentCoord
```
2024-04-07 22:47:11 +08:00
2024-04-07 22:49:32 +08:00
Step 2: Config LLM (see [LLM configuration (use docker)](README.md#llm-configuration-use-docker)):
2024-04-07 22:47:11 +08:00
Step 3: Start the servers
```bash
docker-compose up
```
Step 4: Open http://localhost:8080/ to use the system.
2024-04-07 14:58:42 +08:00
### Install on your machine
If you want to install and run AgentCoord on your machine without using docker:
Step 1: Clone the project
```bash
git clone https://github.com/AgentCoord/AgentCoord.git
cd AgentCoord
```
2024-04-07 22:47:11 +08:00
Step 2: Config LLM (see [LLM configuration (install on your machine)](README.md#llm-configuration-install-on-your-machine)):
2024-04-07 22:48:35 +08:00
Step 3: Install required packages, then run the backend and frontend servers separately (see readme.md for [frontend](frontend/README.md) and [backend](backend/README.md#Installation)
2024-04-07 14:58:42 +08:00
Step 4: Open http://localhost:8080/ to use the system.
## Configuration
2024-04-07 22:47:11 +08:00
### LLM configuration (use docker)
2024-04-07 22:39:25 +08:00
You can set the configuration (i.e. API base, API key, Model name) for default LLM in ./docker-compose.yml. Currently, we only support OpenAIs LLMs as the default model. We recommend using gpt-4-turbo-preview as the default model (WARNING: the execution process of multiple agents may consume a significant number of tokens). You can switch to a fast mode that uses the Mistral 8×7B model with hardware acceleration by [Groq](https://groq.com/) for the first time in strategy generation to strike a balance of response quality and efficiency. To achieve this, you need to set the FAST_DESIGN_MODE field in the yaml file as True and fill the GROQ_API_KEY field with the api key of [Groq](https://wow.groq.com/).
2024-04-07 14:26:45 +08:00
2024-04-07 22:47:11 +08:00
### LLM configuration (install on your machine)
2024-04-07 22:49:32 +08:00
You can set the configuration in ./backend/config/config.yaml. See [LLM configuration (use docker)](#llm-configuration-use-docker) for configuration explanations.
2024-04-07 14:26:45 +08:00
2024-04-07 22:12:40 +08:00
### Agent configuration
2024-04-07 22:34:44 +08:00
Currently, we support config agents by [role-prompting](https://arxiv.org/abs/2305.14688). You can customize your agents by changing the role prompts in AgentRepo\agentBoard_v1.json. We plan to support more methods to customize agents (e.g., supporting RAG, or providing a unified wrapper for customized agents) in the future.
2024-04-07 14:26:45 +08:00
## More Papers & Projects for LLM-based Multi-Agent Collaboration
2024-04-07 23:15:14 +08:00
If youre interested in LLM-based multi-agent collaboration and want more papers & projects for reference, you may check out the [corpus](https://docs.google.com/spreadsheets/d/1HSl4AqIVXhUjZh0pRhz-brzfA7evh20Q/edit?usp=sharing&ouid=112400145401551512954&rtpof=true&sd=true) collected by us. Any contribution to the corpus is also welcome.
2024-04-07 14:26:45 +08:00
2024-03-31 17:24:15 +08:00