Skip to content

🤖 The next generation of Multi-Modal Multi-Agent platform. 👾 🦄 🔮

Notifications You must be signed in to change notification settings

ZhihaoAIRobotic/MetaAgent

Repository files navigation

logo logo

🦄 The next generation of Multi-Modal Multi-Agent platform. 🤖.

Introduction

We create a Multi-modal Multi-agent Collaboration Platform, and you can use this platform to create your own AI agent easily. You don't even need to write python code, the agent can be created by editing a yml file or using UI. Our platform have many features:

🔥 Features

  • Build, manage and deploy your LLM-based AI agents without code.
  • Multi-modal agents, agents can interact with users using texts, audios, images, and videos.
  • Multi-agent collaboration, you can create a agents company for complex tasks, such as draw comics.
  • Vector database and knowledge embeddings
  • UI for creating and usage of AI agents. (Coming soon)
  • Fine-tuning and RLHF (Coming soon)

📃 Examples

Comics Company, create a comic about Elon lands on mars.

图片9

Multi-modal agent, draw images and make videos for you.

Elon

Installation

1. Python Environment

git clone https://github.com/ZhihaoAIRobotic/MetaAgent.git
conda env create -f environment.yaml

2. Minio S3

we use Minio S3 for sending multi-modal messages to frontend. More information about Minio S3 can be found : https://min.io/.

The service is provided on 192.168.0.20:9000. We use the default access_key and secret_key: "minioadmin:minioadmin". The bucket_name is metaagent.

Usage

Without GUI

The usage without GUI is very simple, but you need to use the CURL tool.

  1. cd path/to/metaagent
  2. Create config.yaml here, fill the key you need:
OPENAI_API_BASE: "https://api.openai.com/v1"
OPENAI_API_KEY: "Your Key"
OPENAI_API_MODEL: "gpt-3.5-turbo"
MAX_TOKENS: 1500
RPM: 10

SERPAPI_API_KEY: "Your Key"

SD_URL: "YOUR_SD_URL"
SD_T2I_API: "/sdapi/v1/txt2img"
  1. Run examples
cd MetaAgent/examples
python EXAMPLE.py
  1. Use CURL to access the http service, there are some examples
1. curl --request POST 'http://localhost:60066/default' --header 'Content-Type: application/json' -d '{"data": [{"text": "Make a video of spider man."}]}'
2. curl --request POST 'http://localhost:60066/default' --header 'Content-Type: application/json' -d '{"data": [{"text": "Draw a image of Elon Musk."}]}'
  1. The CURL will respond to a link generated by Minio S3. You can copy this link and check the response content in the web browser.

Tip: In the usage of the first time, it takes some time to load the model.

With GUI

UPCOMING

There is a demo video of old version:

demo

Http Service

IP address:

 http://localhost:60066/default

Header:

'Content-Type: application/json'

Request:

{"data": [{"text": "draw a picture of Elon"}]}

Response:

{"data":[{"id":"id_number","text":[{"id":"id_number","text":"url","bytes_":null,"embedding":null,"url":null}],"image":[{"id":"id_number","text":"url","bytes_":null,"embedding":null,"url":null}],"video":[{"id":"id_number","text":"url","bytes_":null,"embedding":null,"url":null}],"audio":[{"id":"id_number","text":"url","bytes_":null,"embedding":null,"url":null}]}],"parameters":{}}

About

🤖 The next generation of Multi-Modal Multi-Agent platform. 👾 🦄 🔮

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published