成人免费xxxxx在线视频软件_久久精品久久久_亚洲国产精品久久久_天天色天天色_亚洲人成一区_欧美一级欧美三级在线观看

PromptAppGPT重磅更新!AI助手0門檻開發+運行:幾十行代碼即可實現AutoGPT

人工智能 新聞
PromptAppGPT迎來重磅更新,支持幾十行低代碼實現AutoGPT;人人都可以自然語言開發和運行AI助手,無需安裝,點擊網頁即刻開發自己的大語言模型應用程序!

近日首個自研全開源自然語言低代碼GPT應用快速開發框架PromptAppGPT迎來重要更新。

框架簡介可以參考往期文章: 真低代碼!首個基于ChatGPT的自然語言開發框架PromptAppGPT:全自動編譯、運行、界面生成。

圖片

項目網站:https://promptappgpt.wangzhishi.net/

項目代碼:https://github.com/mleoking/PromptAppGPT

PromptAppGPT框架更新后增加了對網頁搜索、圖片搜索、網頁抓取、JavaScript代碼執行等多個重要執行組件的內置支持。

新的執行組件的加入和本次其他機制優化使得PromptAppGPT具備了幾十行低代碼實現AutoGPT這種AI自動助手的能力。

更新后PromptAppGPT將AI全自動助手的開發和運行門檻都降到了最低: 人人都可以自然語言開發, 直接打開網址點擊就可以運行,不用安裝任何依賴組件。

本次更新增加的My AutoGPT程序就是基于PromptAppGPT開發AI全自動助手類APP的示例。

基于PromptAppGPT 的 My AutoGPT的代碼

---
author: Leo
name: My AutoGPT
description: Use gpt   and executors to autonomously achieve whatever goal you set.
gptRound: multiple
failedRetries: 2
autoRun: true
 
sysTask:
  - executor: gpt
    prompt: |
      Constraints:
      1. If you are unsure how you previously   did something or want to recall past events, thinking about similar events   will help you remember.
      2. No user assistance
      3. Exclusively use the commands listed   in double quotes e.g. "command name"
 
      Commands:
      1. Webpage Search:   "doSearchWeb", args: "query":   "<keywords_to_search>"
      2. Image Search:   "doSearchImage", args: "query":   "<keywords_to_search>"
      3. Task Complete:   "doCompleteTask", args: "output":   "<task_output>"
 
      Resources:
      1. Internet access for searches and   information gathering.
      2. GPT-3.5 powered Agents for   delegation of simple tasks.
 
      Performance Evaluation:
      1. Continuously review and analyze your   actions to ensure you are performing to the best of your abilities.
      2. Constructively self-criticize your   big-picture behavior constantly.
      3. Reflect on past decisions and   strategies to refine your approach.
      4. Every command has a cost, so be   smart and efficient. Aim to complete tasks in the least number of steps.
 
      You should only respond in JSON format   as described below
      Response Format:
      {
          "thoughts": {
              "text":   "thought",
              "reasoning":   "reasoning",
              "plan": "- short   bulleted\n- list that conveys\n- long-term plan",
              "criticism":   "constructive self-criticism",
              "speak":   "thoughts summary to say to user"
          },
          "command": {
              "name": "command   name",
              "args": {
                  "arg name":   "value"
              }
          }
      }
 
userTask:
  - trigger: doSearchWeb
    executor: bingWeb
    prompt: |
      query: $e{"query":   "(.*)"}
      limit: 2
    outputer: $e{RawInput} doGptNext
  - trigger: doSearchImage
    executor: bingImage
    prompt: |
      query: $e{"query":   "(.*)"}
      limit: 2
    outputer: $e{RawInput} doGptNext
  - trigger: doGptNext
    executor: gpt
    prompt: Determine which next command to   use, and respond using the format specified above.
  - trigger: doCompleteTask
    executor: log
    prompt: |
       $i{Task   Complete:@textarea=$e{"output": "(.*)"}}
  - executor: gpt
    prompt: |
      $i{My Objectives:@textarea=Objectives:
      1. Recommend the best smartphone for   business professionals in 2023.
      2. Explain why the smartphone is   recommended and show the smartphone's image.}

代碼中,sysTask部分描述了助手需要遵守的約束(Constraints), 可以運行的命令(Commands),可以使用的資源(Resources),性能評估方法(Performance Evaluation),輸出內容和格式規范。

userTask部分配置了助手運行需要的5種任務各自的觸發條件(trigger),執行器(executor)和執行輸入(prompt)。

My AutoGPT運行過程

圖片

首先輸入要助手完成的目標:

1. Recommend the best smartphone for business professionals in 2023.

  為商務人士推薦2023年最好的智能手機

2. Explain why the   smartphone is recommended and show the smartphone's image.

  解釋智能手機的推薦理由并展示手機圖片

然后點擊運行。這個時候程序就開始全自動目標拆解和完成的過程:

圖片

第一步,調用GPT作決策判斷需要先進行網頁搜索,找出2023年對于商務人士最好的智能手機列表。

第二步, 調用bingWeb搜索給出兩個網頁,并得出2023年商務人士最優智能手機候選: iPhone 14 Pro Max, Samsung Galaxy S22 Ultra, Google Pixel 7 Pro, Samsung Galaxy Z Fold 4, Oppo Find X5 Pro。

第三步,調用GPT作決策判斷,下一步需要進一步搜索上面得到兩個網頁(TechRepublic vs TechRadar)觀點的異同。

第四步,調用bingWeb獲得了兩篇報道觀點異同信息。

圖片

第五步,調用GPT做決策判斷,通過以上步驟輸入,GPT判斷出iPhone 14 Pro Max是2023年對商務人士最好的智能手機; 然后GPT決策下一步需要調用圖像搜索來獲得這個手機的圖片。

第六步,調用bingImage搜索得出iPhone 14 Pro Max的兩張圖片。

圖片

第七步,調用GPT作決策判斷,在兩張圖片中選擇了第一張更好看的深藍色的圖片,并做出下一步決策是要完成任務(doCompleteTask)。

圖片

第八步,任務完成,結果推薦了iPhone 14 Pro Max手機,并給出了推薦理由和手機的圖片鏈接。

我們看到基于PromptAppGPT的My AutoGPT應用已經展露出大語言模型對于目標進行自動拆解、決策、利用工具、和綜合最終結果的能力。

更新后的PromptAppGPT帶有更多的插件和機制,將能支持低代碼開發更加智能的大語言模型應用。

作者介紹

張長旺,高級研究員,CCF理論計算機科學技術委員會委員。 曾擔任第37屆AAAI人工智能會議(AAAI-23)的高級程序委員會(SPC)成員。

圖片

他分別于2011年和2015年獲得倫敦大學學院(UCL)的碩士和博士學位。2016年至2017年在阿里巴巴從事LBS數據挖掘,2018年至2022年在騰訊從事廣告推薦和用戶畫像。

目前的研究方向是信息檢索(搜推廣)、自然語言處理、大數據挖掘的研究與應用。 

責任編輯:張燕妮 來源: 新智元
相關推薦

2018-07-23 16:18:01

2021-09-10 09:37:05

AI 數據人工智能

2024-06-12 15:59:59

前端JavaScrip識別

2022-03-14 09:57:30

Python代碼

2022-07-07 15:50:19

Python開發功能

2015-01-28 10:55:09

平安免費WiFi

2025-03-11 10:51:35

DifyDeepSeek大模型

2024-06-21 14:47:52

2023-03-29 15:11:24

AI方案

2018-10-16 14:30:22

Python微信朋友圈

2023-10-31 10:11:50

昆侖萬維大模型

2020-11-08 14:44:37

VSCode代碼編碼

2022-11-07 07:04:25

2016-03-29 10:08:07

2025-06-18 10:05:26

2018-07-13 16:26:46

編程語言Python微信

2022-11-24 09:19:53

AI數據挖掘

2024-04-01 12:43:40

模型訓練開源
點贊
收藏

51CTO技術棧公眾號

主站蜘蛛池模板: 久久久久久久综合 | 天天爽夜夜操 | 欧美在线国产精品 | 免费看国产精品视频 | 99综合在线 | 国产精品大片 | 国产精品夜夜春夜夜爽久久电影 | 国内精品久久久久久 | 亚洲aⅴ一区二区 | 欧美精品一区三区 | 中文精品久久 | 国产成人精品免费 | 久久久久久久久久久久久久久久久久久久 | 精品1区2区| 欧美精品在线一区 | 久色一区 | 欧美a√ | 婷婷色网 | 国产视频三级 | 亚洲精品久久久蜜桃 | 亚洲精品成人av久久 | 欧美中文字幕一区二区 | 亚洲精品久久久久久一区二区 | 国产玖玖| 最近中文字幕第一页 | 国产精品美女久久久久久免费 | 91视频在线观看免费 | 欧美一区二区三区视频在线 | 香蕉久久a毛片 | 91麻豆精品国产91久久久更新资源速度超快 | 国产精品久久欧美久久一区 | 欧美日韩精品一区二区三区四区 | 久久免费精品 | 欧洲视频一区二区 | 日本字幕在线观看 | 欧美在线观看一区 | 欧美精产国品一二三区 | 久草色播 | 亚洲精品国产a久久久久久 中文字幕一区二区三区四区五区 | 亚洲成人蜜桃 | 久久新|