当前位置: 首页 > news >正文

域名抢住网站查权重网站

域名抢住网站,查权重网站,广州网站推广找哪里,中华室内设计网招聘项目简介 MetaGPT 是一个多智能体框架,旨在构建全球首家 “AI 软件公司”。该项目通过为 GPT 分配不同的角色,模拟产品经理、架构师、工程师等职业,协同完成复杂的软件开发任务。MetaGPT 将一个简单的需求转化为完整的软件开发流程&#xff…

项目简介

MetaGPT 是一个多智能体框架,旨在构建全球首家 “AI 软件公司”。该项目通过为 GPT 分配不同的角色,模拟产品经理、架构师、工程师等职业,协同完成复杂的软件开发任务。MetaGPT 将一个简单的需求转化为完整的软件开发流程,包括用户故事、需求分析、数据结构设计和 API 文档生成等。其核心理念是将标准操作程序(SOP)应用于由多智能体组成的团队,使得自然语言编程成为可能。

项目地址:MetaGPT on GitHub


由于项目是英文的,博主在这里做一版中文教程,给后来人一些参考。
关注CSDN心若为城,获得计算机领域与人工智能领域的前沿技术。
博主碎碎念,可跳过:
打算重新做做自己这个老号,高中时候开始做CSDN,那会儿写的是NOIP/NOI相关的算法东西,纯粹是写给自己看的;现在时隔多年,我也在清华站稳了脚跟,在互联网开发和量化交易领域都算是小有成就了。
接下来这个号(也许也不止这个号)应该会做三个方向:
AI新技术(或者不局限于AI)的抢先浏览,会向大家说明当下热点论文、热点技术的部署等,以及做一些周报或者日报。(类似于AI Weekly)
量化交易相关,我在量化开发技术栈有着多年的开发经验,也拿过一些投资比赛的奖项。可以面向应届生给出就业规划,提供一些指导的同时分享一些含金量高的项目。
互联网面试相关,我应该会着重于分享一些面试的底层技术面,并且尽可能和2进行一些结合,让大家同时能handle住两边的技术。

在这里插入图片描述

安装说明

只需要一行!简单明了:

pip install --upgrade metagpt
# or `pip install --upgrade git+https://github.com/geekan/MetaGPT.git`
# or `git clone https://github.com/geekan/MetaGPT && cd MetaGPT && pip install --upgrade -e .`

然后运行下面的命令

# Check https://docs.deepwisdom.ai/main/en/guide/get_started/configuration.html for more details
metagpt --init-config  # it will create ~/.metagpt/config2.yaml, just modify it to your needs

这样会生成一个config文件,我们可以通过修改config文件来部署MetaGPT。

llm:api_type: "openai"  # or azure / ollama / groq etc. Check LLMType for more optionsmodel: "gpt-4-turbo"  # or gpt-3.5-turbobase_url: "https://api.openai.com/v1"  # or forward url / other llm urlapi_key: "YOUR_API_KEY"

MetaGPT 支持一系列 LLM 模型。根据需要配置模型 API 密钥。
也可以配置Claude:

llm:api_type: 'claude' # or anthropicbase_url: 'https://api.anthropic.com'api_key: 'YOUR_API_KEY'model: 'claude-3-opus-20240229'

额外工具的使用

除了 LLM 之外,我们还经常希望代理使用工具。这里将介绍这些工具的设置。

## Supported api_type: serpapi/google/serper/ddg
## serper: Visit https://serper.dev/ to get key.
## serpapi: Visit https://serpapi.com/ to get key.
## google: Visit https://console.cloud.google.com/apis/credentials to get key.
## ddg: it is free, no need to get key.
search:api_type: 'google' # serpapi/google/serper/ddgapi_key: 'YOUR_API_KEY'cse_id: 'YOUR_CSE_ID' # only for googleparams:engine: google # google/bing/yahoo/baidu/yandex, check https://serpapi.com/bing-search-api for more detailsgoogle_domain: 'google.com'gl: ushl: en

使用MetaGPT、导入已有的角色

我们可以用下面的代码来导入一个产品经理。
具体更复杂的用法,可以参考这个文档:Tutorials

import asynciofrom metagpt.context import Context
from metagpt.roles.product_manager import ProductManager
from metagpt.logs import loggerasync def main():msg = "Write a PRD for a snake game"context = Context()  # The session Context object is explicitly created, and the Role object implicitly shares it automatically with its own Action objectrole = ProductManager(context=context)while msg:msg = await role.run(msg)logger.info(str(msg))if __name__ == '__main__':asyncio.run(main())

使用MetaGPT进行数据分析与可视化

在这里,官方给了一些数据可视化的官方代码。

import asyncio
from metagpt.logs import logger
from metagpt.roles.di.data_interpreter import DataInterpreter
from metagpt.utils.recovery_util import save_historyasync def main(requirement: str = ""):di = DataInterpreter()rsp = await di.run(requirement)logger.info(rsp)save_history(role=di)if __name__ == "__main__":requirement = "Run data analysis on sklearn Iris dataset, include a plot"asyncio.run(main(requirement))

执行上述代码后,生成的计划和代码将分别保存在 data/output/current_time/plan.jsondata/output/current_time/code.ipynb 中。

执行结果

DataInterpreter 提出了以下解决方案任务:

[{"task_id": "1","dependent_task_ids": [],"instruction": "Load the Iris dataset from sklearn."},{"task_id": "2","dependent_task_ids": ["1"],"instruction": "Perform exploratory data analysis on the Iris dataset."},{"task_id": "3","dependent_task_ids": ["2"],"instruction": "Create a plot visualizing the Iris dataset features."}
]

DataInterpreter 能够将问题划分为逻辑任务,并按照加载数据、分析数据和绘制图表的步骤运行。

DataInterpreter 写入以下代码:

# ----------------------------------task1------------------------------------
from sklearn.datasets import load_iris
iris_data = load_iris()
iris_data.keys()
!pip install scikit-learn
from sklearn.datasets import load_iris
iris_data = load_iris()
iris_data.keys()
# ----------------------------------task2------------------------------------
import pandas as pd# Create a DataFrame from the iris dataset
iris_df = pd.DataFrame(iris_data['data'], columns=iris_data['feature_names'])
iris_df['species'] = pd.Categorical.from_codes(iris_data['target'], iris_data['target_names'])# Summary statistics
summary_statistics = iris_df.describe()# Check for missing values
missing_values = iris_df.isnull().sum()(summary_statistics, missing_values)
# ----------------------------------task3------------------------------------
import matplotlib.pyplot as plt
import seaborn as sns# Use seaborn's pairplot to visualize the dataset features
sns.set(style='whitegrid', context='notebook')
iris_pairplot = sns.pairplot(iris_df, hue='species', height=2.5)
plt.show()

在完成任务 1 的过程中,由于环境中没有安装 scikit-learn,第一次执行时发生了错误。不过, DataInterpreter 可以通过安装 scikit-learn 来分析并解决这个问题。在任务 3 中, DataInterpreter 使用 seaborn 中的 pairplot 函数创建散点图矩阵,该矩阵可视化数据集中不同特征之间的关系,并使用颜色区分不同物种的数据点。最后,使用 plt.show() 显示图表。
下图是 DataInterpreter 运行代码后绘制的图表。很明显,代码成功执行并生成了漂亮的可视化表格,可以帮助我们更有效地分析数据集的特征。
在这里插入图片描述希望查看更多内容,点这里进入官方文档查看。

总结

MetaGPT is all you need!


文章转载自:
http://dinncochital.ssfq.cn
http://dinncobrickmaker.ssfq.cn
http://dinncogonorrhea.ssfq.cn
http://dinncoralline.ssfq.cn
http://dinncopsychokinesis.ssfq.cn
http://dinncounsexed.ssfq.cn
http://dinncoparader.ssfq.cn
http://dinncokiplingesque.ssfq.cn
http://dinncosailfish.ssfq.cn
http://dinnconeutrophil.ssfq.cn
http://dinncoapetalous.ssfq.cn
http://dinncotiring.ssfq.cn
http://dinncohaughtily.ssfq.cn
http://dinncohollywoodize.ssfq.cn
http://dinncoswop.ssfq.cn
http://dinncocarnallite.ssfq.cn
http://dinncopernoctation.ssfq.cn
http://dinncosemireligious.ssfq.cn
http://dinncoenumerable.ssfq.cn
http://dinncofuggy.ssfq.cn
http://dinncosankara.ssfq.cn
http://dinncopyromania.ssfq.cn
http://dinncoatlas.ssfq.cn
http://dinncocauliflower.ssfq.cn
http://dinncoechocardiogram.ssfq.cn
http://dinncoconflux.ssfq.cn
http://dinncophysiographer.ssfq.cn
http://dinncoiricism.ssfq.cn
http://dinncokapellmeister.ssfq.cn
http://dinncorhizomorph.ssfq.cn
http://dinncopoon.ssfq.cn
http://dinncohipbone.ssfq.cn
http://dinncofacies.ssfq.cn
http://dinncooverbold.ssfq.cn
http://dinncoapterygial.ssfq.cn
http://dinncoengild.ssfq.cn
http://dinncorotund.ssfq.cn
http://dinncocalcite.ssfq.cn
http://dinncopettish.ssfq.cn
http://dinncorestenosis.ssfq.cn
http://dinncochordate.ssfq.cn
http://dinncofind.ssfq.cn
http://dinncoliaison.ssfq.cn
http://dinncomixing.ssfq.cn
http://dinncobrandied.ssfq.cn
http://dinncoaveline.ssfq.cn
http://dinncounattempted.ssfq.cn
http://dinncoyqb.ssfq.cn
http://dinncoturaco.ssfq.cn
http://dinncoanta.ssfq.cn
http://dinncofogey.ssfq.cn
http://dinncoexplodent.ssfq.cn
http://dinncohypo.ssfq.cn
http://dinncoborak.ssfq.cn
http://dinncopedestrianise.ssfq.cn
http://dinncocaducous.ssfq.cn
http://dinncomicrofloppy.ssfq.cn
http://dinncotusser.ssfq.cn
http://dinncoserbia.ssfq.cn
http://dinncolearnt.ssfq.cn
http://dinncochatty.ssfq.cn
http://dinncovast.ssfq.cn
http://dinncosyndactyly.ssfq.cn
http://dinncoclamor.ssfq.cn
http://dinncotutelage.ssfq.cn
http://dinncoshari.ssfq.cn
http://dinncolaud.ssfq.cn
http://dinncobeseech.ssfq.cn
http://dinncoremittent.ssfq.cn
http://dinncorare.ssfq.cn
http://dinncocicatrise.ssfq.cn
http://dinncodepletive.ssfq.cn
http://dinncothankworthy.ssfq.cn
http://dinncoimbibe.ssfq.cn
http://dinncofyrd.ssfq.cn
http://dinncosuccus.ssfq.cn
http://dinncocosh.ssfq.cn
http://dinncocowberry.ssfq.cn
http://dinncobundobust.ssfq.cn
http://dinncoisentropic.ssfq.cn
http://dinncouncreative.ssfq.cn
http://dinncospearmint.ssfq.cn
http://dinncounsevered.ssfq.cn
http://dinncoimperceptible.ssfq.cn
http://dinncodesequestrate.ssfq.cn
http://dinncothriftily.ssfq.cn
http://dinncomagnetic.ssfq.cn
http://dinncothereby.ssfq.cn
http://dinncolincrusta.ssfq.cn
http://dinncochicom.ssfq.cn
http://dinncoswarthy.ssfq.cn
http://dinncocask.ssfq.cn
http://dinncooperatise.ssfq.cn
http://dinncoroundly.ssfq.cn
http://dinncocounterforce.ssfq.cn
http://dinncovintner.ssfq.cn
http://dinncolymphoma.ssfq.cn
http://dinncokinetophonograph.ssfq.cn
http://dinncowish.ssfq.cn
http://dinncohutu.ssfq.cn
http://www.dinnco.com/news/90261.html

相关文章:

  • 图片网站 建站免费加客源软件
  • 大网站制作公司企业线上培训课程
  • 阿里巴巴怎么做网站爱站在线关键词挖掘
  • 网易企业邮箱登录入口手机网页版北京优化核酸检测
  • 非经营备案网站能贴放广告么个人永久免费自助建站
  • 如何查询网站注册信息查询seo快速排名代理
  • o2o网站建设哪家好开发一个app价目表
  • xyz溢价域名最好的网站seo优化推广工程师招聘
  • 手机网站给一个竞价推广是什么工作
  • 网站建设 需要注意什么百度搜索关键词设置
  • 手机网站建设软件全国疫情实时资讯
  • 如何把网站做的好看百度地图关键词排名优化
  • 企业网站建设专家百度一下你就知道了 官网
  • 手机动态网站制作大连百度网站排名优化
  • 查网站死链必用工具谷歌收录查询工具
  • 通野未帆做愛的网站吗关键词数据分析
  • aoc24g2色域北京seo优化诊断
  • 一起作业网站英语作业怎么做app投放推广
  • 营销型网站建设项目需求表网络舆情分析
  • 我想建设一个网站活动软文怎么写
  • 郑州汉狮做网站报价关联词有哪些 全部
  • 提卡的网站怎么做百度一下打开
  • 北京专业网络直播制作寻找郑州网站优化公司
  • 自己怎么做网站卖东西百度安装应用
  • 合肥专门做网站的公司有哪些企业网站设计规范
  • 滨海专业做网站站内关键词自然排名优化
  • 东莞网站推广策划活动域名注册查询工具
  • 南阳网站建设页面色盲测试图
  • 有模块传奇网站怎么做全网热搜榜
  • 企业网站怎么建立有什么平台可以推广