MetaGPT( The Multi-Agent Framework):颠覆AI开发的革命性多智能体元编程框架

这篇具有很好参考价值的文章主要介绍了MetaGPT( The Multi-Agent Framework):颠覆AI开发的革命性多智能体元编程框架。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

一个多智能体元编程框架,给定一行需求,它可以返回产品文档、架构设计、任务列表和代码。这个项目提供了一种创新的方式来管理和执行项目,将需求转化为具体的文档和任务列表,使项目管理变得高效而智能。对于需要进行规划和协调的项目,这个框架提供了强大的支持.

MetaGPT( The Multi-Agent Framework):颠覆AI开发的革命性多智能体元编程框架,人工智能,计算机视觉,chatgpt,机器学习,MetaGPT,AI,智能体

MetaGPT’s 能力展示

https://github.com/geekan/MetaGPT/assets/34952977/34345016-5d13-489d-b9f9-b82ace413419

例如,如果你输入’ python startup.py ’ ’ Design a RecSys like今日头条’ ',你会得到很多输出,其中之一是data & api Design

MetaGPT( The Multi-Agent Framework):颠覆AI开发的革命性多智能体元编程框架,人工智能,计算机视觉,chatgpt,机器学习,MetaGPT,AI,智能体

生成一个分析和设计示例的成本约为0.2美元(在GPT-4 API费用中),而生成一个完整项目的成本约为2.0美元。

1.安装

1.1 安装视频指南

  • Matthew Berman: How To Install MetaGPT - Build A Startup With One Prompt!!
  • 常规安装
#Step 1: Ensure that NPM is installed on your system. Then install mermaid-js. (If you don't have npm in your computer, please go to the Node.js offical website to install Node.js https://nodejs.org/ and then you will have npm tool in your computer.)
npm --version
sudo npm install -g @mermaid-js/mermaid-cli

#Step 2: Ensure that Python 3.9+ is installed on your system. You can check this by using:
python --version

#Step 3: Clone the repository to your local machine, and install it.
git clone https://github.com/geekan/metagpt
cd metagpt
pip install -e.

Note:

  • If already have Chrome, Chromium, or MS Edge installed, you can skip downloading Chromium by setting the environment variable
    PUPPETEER_SKIP_CHROMIUM_DOWNLOAD to true.

  • Some people are having issues installing this tool globally. Installing it locally is an alternative solution,

    npm install @mermaid-js/mermaid-cli
    
  • don’t forget to the configuration for mmdc in config.yml

    PUPPETEER_CONFIG: "./config/puppeteer-config.json"
    MMDC: "./node_modules/.bin/mmdc"
    
  • if pip install -e. fails with error [Errno 13] Permission denied: '/usr/local/lib/python3.11/dist-packages/test-easy-install-13129.write-test', try instead running pip install -e. --user

  • 将Mermaid图表转换为SVG、PNG和PDF格式。除了Node.js版本的mermaid - cli之外,你现在还可以选择使用Python版本的剧作家、pyppeteer或mermaid。

    • Playwright

      • Install Playwright
      pip install playwright
      
      • Install the Required Browsers

      to support PDF conversion, please install Chrominum.

      playwright install --with-deps chromium
      
      • modify config.yaml

      uncomment MERMAID_ENGINE from config.yaml and change it to playwright

      MERMAID_ENGINE: playwright
      
    • pyppeteer

      • Install pyppeteer
      pip install pyppeteer
      
      • Use your own Browsers

      pyppeteer alow you use installed browsers, please set the following envirment

      export PUPPETEER_EXECUTABLE_PATH = /path/to/your/chromium or edge or chrome
      

      please do not use this command to install browser, it is too old

      pyppeteer-install
      
      • modify config.yaml

      uncomment MERMAID_ENGINE from config.yaml and change it to pyppeteer

      MERMAID_ENGINE: pyppeteer
      
    • mermaid.ink

      • modify config.yaml

      uncomment MERMAID_ENGINE from config.yaml and change it to ink

      MERMAID_ENGINE: ink
      

      Note: this method does not support pdf export.

1.2 Docker安装指南

#Step 1: Download metagpt official image and prepare config.yaml
docker pull metagpt/metagpt:latest
mkdir -p /opt/metagpt/{config,workspace}
docker run --rm metagpt/metagpt:latest cat /app/metagpt/config/config.yaml > /opt/metagpt/config/key.yaml
vim /opt/metagpt/config/key.yaml # Change the config

#Step 2: Run metagpt demo with container
docker run --rm \
    --privileged \
    -v /opt/metagpt/config/key.yaml:/app/metagpt/config/key.yaml \
    -v /opt/metagpt/workspace:/app/metagpt/workspace \
    metagpt/metagpt:latest \
    python startup.py "Write a cli snake game"

#You can also start a container and execute commands in it
docker run --name metagpt -d \
    --privileged \
    -v /opt/metagpt/config/key.yaml:/app/metagpt/config/key.yaml \
    -v /opt/metagpt/workspace:/app/metagpt/workspace \
    metagpt/metagpt:latest

docker exec -it metagpt /bin/bash
$ python startup.py "Write a cli snake game"

The command docker run ... do the following things:

  • Run in privileged mode to have permission to run the browser
  • Map host directory /opt/metagpt/config to container directory /app/metagpt/config
  • Map host directory /opt/metagpt/workspace to container directory /app/metagpt/workspace
  • Execute the demo command python startup.py "Write a cli snake game"

1.3 构造自定义

#You can also build metagpt image by yourself.
git clone https://github.com/geekan/MetaGPT.git
cd MetaGPT && docker build -t metagpt:custom .

1.4 相关配置

  • Configure your OPENAI_API_KEY in any of config/key.yaml / config/config.yaml / env
  • Priority order: config/key.yaml > config/config.yaml > env
#Copy the configuration file and make the necessary modifications.
cp config/config.yaml config/key.yaml
Variable Name config/key.yaml env
OPENAI_API_KEY # Replace with your own key OPENAI_API_KEY: “sk-…” export OPENAI_API_KEY=“sk-…”
OPENAI_API_BASE # Optional OPENAI_API_BASE: “https://<YOUR_SITE>/v1” export OPENAI_API_BASE=“https://<YOUR_SITE>/v1”

2.相关教程

#Run the script
python startup.py "Write a cli snake game"
#Do not hire an engineer to implement the project
python startup.py "Write a cli snake game" --implement False
#Hire an engineer and perform code reviews
python startup.py "Write a cli snake game" --code_review True

After running the script, you can find your new project in the workspace/ directory.

  • Preference of Platform or Tool

You can tell which platform or tool you want to use when stating your requirements.

python startup.py "Write a cli snake game based on pygame"
  • 使用指南
NAME
    startup.py - We are a software startup comprised of AI. By investing in us, you are empowering a future filled with limitless possibilities.

SYNOPSIS
    startup.py IDEA <flags>

DESCRIPTION
    We are a software startup comprised of AI. By investing in us, you are empowering a future filled with limitless possibilities.

POSITIONAL ARGUMENTS
    IDEA
        Type: str
        Your innovative idea, such as "Creating a snake game."

FLAGS
    --investment=INVESTMENT
        Type: float
        Default: 3.0
        As an investor, you have the opportunity to contribute a certain dollar amount to this AI company.
    --n_round=N_ROUND
        Type: int
        Default: 5

NOTES
    You can also use flags syntax for POSITIONAL ARGUMENTS

2.1 快速开始

It is difficult to install and configure the local environment for some users. The following tutorials will allow you to quickly experience the charm of MetaGPT.

  • MetaGPT quickstart

Try it on Huggingface Space

  • https://huggingface.co/spaces/deepwisdom/MetaGPT
  • 相关链接

https://github.com/geekan/MetaGPT/assets/2707039/5e8c1062-8c35-440f-bb20-2b0320f8d27d

3.更多推荐:终端LLM AI模型:mlc-llm

大型语言模型的机器学习编译(MLC LLM)是一种高性能的通用部署解决方案,允许使用带有编译器加速的本机api来本地部署任何大型语言模型。这个项目的使命是让每个人都能使用ML编译技术在每个人的设备上开发、优化和部署人工智能模型。

项目链接:https://github.com/mlc-ai/mlc-llm

MetaGPT( The Multi-Agent Framework):颠覆AI开发的革命性多智能体元编程框架,人工智能,计算机视觉,chatgpt,机器学习,MetaGPT,AI,智能体

最后

为了帮助大家更好的学习人工智能,这里给大家准备了一份人工智能入门/进阶学习资料,里面的内容都是适合学习的笔记和资料,不懂编程也能听懂、看懂,所有资料朋友们如果有需要全套人工智能入门+进阶学习资源包,可以在评论区或扫.码领取哦)~

在线教程

  • 麻省理工学院人工智能视频教程 – 麻省理工人工智能课程
  • 人工智能入门 – 人工智能基础学习。Peter Norvig举办的课程
  • EdX 人工智能 – 此课程讲授人工智能计算机系统设计的基本概念和技术。
  • 人工智能中的计划 – 计划是人工智能系统的基础部分之一。在这个课程中,你将会学习到让机器人执行一系列动作所需要的基本算法。
  • 机器人人工智能 – 这个课程将会教授你实现人工智能的基本方法,包括:概率推算,计划和搜索,本地化,跟踪和控制,全部都是围绕有关机器人设计。
  • 机器学习 – 有指导和无指导情况下的基本机器学习算法
  • 机器学习中的神经网络 – 智能神经网络上的算法和实践经验
  • 斯坦福统计学习

😝有需要的小伙伴,可以点击下方链接免费领取或者V扫描下方二维码免费领取🆓
MetaGPT( The Multi-Agent Framework):颠覆AI开发的革命性多智能体元编程框架,人工智能,计算机视觉,chatgpt,机器学习,MetaGPT,AI,智能体
MetaGPT( The Multi-Agent Framework):颠覆AI开发的革命性多智能体元编程框架,人工智能,计算机视觉,chatgpt,机器学习,MetaGPT,AI,智能体

人工智能书籍

  • OpenCV(中文版).(布拉德斯基等)
  • OpenCV+3计算机视觉++Python语言实现+第二版
  • OpenCV3编程入门 毛星云编著
  • 数字图像处理_第三版
  • 人工智能:一种现代的方法
  • 深度学习面试宝典
  • 深度学习之PyTorch物体检测实战
  • 吴恩达DeepLearning.ai中文版笔记
  • 计算机视觉中的多视图几何
  • PyTorch-官方推荐教程-英文版
  • 《神经网络与深度学习》(邱锡鹏-20191121)

  • MetaGPT( The Multi-Agent Framework):颠覆AI开发的革命性多智能体元编程框架,人工智能,计算机视觉,chatgpt,机器学习,MetaGPT,AI,智能体
    😝有需要的小伙伴,可以点击下方链接免费领取或者V扫描下方二维码免费领取🆓
    MetaGPT( The Multi-Agent Framework):颠覆AI开发的革命性多智能体元编程框架,人工智能,计算机视觉,chatgpt,机器学习,MetaGPT,AI,智能体

第一阶段:零基础入门(3-6个月)

新手应首先通过少而精的学习,看到全景图,建立大局观。 通过完成小实验,建立信心,才能避免“从入门到放弃”的尴尬。因此,第一阶段只推荐4本最必要的书(而且这些书到了第二、三阶段也能继续用),入门以后,在后续学习中再“哪里不会补哪里”即可。

MetaGPT( The Multi-Agent Framework):颠覆AI开发的革命性多智能体元编程框架,人工智能,计算机视觉,chatgpt,机器学习,MetaGPT,AI,智能体

第二阶段:基础进阶(3-6个月)

熟读《机器学习算法的数学解析与Python实现》并动手实践后,你已经对机器学习有了基本的了解,不再是小白了。这时可以开始触类旁通,学习热门技术,加强实践水平。在深入学习的同时,也可以探索自己感兴趣的方向,为求职面试打好基础。

MetaGPT( The Multi-Agent Framework):颠覆AI开发的革命性多智能体元编程框架,人工智能,计算机视觉,chatgpt,机器学习,MetaGPT,AI,智能体

第三阶段:工作应用

MetaGPT( The Multi-Agent Framework):颠覆AI开发的革命性多智能体元编程框架,人工智能,计算机视觉,chatgpt,机器学习,MetaGPT,AI,智能体

这一阶段你已经不再需要引导,只需要一些推荐书目。如果你从入门时就确认了未来的工作方向,可以在第二阶段就提前阅读相关入门书籍(对应“商业落地五大方向”中的前两本),然后再“哪里不会补哪里”。

MetaGPT( The Multi-Agent Framework):颠覆AI开发的革命性多智能体元编程框架,人工智能,计算机视觉,chatgpt,机器学习,MetaGPT,AI,智能体

MetaGPT( The Multi-Agent Framework):颠覆AI开发的革命性多智能体元编程框架,人工智能,计算机视觉,chatgpt,机器学习,MetaGPT,AI,智能体
😝有需要的小伙伴,可以点击下方链接免费领取或者V扫描下方二维码免费领取🆓
MetaGPT( The Multi-Agent Framework):颠覆AI开发的革命性多智能体元编程框架,人工智能,计算机视觉,chatgpt,机器学习,MetaGPT,AI,智能体文章来源地址https://www.toymoban.com/news/detail-808800.html

到了这里,关于MetaGPT( The Multi-Agent Framework):颠覆AI开发的革命性多智能体元编程框架的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包 赞助服务器费用

相关文章

  • 【AI的未来 - AI Agent系列】【MetaGPT】4. ActionNode从理论到实战

    0.1 官方解释 在MG框架0.5版本中,新增加了ActionNode类,为Agent的动作执行提供更强的能力 ActionNode可以被视为一组动作树,根据类内定义,一个动作树的父节点可以访问所有的子动作节点;也就是说,定义了一个完整的动作树之后,可以从父节点按树的结构顺序执行每一个子动

    2024年02月20日
    浏览(40)
  • 【AI的未来 - AI Agent系列】【MetaGPT】6. 用ActionNode重写技术文档助手

    前文【【AI的未来 - AI Agent系列】【MetaGPT】5. 更复杂的Agent实战 - 实现技术文档助手】我们用Action实现了一个技术文档助手,在学习了ActionNode技术之后,我们用ActionNode来尝试重写一下这个技术文档助手。 【AI的未来 - AI Agent系列】【MetaGPT】5. 更复杂的Agent实战 - 实现技术文档

    2024年02月21日
    浏览(43)
  • 【AI的未来 - AI Agent系列】【MetaGPT】3. 实现一个订阅智能体,订阅消息并打通微信和邮件

    【AI的未来 - AI Agent系列】【MetaGPT】0. 你的第一个MetaGPT程序 【AI的未来 - AI Agent系列】【MetaGPT】1. AI Agent如何重构世界 【AI的未来 - AI Agent系列】【MetaGPT】2. 实现自己的第一个Agent 以《MetaGPT智能体开发入门》课程的 Task4 为例,利用MetaGPT从0开始实现一个自己的订阅智能体,定

    2024年01月19日
    浏览(44)
  • 【AI的未来 - AI Agent系列】【MetaGPT】4.1 细说我在ActionNode实战中踩的那些坑

    上篇文章 【AI的未来 - AI Agent系列】【MetaGPT】4. ActionNode从理论到实战 中我们学习了MetaGPT中ActionNode的理论和基本用法,跑通了一个简单程序。 原理和代码实现都很简单,但是谁知道当时我遇到了多少坑… 本文带你看看我在上文中遇到的坑,希望能帮到你! 下面说下我遇到的

    2024年01月22日
    浏览(35)
  • 【AI Agent系列】【MetaGPT】9. 一句话订阅专属信息 - 订阅智能体进阶,实现一个更通用的订阅智能体(2)

    0.1 前置推荐阅读 订阅智能体实战 【AI的未来 - AI Agent系列】【MetaGPT】3. 实现一个订阅智能体,订阅消息并打通微信和邮件 【AI Agent系列】【MetaGPT】8. 一句话订阅专属信息 - 订阅智能体进阶,实现一个更通用的订阅智能体 ActionNode基础与实战 【AI的未来 - AI Agent系列】【MetaG

    2024年02月22日
    浏览(47)
  • AGI之Agent:《Agent AI: Surveying the Horizons of Multimodal Interaction智能体AI:多模态交互视野的考察》翻译与解读

    AGI之Agent:《Agent AI: Surveying the Horizons of Multimodal Interaction智能体AI:多模态交互视野的考察》翻译与解读 导读 :这篇文章探讨了一种新的 多模态 智能代理 体系结构,该体系结构可 感知视觉 刺激、 语言 输入和其他 环境相关 数据,并产生 有意义的实体动作 。 文章提出,随

    2024年01月22日
    浏览(88)
  • AI低代码,或将再次颠覆开发行业

    IT行业最不缺少概念,大多数人也都是一知半解。 AI的火爆,低代码的盛行 ,如今 AIGC+低代码、AI+低代码、智能开发、AI生成式开发、AIGS(AI生成软件) 等等呼之欲出, AIGC(AI Generated Content,AI生成内容)技术及应用的爆发,似乎正在给低/无代码行业带来一场颠覆性革命。 研

    2024年02月05日
    浏览(35)
  • 【DataWhale】灵境Agent开发——低代码创建AI智能体

    ​ 低代码模式支持开发者通过编排工作流的方式快速构建智能体,您可以通过拖拽和组合模型、提示词、代码等模块,实现准确的、复杂的业务流程。 ​ 个人体验下来,目前这个低代码开发功能还不是很完善,许多组件功能都十分有限,没法增加更多自定义的功能。可以说

    2024年03月27日
    浏览(64)
  • 【大模型系列】AutoAgents: A Framework for Automatic Agent Generation论文阅读

    AutoAgents: A Framework for Automatic Agent Generation 基本信息 作者单位:北京大学 香港科技大学 北京人工智能研究院 滑铁卢大学 期刊:arXiv 一句话介绍:自适应地生成和协调多个专业代理,根据不同的任务构建 AI 团队 论文:https://arxiv.org/abs/2309.17288 代码:https://github.com/Link-AGI/Aut

    2024年01月19日
    浏览(47)
  • PETRv2: A Unified Framework for 3D Perception from Multi-Camera Images

    PETRv2: A Unified Framework for 3D Perception from Multi-Camera Images 旷视 本文的目标是 通过扩展 PETR,使其有时序建模和多任务学习的能力 以此建立一个 强有力且统一的框架。 本文主要贡献: 将 位置 embedding 转换到 时序表示学习,时序的对齐 是在 3D PE 上做 姿态变换实现的。提出了

    2024年02月16日
    浏览(39)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包