Hello World Dev Conference
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Write
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Help
Menu
Options
Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Write
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    1
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    # 生成式AI如何重塑開發生產力的關鍵心法 - 尹相志 {%hackmd @HWDC/BJOE4qInR %} >#### 》[議程介紹](https://hwdc.ithome.com.tw/2024/session-page/3327) >#### 》[填寫議程滿意度問卷|回饋建言給辛苦的講者](https://forms.gle/WdK3Ne5aCXevnTgw8) --- [TOC] --- Demo Claude [根據草圖開發支付app](https://claude.site/artifacts/1b6545ed-174d-426e-a24a-d7290b73800b) Prompt本質是什麼? 語言的隔閡, 不是說得越詳細越清楚的. Demo Claude - RAG 一起開發的協力者. STEPS - 讓AI知道目前任務的"主要目的" - "拓展至未考慮"到的logic - AI可能在任何你想不到的地方偷懶, 讓他知道"I'm watching you" - ChatGpt變懶大家已知道, 但現在Claude也變懶了 (Claude是在放暑假的法國人) - 透過視覺化以及測試案例讓"debug 變得容易" - 寫 SQL 語法的同時請他說明理由、設計的說明等等,給他檢核點的機制 - 語言模型不是講得越詳細就做得越好 - 原因:LLM 無狀態,一次是讀「一整包」prompt,對話愈長,因為多輪對話是將原本的東西丟進去,注意力並未分配在關鍵的地方,愈容易出現「災難性的遺忘」 ![image](https://hackmd.io/_uploads/ByzrCmgTC.png) ![image](https://hackmd.io/_uploads/BJvIAQgpC.png) ![image](https://hackmd.io/_uploads/H1Dv0QgTR.png) ![image](https://hackmd.io/_uploads/BJyF0mlpR.png) ![image](https://hackmd.io/_uploads/SJgqRXg6A.png) ![image](https://hackmd.io/_uploads/rkRs0mlTA.png) ![image](https://hackmd.io/_uploads/SkRnC7eT0.png) ![image](https://hackmd.io/_uploads/ryi0R7xpA.png) ![image](https://hackmd.io/_uploads/BJQxk4laC.png) ![image](https://hackmd.io/_uploads/HywZ1NgTA.png) ![image](https://hackmd.io/_uploads/SyrzJNe6C.png) ## 技巧 失敗是常態 - 不要迷信多輪對話, 跟機器對話只會越來越迷糊(效果遞減) - 因為 context 上文愈多, 他愈會把 focus 放錯地方. - 一見鐘情與及早放手(重啟/Remix)原則. - Claude 有 Remix button, 重新出發. - AI 其實不太清楚自己的能力邊界 - claude 有其限制, e.g. artifacts 只有一頁, 不能引用外部資源. - claude 他不知道這件事(像是匯入自己沒有的函示庫) - 不要等到出現問題才想到收集 log - 相信隨機的力量 - 重啟很重要. - 不要放任線性的時間軸 - 一樣的概念, 拿到相對好的回應後, 直接重啟, 再拉一個新的對話出來. ## prompt (溝通工具)示範重點 ![Screenshot_2024-09-12_11-28-51](https://hackmd.io/_uploads/SynueJepR.png) - 設定能力邊界 - 明確定義輸出或觸發事件 - 清楚說明特殊視覺化 - 事前要求 log 及顯示偵錯訊息 - 評估最大輸出 token 下是否能完成任務 - Claude 目前最大 token 上下文相加 200 萬,但下文只有 4096,故程式碼超過這將長度一定會 fail - 可以透過徵詢第二意見來避免幻覺 - 利用多個語言模型來互相 check - 告訴他如果不確定的請說不確定 - 問他你明白了嗎(Double check) - Let's think step by step - 9.8 和 9.11 哪個比較大 - 我的父親跟我的母親可以結婚嗎(還是很難答對X) - 不能用產出答案來當作使用 AI 的目的 - 簡化流程 - 拓展想法 (語言模型帶進來更多的可能性) - 當作協作開發者 - 透過隨機來幫我們找到答案的靈感 - 以重啟新的對話來取代同一對話討論多個主題會來得較有效率 - 你是人類我是 GPT,請問妳要怎麼下 prompt - 覺得LLM 很囉唆的話,可在 prompt 最後放:直接輸出無需解釋 ### 可能的使用情境 - 亂碼復原 - 重建遺失資料表文件 - 討論需求並重構 - 演算法優化 - 偽代碼執行 ## 偽代碼 - 平衡程式語言以及自然語言的fusion. - 它是'溝通工具'而不真的要執行程` - 可使用 openai 提供的 SDK 打包成 API,簡單的把 AI 之力賦能於舊系統 偽代碼講者youtube [[LINK](https://www.youtube.com/watch?v=3rb-54Q5fig)] --- ## ==以下聊天區== 想到既然prompting輔助開發是一種趨勢的話,那像html這種阿雜的語言(一堆括號佔用token)也許會有簡化版的寫法讓ai開發friendly 偽代碼不就是 pseudo code 嗎 [偽代碼]的確是早已經的名詞,而我這次談的[偽代碼]也本質上和之前的[偽代碼]是不同的概念,但我還是認為叫他[偽代碼]或是[偽代碼prompt]還是最好的,因為當初語言模型是這麼稱呼這種形式的,而它的確是[偽]的[代碼] 講者要確耶,放暑假的概念不太對吧? [解釋任務污染的那個論文](https://arxiv.org/pdf/2312.16337) > 感謝大大補充! > [Claude把自己當成放暑假的法國人](https://www.jiqizhixin.com/articles/2024-09-01-9) > 或者叫晶晶碼 XD

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully