
API網關如何發展:更輕、更智能、云原生
?AgentGPT是一個自主人工智能Agent平臺,用戶只需要為Agent指定一個名稱和目標,就可以在瀏覽器中鏈接大型語言模型(如GPT-4)來創建和部署Agent平臺。
PS:目前agentGPT僅支持chatgpt模型,暫時不支持本地llm模型,不過可以參考代碼model_factory.py#L37和agent_service_provider.py#L18,修改此處,添加本地模型的調用接口。
PS:需要提前安裝好Docker
對于Mac、Linux系統,安裝如下:
git clone https://github.com/reworkd/AgentGPT.git
cd AgentGPT
./setup.sh
對于Window系統,安裝如下:
git clone https://github.com/reworkd/AgentGPT.git
cd AgentGPT
./setup.bat
所有服務啟動后,可以在瀏覽器輸入http://localhost:3000即可
? ? ? 不使用Docker,用戶需要使用setup.sh配置ENV,同時需要更新Prisma配置文件以指向本地SQLite實例。
接下來,需要配置Next.js,代碼如下:
// Frontend
cd ./next
npm install
npm run dev
在另一個窗口中,運行以下程序來啟動后端:
// Backend. Make sure you are at the root of the project
cd ./platform
poetry install
poetry run python -m reworkd_platform
所有服務啟動后,可以在瀏覽器輸入http://localhost:3000即可
我們以獲取paperwithcode網站最新目標檢測的sota算法為例進行測試AgentGPT效果。
? ? ? ?輸入對應的任務“Get the latest sota models on the paper with code website about object detection on coco dataset”。
可利用的默認工具,如下圖所示:
進入網站->導航到目標檢測部分->過濾COCO數據集相關的模型->對這些模型進行排序
[1] https://agentgpt.reworkd.ai/zh
[2] https://github.com/reworkd/AgentGPT
[3] https://docs.reworkd.ai/introduction
[4]?https://mp.weixin.qq.com/s/YkwI01yLydO2QjGGIzvBHQ
文章轉自微信公眾號@ArronAI