Microsoft Copilot - 提示工程



什麼是提示?提示是定義任何 AI 模型生成的輸出的構建語句。在編寫高效的提示時,提示可能非常棘手。什麼時候可以說這是最有效的提示?好吧,這取決於很多因素。一個冗長的提示看起來可能很複雜,但並非所有冗長的提示都那麼有效。另一方面,一些簡短但精確的提示可以完美地完成工作。

因此,提示工程是設計清晰、簡潔和具體的指令的藝術,這些指令使 AI 系統(如 Microsoft Copilot)能夠高效地執行任務。在本教程中,您將看到許多提示,它們的基本版本以及如何修改它們以獲得最佳結果,尤其是在 Word、Excel、PowerPoint 等應用程式中。

構建您的第一個提示:分步方法

為了說明如何逐步改進提示以生成更準確和有用的結果,讓我們從一個基本任務開始:編寫電子郵件。

1. 基本提示結構

基本提示直接了當,但缺乏改進輸出所需的細節。簡單的提示可能如下所示:

基本提示

Write an email to my team about a project update.
Basic Prompt Structure

使用此提示,Copilot 可能會建立一封通用的電子郵件,通知團隊有關更新的資訊。但是,它可能不會指定哪個專案或需要什麼型別的更新。

2. 改進基本提示

現在,讓我們新增更多細節以使提示更清晰。透過指定專案名稱和更新的性質,您可以指導 Copilot 生成更集中的結果:

改進後的提示

Write an email to my team about a project update for the new website redesign 
project. Mention the completion of the first design draft.
Refining the Basic Prompt

此改進後的提示現在將 Copilot 指向特定專案,並提及關鍵的進度更新——第一個設計草稿的完成。

高階改進:新增期望和語氣

在此階段,您可以透過指定語氣和期望來進一步增強電子郵件。也許您希望電子郵件正式一些,幷包含後續步驟:

高階提示

Write a formal email to my team about a project update for the 
new website redesign project. Mention the completion of the 
first design draft and ask the team to review it before the next meeting.
Adding Expectations and Tone

現在,電子郵件不僅提供了更新,還明確地請求團隊採取行動,同時保持正式的語氣。

最終改進:新增創意、幽默、確認和參考

最後,我們可以透過新增諸如對團隊努力的認可和指向文件的連結等元素來將提示提升到一個新的水平,使電子郵件更具吸引力和資訊量:

最終提示

向我的團隊傳送一封正式且表示感謝的電子郵件,內容關於新網站重新設計專案的專案更新。提及第一個設計草稿的完成情況,新增一些幽默,感謝團隊的辛勤工作,幷包含指向草稿的連結,以便在下次會議之前進行審查。在郵件結尾激勵團隊繼續保持同樣的奉獻精神。
Ultimate Refinement: Adding Creativity

此最終版本生成了一封高度個性化且引人入勝的電子郵件,它不僅傳達了必要的資訊,還激勵了團隊並鼓勵了他們的投入,從而實現了全面的溝通。

您需要遵循的提示架構

Prompt Architecture You Need To Follow

在不同的 Microsoft 365 應用程式中進行提示工程

每個 Microsoft 應用程式都需要略微不同的提示工程方法。以下是 Word、Excel 和 PowerPoint 的示例。

Word 中的提示工程

讓我們考慮一下 Microsoft Word 中的一個簡單任務。您想生成一封正式信函。

基本提示

Create a business letter.

這將生成一封普通的信函。透過新增更多上下文,您可以獲得更量身定製的結果:

中級提示

Create a formal business letter requesting a meeting.

讓我們用更多細節進一步改進它:

高階提示

Create a formal business letter requesting a meeting, and include a reference to the recent project report.

最後,為了使信函更具吸引力,新增一點幽默:

最終提示

Create a formal business letter requesting a meeting, include a polite reference to 
the recent project report, and end with a witty remark about improving collaboration efficiency.

Excel 中的提示工程

對於 Excel,提示通常涉及資料分析和視覺化。

基本提示

Create a pie chart of sales data.

為了使結果更有意義,請新增具體的細節:

中級提示

Create a pie chart of sales data for Q1, highlighting the top-performing products.

為了獲得更深入的見解,請新增比較資料:

高階提示

Create a pie chart of sales data for Q1, highlighting top-performing products, 
and compare it with the previous quarter’s sales.

最終改進可以包括預測或腳註:

最終提示

Create a pie chart of Q1 sales data, highlight top-performing products, 
compare with the previous quarter, and add a footnote on projected trends for Q2.

PowerPoint 中的提示工程

PowerPoint 提示用於生成簡報。以下是逐步改進它們的方法。

基本提示

Create a presentation.

新增更多上下文以獲得更好的結果:

中級提示

Create a 5-slide presentation on the new marketing strategy.

接下來,透過指定您需要的哪種型別的視覺輔助工具來改進它:

高階提示

Create a 5-slide presentation on the new marketing strategy, and include 
an engaging chart on customer demographics.

為了使簡報更具創意,請考慮新增幽默或過渡:

最終提示

Create a 5-slide presentation on the new marketing strategy, include a chart on customer
 demographics, and add humour to the slide transitions.

編寫提示的高階技巧

多步驟提示

不要讓 Copilot 執行一項大型任務,而是將其分解成更小、更易於管理的步驟。

基本提示

Generate a report.

這可能不清楚,所以讓我們改進它:

中級提示

Generate a monthly sales report, and include data on new customers.

您現在可以新增比較和見解:

高階提示

Generate a monthly sales report, include data on new customers and compare with the last quarter.

為了獲得更全面的結果:

最終提示

Generate a monthly sales report, include data on new customers, compare with 
the last quarter, and add a footnote on customer retention strategies.

條件提示和後續操作

Copilot 還可以處理條件指令:

基本提示

If sales increase, show a graph, otherwise display a table.

改進這個:

中級提示

If sales increase, show a graph with a product-wise breakdown, 
otherwise display a table with region-wise sales.

動態資料和引用

提示還可以引用動態資料,例如從外部來源提取資訊或即時更新。

示例

Fetch data from the last quarterly report and generate a sales summary comparing 
regional performance, adding predictions for the next quarter based on current trends.

提示編寫中的常見錯誤

提示過載

提示過載過多工可能會使 Copilot 混亂。

  • 過載提示 - “建立一個總結此資料的文件,然後建立一個圖表,並將其透過電子郵件傳送給所有團隊成員。”將其分解以提高畫質晰度。
  • 改進後的提示 - “首先總結此資料,然後建立一個圖表,最後,起草一封傳送給所有團隊成員的電子郵件。”

避免歧義

編寫提示時,務必避免歧義。含糊的指令會導致結果不明確。例如:

含糊的提示 - “分析資料”。

如果沒有上下文或細節,Copilot 可能不知道您是想獲得簡單的概述還是深入的分析。

改進後的提示 - “分析資料並突出顯示過去一個季度按區域劃分的銷售增長情況”。

現在,Copilot 可以更清楚地瞭解重要內容,避免不必要的資訊或混淆。

結論

有效的提示工程是從清晰、簡單的指令開始,然後改進它們以包含上下文、期望和創造力。透過遵循此分步方法,您可以最大限度地發揮 Microsoft Copilot 的潛力並生成準確、高質量的結果。在各種 Microsoft 應用程式中練習不同的提示,以熟練掌握為您的需求編寫最佳指令。

廣告