Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save androchentw/a49e672eed4f1089f4aaf76f6509dfd0 to your computer and use it in GitHub Desktop.
Save androchentw/a49e672eed4f1089f4aaf76f6509dfd0 to your computer and use it in GitHub Desktop.
2023-05-07-dlai-chatgpt-prompt-engineering.md
  • 前情提要
    • 課程目標: 激發應用想像力
    • 明確指示: 將 LLM 視為 "聰明但不清楚任務細節的人"
    • 結合日常實務,改善流程
  • 02 準則 Guidelines
    1. 清晰且具體的指示 Clear and specific
      • 分隔符號 (```, ...)
      • 結構化輸出 (JSON, ...)
      • 例外處理 (若無, 則...)
      • 示範成功
    2. 思考時間: 切分小任務
    3. 模型限制
      • 幻覺 Hallucination
      • 對策: 先找相關資訊 再基於前述內容回答
  • 03 迭代 Iterative
    • Iterative Prompt Development
    • 過程
      • 瞭解如何用更好的過程來開發 並取得正確的 prompts
    • 指定規格: 字數/格式
  • 04 摘要 Summarizing
    • 客製化摘要
  • 05 推理 Inferring
    • 情感分析 Sentiment analysis
    • 萃取資訊
    • 推理文章主題 + 比對判斷關鍵字
  • 06 轉化 Transforming
    1. 翻譯 Translate
    2. 校對 Proofread: 文法, 拼字檢查
    3. 語氣轉換 Change tone
  • 07 擴寫 Expanding
    • 客服 AI 助理: 個人化電子郵件
    • 調整溫度,平衡穩定與多樣性
  • 08 聊天機器人 Chatbot
    • 訂單機器人
    • 上下文 Context
  • 感想
    • 數據 > 資訊 > 知識 > 洞察 > 智慧
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment