陳以婕
    • Create new note
    • Create a note from template
      • 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
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me 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
    • Save as template
    • 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 Create Help
Create Create new note Create a note from template
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
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me 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
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    --- title: 尹相志 tags: AI --- {%hackmd Cp-6sY4yRqqGLZgF0zM__Q %} # 尹相志 ## ChatGPT的七宗罪 [投影片](https://docs.google.com/presentation/d/1TxhxEZVW-sbZFOmjV0qn7YZTA-dsgfUi/edit?usp=share_link&ouid=117669084190737365217&rtpof=true&sd=true) ### 前言 * 既有的 AI 生成作品,都是結構簡單的作品,像是繪本,我想實驗如何使用 ChatGPT 為偵探小說取材 * 巴別塔故事:人類為何要創作?想要表達自己想法的慾望。這就是機器永遠無法取代人類的原因。 * 生成式 AI 心中永遠不會有想要表達的想法,只有人類有 > "[ChatGPT is a blurry JPEG of the web](https://www.newyorker.com/tech/annals-of-technology/chatgpt-is-a-blurry-jpeg-of-the-web)" > * 同意,因為如果沒有提供想法或觀點,ChatGPT 就像是模糊的 JPEG 一樣,提供中庸、沒有記憶點的觀點。 人類的想法如同催化劑,能讓 generative AI 的文采爆發。 * 偵探小說(連載中)[湧現:意識的觸覺(emergence)](https://github.com/AllanYiin/Emergence) * emgergence: 神經網路由小模型加大到一定程度時,突然出現能學會新事物的現象。 > "[prompt is all you need.](https://github.com/AllanYiin/Prompt_Is_All_You_Need)" * ChatGPT 因為字數限制的因素會在產生一部分資料後就會斷掉,需要告知其「繼續」才能繼續生成,這會會讓創作的思路斷掉 所以做了一個 UI 突破字數限制專案,自動匯整總結 * 思考:機器無法從0到有的創作嗎?不能! 要讓 ChatGPT 翻車,就下一個 prompt:請你創造一個沒有人看過的東西 ### 開始寫小說 #### 故事架構: * 七天搶先使用 ChatGPT 7 的 7 間新創公司,老闆紛紛死亡,各因為七宗罪的原因 - 傲慢 superbia - 嫉妒 invidia -->個人社交小編-社交媒體文字圖像生成 - 憤怒 ira -->智能客服-基於私域數據的智能問答 - 怠惰 acedia -->自動駕駛-視覺對齊 (第一個死亡) - 貪婪 avaritia -->智能投顧-技術線型理解+財報理解 - 暴食 gula --> 餐飲外送-推薦算法 - 色慾 luxuria --> 虛擬情慾-人物語言仿真 最後所有的證據,都指向兇手就是 ChatGPT ,但只能輸出文字的 ChatGPT ,該如何行兇?就讓我們繼續看下去... #### 這則小說,使用到的 ChatGPT 技巧: 角色扮演:告知ChatGPT它現在的人設(職業、身分或名人),然後它就會依照這人設來處理後續的回覆,一直到明確的重新設定人設或是會話結束為止。 給個例子 最好給他例子 批次產生七組題材,可以從給他第一個例子開始,把材料準備好 事實查核,將生成的人容交給另一個ChatGPT ChatGPT 會一本正經講幹話,怎麼處理? #### 內容取材 聖經譴責:兇手留下的相關留言都跟聖經內容有關 傲慢 避免 hallucination: 請 ChatGPT 給出個個宗罪的 3 個出處供選擇 Prompt ``` 兇手的現場留言我希望是有典故的,例如傲慢的留言是出自於`聖經某章節` ``` 使用概念來取材,正向模組。文字與視覺概念。 調整溫度0.1。 擇一風格,區分不同語氣(舉例:120種, 專案中有) 怠惰,多模組 不認識,開過去。(是由認列清單知道什麼需要停下來) 語言與視覺概念對齊 #### 人與機器分工生成小說 機器方面: 從最底層的語意開始設計,比如說可以設定某位小說作家的文字風格(e.g., 三體、丹布朗) 敘事有邏輯,個別改寫,敘事手段(一、三人稱) 一人稱 視、聽覺 三人稱 [工具](https://github.com/AllanYiin/Prompt_Is_All_You_Need)有內建 120 種語氣 / 文字風格 人類: 時間線跳動 -- 人類比較擅長做這類的抽象設計 #### 事實查核 ##### Prompt ``` 你是一個文學通,熟悉亞洲文壇資訊。請問以下知名亞洲作家列表中,有哪些作家是不存在的,=0.1: ``` 溫度零點一,避免產生不可預料的情況,才能做事實查核 虛構不存在 角色扮演,才有知識水準 自動繼續,項目數量 數量超過20,數量inf 120種語氣做改寫 敘事手法如緊張懸擬、反轉等等 角度、結構、反轉 ##### 情境 善用不同敘事手法,可以讓讀者比較不容易審美疲勞 文字風格 第一人稱和第三人稱的切換 時間線 告訴他劇情概要 隨機的概要:都是人去想,可能會江郎才盡。可以借助隨機的力量。 控制力 隨機率 控制力和隨機率,兩種都要兼顧 避免江郎才盡 第三人稱 結構與脈絡, 用角色扮演的方法來作為查核者,溫度可以設定為 0.1 項目數量為 **inf** (infinite) ##### 敘事手法: 擴寫:短短兩行變成大大的兩頁 通常是一小段丟給他,給一些提示。 擴寫要有所本,可告訴他 max token 是多少。 Prompt ``` max_tokens=1000 ``` - 劇情鋪排可能性探索 - 廣告歌弦律生成 - 搜資料,抄下配方。 - 使用 ABC notation 寫下以下廣告歌旋律,請以G和弦 - 基於過敏生理機轉產生對應感受文字描述 暴食 Prompt ``` 請使用ABC Notation 寫出以下廣告歌的旋律 請以G和弦、F和弦、C和弦 使用Do,La,Si三個主音 但是更台灣風味、更瘋狂、變化多一些 旋律與歌詞必須能對在一起 ABC Notation應該要把歌詞 註記在對應旋律下方 Q:1/4=320 旋律要吸引人的、歡愉的 ``` 「吸引人的」的prompt很重要,因為模型有做過基於人類反饋的強化學習(RLHF),增加此關鍵字會有很好的效果。 如何讓 ChatGPT 產生謀殺情節而避開禁制(以過敏為例) 1. 先生成過敏的生理機轉 2. 請 ChatGPT 扮演擅長描述細節的小說家,描述過敏致命的情節 血管收縮... 「Generative AI 會增強人類 augmented 而非替代人類 replace」 Q&A - 用溫度 0.1 做事實查核,是不是還是會一本正經胡說八道,給錯誤的答案? - 要設定角色。 - 讓 chatbot 開外掛:「你擁有完成這份工作的一切技能」 - 可以多次執行事實查核 - 溫度、inf、max_tokens上只有在老師的專案有用,還是我們在自己的chatgpt頁面也可以使用的參數? - works on all chatbot! - 會放在 prompt 的最後方 - e.g., max token - 創作故事的過程中,如果發現前期劇情有Bug(像是紅髮被近海之王咬掉手臂),希望修正前面的Bug 要怎麼跟ChatGPT溝通? - 很多漫畫家畫到後面才發現有很多技術債(bug),如果真的發生還是得有其他 side project 來處理 - 所以寫很慢是因為要避免技術債,~~不是拖稿~~,考慮後面內容的相容。 - 長篇創作,背後是同一個ChatGPT section嗎? - 很多的section - 記得把上下文重點講清楚 - 設定好人設

    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