View a markdown version of this page

建立精確提示 - Amazon Nova

本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。

建立精確提示

設計特定使用者查詢對於提示詞工程至關重要。精心設計的查詢會引導 Amazon Nova 文字理解模型產生準確且相關的回應。若要設計這類查詢,請務必從查詢中提供上下文相關資訊開始。提供的上下文透過對齊清晰的目標使用者場景,幫助模型更好地定位,從而增強輸出的相關性和一致性。

提供與上下文相關的具體資訊

如果指示清晰、結構化良好、簡短且具體,則模型最有效。此提示詞範本指引同時適用於使用者提示詞和系統提示詞。

提示範本

# Use this to clearly define the task and job needed by the model task_summary = f""" ## Task Summary: {{Task summary}} """ # Use this to provide contextual information related to the task context_information = f""" ## Context Information: - {{Context and content information 1}} - {{Context and content information 2}} ... """ # Use this to provide any model instructions that you want model to adhere to model_instructions = f""" ## Model Instructions: - {{ Other Model Instructions }} ... """ # Use this to provide response style and formatting guidance response_style = f""" ## Response style and format requirements: - {{Style and format requirement 1}} - {{Style and format requirement 2}} ... """ # Concatenate to final prompt final_prompt = f"""{task_summary} {context_information} {model_instructions} {response_style}"""

以下是使用具體且與上下文相關的資訊重新撰寫的提示詞範例。新增更多上下文資訊有助於模型基於這些資訊朝向所需的行為。

Unclear prompt

User:

Write me a meeting invite to the project team

Assistant:

Certainly! Here's a sample meeting invite for your project team: --- **Subject:** Project Team Meeting - [Project Name] **Date:** [Insert Date] **Time:** [Insert Time] **Duration:** [Insert Duration] **Location:** [Insert Location] / [Zoom/Teams Link if Online] **Agenda:** 1. **Welcome and Introductions** - Quick round of introductions for new team members 2. **Project Overview** - Objectives and goals - Current status and milestones achieved 3. **Task Allocation and Deadlines** - Detailed breakdown of tasks - Assignment of responsibilities - Discussion of deadlines 4. **Risk Management** - Identification of potential risks - Mitigation strategies 5. **Resource Allocation** - Required tools and materials - Budget review 6. **Q&A Session** - Open floor for questions and clarifications 7. **Next Steps and Closing** - Summary of action items - Schedule for the next meeting **Additional Notes:** - Please come prepared with any relevant documents or updates regarding your assigned tasks. - If you anticipate any issues or require additional support, please let us know in advance so we can address them during the meeting. **Contact Information:** For any questions or concerns before the meeting, please feel free to reach out to [Your Name] at [Your Email] or [Your Phone Number]. We look forward to a productive discussion and to kicking off our project with enthusiasm! Best regards, [Your Full Name] [Your Position] [Your Contact Information] --- Feel free to customize this template to better fit your specific project and team needs!
Clear prompt

User:

Write me a meeting invite to the project team. The meeting is about project planning, and should be held on October 16th, from 10 AM to 11 AM in Conference Room B. Please include an agenda that covers our progress on the project thus far, as well as any upcoming milestones and deadlines.

Assistant:

**Meeting Invitation: Project Planning Session** **Date:** October 16th **Time:** 10:00 AM - 11:00 AM **Location:** Conference Room B **Agenda:** 1. **Welcome and Introduction (10:00 AM - 10:05 AM)** - Brief overview by the meeting facilitator. 2. **Project Progress Update (10:05 AM - 10:30 AM)** - Review of completed tasks and achievements to date. - Detailed discussion on current project status and any challenges encountered. 3. **Upcoming Milestones and Deadlines (10:30 AM - 10:50 AM)** - Overview of the next phase of the project. - Identification of key milestones and deadlines. 4. **Action Items and Responsibilities (10:50 AM - 11:00 AM)** - Assignment of tasks for the upcoming period. - Confirmation of individual responsibilities and follow-up items. 5. **Q&A Session (11:00 AM)** - Open floor for any questions or concerns from team members. Please ensure your attendance to discuss and finalize our project planning for the next phase. Your insights and contributions are highly valued. Best regards, [Your Name] [Your Position] [Your Contact Information]
  • 明確:提示模型時,嘗試以人類能理解的方式 (而非機器的方式) 提供盡可能明確的指示 (例如,JSON 樣式清單)。

  • 具體:為模型提供有關任務內容、預期輸出內容以及任何額外上下文,以協助模型以您想要的方式做出回應的具體指示。

指定輸出格式和樣式

如果您希望 Amazon Nova 2 產生符合您特定需求的回應,您可以指定輸出的格式和樣式。例如,如果您只想以 JSON 格式產生回應,或想要限制回應長度不超過單詞數、項目符號點或段落數上限。這可讓 Amazon Nova 2 更了解您的需求,並產生更相關且更易於剖析的輸出。

使用大寫和強烈措辭,例如「務必」、「切勿」、「必須」來強調您希望模型嚴格遵守的規則。例如,如果您在回應中只想要一個 JSON 物件,您可以這樣指示模型:「您必須僅以 JSON 格式回答。在回答問題時切勿使用任何其他格式。」

以下是使用具體且上下文相關之資訊重新撰寫的一些範例提示詞。新增更多上下文資訊有助於模型基於這些資訊朝向所需的行為。

新增有關回應格式的額外細節,有助於模型達成所需的結果。其他一些常用的回應格式包括 CSV、Markdown、YAML 和 XML

Prompt without style constraints

User:

Outline the different types of rooms available in a typical 4-star hotel, including their features.

Assistant:

In a typical 4-star hotel, you'll find a range of room types, each designed to cater to different guest needs and preferences. Here's an outline of the different types of rooms available along with their features: ### 1. **Standard Room** - **Size:** Usually around 250-350 square feet. - **Features:** - Queen or double bed. - Complimentary Wi-Fi. - Flat-screen TV with cable or satellite channels. - Mini-fridge. - Coffee maker with complimentary coffee and tea. - Desk and chair. - En-suite bathroom with shower, toilet, and toiletries. - Air conditioning/heating. ### 2. **Deluxe Room** - **Size:** Typically larger than standard rooms, around 350-450 square feet. - **Features:** - King bed or two queen beds. - Larger bathroom with a bathtub. - Additional seating area. - Enhanced amenities like bathrobes and slippers. - Upgraded toiletries and sometimes a welcome gift. - Access to a lounge or executive floor perks. ### 3. **Suite** - **Size:** Varies significantly, often between 500-1,200 square feet. - **Features:** - Separate living area with a sofa bed or additional seating. - Kitchenette or full kitchen in some cases. - Larger, more luxurious bathroom with a bathtub and separate shower. - Multiple TVs. - Access to executive lounge. - High-end toiletries and often complimentary breakfast. - Often includes concierge services and in-room dining options. ### 4. **Family Room** - **Size:** Larger, usually around 400-500 square feet. - **Features:** - One king bed and one sofa bed or two queen beds. - Designed for families with children. - Extra space for luggage. - Child-friendly amenities like a small kitchenette or high chair. - Family bathroom with amenities suitable for kids. ### 5. **Executive Room** - **Size:** Typically around 350-450 square feet. - **Features:** - Business-oriented with a larger workspace. - Executive desk and chair. - Access to executive lounge with complimentary snacks and refreshments. - King bed or two queen beds. - Enhanced amenities like high-speed internet and sometimes a Nespresso machine. ### 6. **Junior Suite** - **Size:** Usually around 450-600 square feet. - **Features:** - Separate bedroom and living area. - King bed or two queen beds. - Kitchenette or mini-fridge. - Luxurious bathroom with a bathtub. - Lounge access. - High-end toiletries. ### 7. **Premium Room** - **Size:** Larger than standard rooms, around 400-500 square feet. - **Features:** - King bed or two queen beds. - Larger bathroom with a bathtub. - Enhanced amenities like a welcome drink and premium toiletries. - Access to premium services and sometimes a lounge. ### 8. **Connecting Rooms** - **Size:** Two rooms that connect via an internal door. - **Features:** - Suitable for families or groups. - Often includes one standard room and one suite. - Shared bathroom or en-suite bathrooms in each room. - Extra space for luggage and guests. ### 9. **Accessible Rooms** - **Size:** Varies, typically similar to standard rooms. - **Features:** - Designed for guests with disabilities. - Wider doorways and bathroom space. - Adapted fixtures and fittings. - Additional support services. ### 10. **Business Room** - **Size:** Usually around 300-350 square feet. - **Features:** - Focused on business travelers. - High-speed internet and large workspace. - Compact yet fully equipped with essentials. - Often includes a king bed. Each room type in a 4-star hotel is designed to provide comfort, convenience, and luxury tailored to different guest needs, ensuring a pleasant stay for all types of travelers.
Prompt with style contraints

User:

Outline the different types of rooms available in a typical 4-star hotel, including their features. All responses MUST be in YAML format.

Assistant:

```yaml hotel_rooms: - room_type: Standard Room features: - description: A comfortable room with essential amenities. amenities: - bed_type: Double bed or two single beds - bathroom: Private bathroom with shower - wifi: Complimentary high-speed internet - TV: Flat-screen TV with cable channels - mini_fridge: Available - tea_and_coffee_making_facilities: Yes - room_type: Deluxe Room features: - description: An upgraded room with more space and enhanced amenities. amenities: - bed_type: King-size bed or two single beds - bathroom: Private bathroom with both shower and bathtub - wifi: Complimentary high-speed internet - TV: Larger flat-screen TV with cable channels - mini_fridge: Available - tea_and_coffee_making_facilities: Yes - free_breakfast: Included - room_type: Suite features: - description: A luxurious room with separate living area and premium amenities. amenities: - bed_type: King-size bed or two single beds - bathroom: Private bathroom with both shower and bathtub - separate_living_area: Yes - wifi: Complimentary high-speed internet - TV: Large flat-screen TV with cable channels - mini_fridge: Available - tea_and_coffee_making_facilities: Yes - free_breakfast: Included - concierge_service: Available - room_type: Family Room features: - description: A spacious room designed for families with additional bedding options. amenities: - bed_type: Queen bed and rollaway bed or two single beds and rollaway bed - bathroom: Private bathroom with shower - wifi: Complimentary high-speed internet - TV: Flat-screen TV with cable channels - mini_fridge: Available - tea_and_coffee_making_facilities: Yes - room_type: Business Room features: - description: A room tailored for business travelers with enhanced workspace. amenities: - bed_type: Double bed or two single beds - bathroom: Private bathroom with shower - wifi: Complimentary high-speed internet - TV: Flat-screen TV with cable channels - workspace: Desk and chair - mini_fridge: Available - tea_and_coffee_making_facilities: Yes - business_center_access: Available ```

在這種情況下,具有樣式限制條件的提示詞會提供有關要遵循的限制條件和所需回應格式的完整資訊。如回應中所觀察到的,最佳化提示詞更緊密符合所請求的簡潔性和項目符號清單結構。

Prompt without style constraints

User:

Explain the process of checking in a guest at a luxury resort.

Assistant:

Checking in a guest at a luxury resort involves a meticulous and personalized process designed to ensure a seamless and memorable start to their stay. Here’s a detailed overview of the steps involved: ### Pre-Arrival Preparation 1. **Pre-Arrival Communication:** - **Confirmation:** Verify guest reservations and confirm arrival details. - **Special Requests:** Collect any special requests (dietary restrictions, room preferences, etc.) and ensure they are noted in the guest profile. - **Documentation:** Ensure all necessary documentation is ready, such as welcome letters, room keys, and any special amenities. 2. **Room Preparation:** - **Cleaning:** Conduct a thorough cleaning and preparation of the guest room. - **Amenities:** Stock the room with high-end toiletries, fresh linens, and any requested amenities. - **Personal Touches:** Add personalized touches such as a welcome note, fresh flowers, or locally sourced treats. ### Arrival and Initial Interaction 3. **Guest Arrival:** - **Greeting:** Have staff ready to greet guests as they arrive. This may include a warm welcome at the entrance or a meet-and-greet in the lobby. - **Transport:** Provide luxury transport options like a chauffeured car service to escort guests to the check-in desk. 4. **Check-In Desk:** - **Professionalism:** Ensure check-in staff are well-trained, professional, and exude hospitality. - **Technology:** Utilize sophisticated check-in technology (like tablet kiosks) to streamline the process. - **Personalized Welcome:** Greet guests with a warm welcome, acknowledge their special requests, and present them with a personalized welcome kit. ### Documentation and Formalities 5. **Document Verification:** - **Identification:** Verify identification and payment methods. - **Membership Cards:** If applicable, verify any loyalty or membership cards for additional benefits. 6. **Registration:** - **Form Filling:** Assist guests with any required paperwork. - **Special Benefits:** Clearly explain any special resort benefits, upgrades, or exclusive access to amenities that the guest is entitled to. ### Room Assignment 7. **Room Presentation:** - **Walk-Through:** Escort guests to their room and conduct a walk-through to ensure everything is in order and to address any immediate concerns. - **Upgrades:** Present any room upgrades and explain the features and services available in the upgraded room. 8. **Key Delivery:** - **Room Key:** Provide the room key, often a high-end key card or a luxury key fob. - **Access Information:** Explain how to use the key card, including access to other amenities like the spa, pool, and gym. ### Additional Services 9. **Welcome Amenities:** - **Amenity Kits:** Deliver welcome amenity kits (like a bottle of champagne, local delicacies, etc.). - **Itinerary:** Provide a detailed resort map and itinerary, highlighting all available services and activities. 10. **Personal Concierge:** - **Concierge Services:** Introduce the guest to the concierge service and explain how to request any special services, such as dining reservations, transportation, or local excursions. - **Contact Information:** Provide contact information for key staff members. ### Final Touches 11. **Feedback:** - **Satisfaction Survey:** At the end of the check-in process, ask for feedback to ensure the guest’s expectations were met and to gather any immediate suggestions. 12. **Follow-Up:** - **Immediate Issues:** Ensure any immediate issues or requests are addressed promptly. - **Comfort Check:** Make follow-up calls or send messages to ensure the guest is settling in comfortably. By following these steps, a luxury resort aims to provide an exceptional check-in experience that sets the tone for an unforgettable stay.
Prompt with style contraints

User:

Explain the process of checking in a guest at a luxury resort. Provide all answers in a numbered list format, with each point containing no more than 15 words, and no more than 6 bullet points.

Assistant:

1. Greet guest warmly with a smile and offer assistance. 2. Verify reservation details and check guest's identification. 3. Confirm room assignment and amenities provided. 4. Explain resort services and amenities available. 5. Present room key and offer directions to guest's suite. 6. Wish guest a pleasant stay and be available for queries.

在這裡,具有回應格式的提示強制模型僅以類別編號回應,並將其限制在 1-10 之間,以避免過度冗長。

Prompt without response format

User:

In this task, you are given a text which is the body of a document. Your job is to classify the topic of the document into these categories: 1)Company, 2)Educational Institution, 3)Artist, 4)Athlete, 5)Office Holder, 6)Mean of transportation, 7)Building, 8)Natural place, 9)Village, 10)Animal. Text: Johangsan is a mountain of South Korea. It has an elevation of 954 metres.

Assistant:

To classify the topic of the given text, let's analyze the content step-by-step: 1. The text mentions "Johangsan," which appears to be a specific name. 2. The text states that "Johangsan is a mountain," which provides a clear indication of its nature. 3. It is further specified that it is located in "South Korea" and has an elevation of "954 metres." Based on the information provided, the text describes a geographical feature, specifically a mountain. From the given categories, the most appropriate classification for this document is: 8) Natural place The text does not mention any company, educational institution, artist, athlete, office holder, means of transportation, building, village, or animal. Therefore, the classification as a "Natural place" is the most fitting choice.
Prompt with response format

User:

In this task, you are given a text which is the body of a document. Your job is to classify the topic of the document into these categories: 1)Company, 2)Educational Institution, 3)Artist, 4)Athlete, 5)Office Holder, 6)Mean of transportation, 7)Building, 8)Natural place, 9)Village, 10)Animal. Your output should be the category number. DO NOT generate anything apart from numbers 1-10. Text: Johangsan is a mountain of South Korea. It has an elevation of 954 metres.

Assistant:

8

提供明確的提示詞區段

除了初始上下文之外,結構化查詢格式也在最佳化與語言模型的互動方面扮演重要角色。使用分隔符號分隔輸入的不同部分可確保清晰度,並增強 Amazon Nova 2 模型了解查詢結構的能力。另一種有效的方法是使用編號清單或項目符號,這有助於將任務拆解為易於管理的步驟,並提供需要採取的動作的明確概述。這種結構化方法有助於減少模棱兩可的情況,並改善所產生回應的準確性。

請注意,與未分段提示欄中的指示相比,已分段提示欄中的提示更加清晰,並為任務、上下文、需求等不同實體劃定了區段。

Unsectioned Prompt

User:

Write an article about climate change for high school students explaining basic concepts, current impacts, and individual actions to mitigate it. Make it informative and engaging with simple language, including statistics and real-world examples.

Assistant:

### Understanding Climate Change: What It Is, What It’s Doing, and What You Can Do About It #### Introduction Climate change might sound like a big, complicated topic, but it’s really about the way our planet’s weather is changing over time. This change is mostly happening because humans are doing things that are making our Earth warmer. Let’s break it down so you can understand what’s going on and what you can do to help. #### What Is Climate Change? Climate change refers to long-term shifts in temperatures and weather patterns. These shifts may be natural, but since the 1800s, human activities have been the main driver of rapid climate change. **Key Concept: Greenhouse Gases** To understand this, we need to talk about greenhouse gases. These gases, like carbon dioxide (CO2), methane (CH4), and nitrous oxide (N2O), trap heat in our atmosphere. Without these gases, Earth would be too cold for most life forms. But when we burn fossil fuels (like coal, oil, and natural gas) and cut down forests, we release too much CO2 and other greenhouse gases, trapping more heat and making the planet warmer. #### Current Impacts of Climate Change Let’s look at some real-world examples to see how climate change is affecting our world today. **1. Rising Temperatures** Since the late 19th century, Earth’s average surface temperature has risen about 2 degrees Fahrenheit (1 degree Celsius). Scientists predict that if we don’t change our ways, it could rise by 3.6 to 4.3 degrees Fahrenheit (2 to 2.4 degrees Celsius) by the end of this century. **2. More Extreme Weather** Climate change is making extreme weather events more frequent and severe. For example: - **Hurricanes:** In the U.S., hurricane seasons are getting longer and more destructive. In 2020, there were 30 named storms, the most ever recorded. - **Droughts:** Parts of California have experienced some of the worst droughts in history, affecting agriculture and water supplies. **3. Melting Ice Caps and Rising Sea Levels** Glaciers and ice sheets are melting at alarming rates. This not only affects wildlife but also leads to rising sea levels. Since 1901, global sea levels have risen by about 8 inches (20 centimeters). By 2100, they could rise by another 1 to 4 feet (0.3 to 1.2 meters). **4. Ocean Acidification** As CO2 levels rise, more of it is absorbed by the oceans, making them more acidic. This is particularly harmful to marine life, including coral reefs. Coral reefs are crucial for marine biodiversity but are now dying at an alarming rate. #### Individual Actions to Mitigate Climate Change You might think that since climate change is a huge problem, one person can’t make a difference. But even small actions can add up to make a big impact. **1. Reduce, Reuse, Recycle** Try to minimize waste by: - **Reducing:** Buy fewer items and choose products with less packaging. - **Reusing:** Use reusable bags, bottles, and containers. - **Recycling:** Make sure to recycle paper, plastic, and glass properly. **2. Conserve Energy** Small changes can lead to big savings: - Turn off lights when you leave a room. - Unplug devices that you’re not using. - Use energy-efficient bulbs and appliances. **3. Use Less Meat** Livestock farming is a major contributor to greenhouse gas emissions. By eating less meat, especially beef, you can reduce your carbon footprint. **4. Support Renewable Energy** If possible, support or switch to renewable energy sources like solar or wind power. Even advocating for these options in your community can make a difference. **5. Educate Yourself and Others** Knowledge is power. The more you know about climate change, the more you can help others understand it. Share facts and encourage your friends and family to take action too. #### Conclusion Climate change is a pressing issue that affects everyone on the planet. By understanding its basics, recognizing its current impacts, and taking individual actions, you can play a crucial role in mitigating its effects. Remember, every small step counts, and together, we can make a big difference for our planet. Let’s start today and build a sustainable future!
Sectioned Prompt

User:

**Task:** Write an article **Context Section:** Topic: Climate Change Target Audience: High School Students Purpose: Educational Article **Content Requirements:** - Explanation of basic concepts related to climate change. - Examples of current impacts on ecosystems and human populations. - Suggestions for individual actions to mitigate climate change. **Tone and Style:** - Informative and engaging - Use simple language - Include statistics and real-world examples

Assistant:

# Understanding Climate Change: A Guide for High School Students ## Introduction Climate change is one of the most pressing issues of our time. It affects our planet, our ecosystems, and our daily lives. Understanding what climate change is and how it impacts us can help us take action to make a difference. This article will explain the basic concepts of climate change, provide examples of its current impacts, and suggest actions you can take to help mitigate it. ## What is Climate Change? **Climate change** refers to long-term changes in global temperatures and weather patterns. These changes are primarily caused by human activities, especially the burning of fossil fuels like coal, oil, and natural gas. When we burn these fuels, we release large amounts of greenhouse gases, such as carbon dioxide (CO2) and methane (CH4), into the atmosphere. These gases trap heat from the sun, causing the Earth's temperature to rise. This is often referred to as the **greenhouse effect**. ### Basic Concepts: 1. **Greenhouse Gases**: These gases include carbon dioxide, methane, nitrous oxide, and fluorinated gases. They trap heat in the Earth’s atmosphere. 2. **Global Warming**: This is the increase in Earth's average surface temperature due to rising levels of greenhouse gases. 3. **Climate Change**: Refers to the broader set of changes in the Earth’s climate system, including global warming. ## Current Impacts of Climate Change ### On Ecosystems: 1. **Melting Ice Caps and Glaciers**: The polar ice caps and glaciers are melting at an alarming rate. For example, the Arctic sea ice is shrinking, which affects polar bears and other Arctic animals. 2. **Rising Sea Levels**: As ice melts, sea levels rise. This can lead to the loss of coastal habitats and increased flooding in coastal areas. 3. **Changing Weather Patterns**: Climate change can lead to more frequent and severe weather events such as hurricanes, droughts, and heatwaves. For example, the 2020 Australian bushfires were more intense and lasted longer than usual due to climate change. ### On Human Populations: 1. **Health Issues**: Rising temperatures can lead to more heat-related illnesses and the spread of diseases like malaria and dengue fever. 2. **Food Security**: Changes in climate can affect crop yields, leading to food shortages. For example, droughts in Sub-Saharan Africa have caused significant food insecurity. 3. **Displacement**: Rising sea levels and extreme weather events can force people to leave their homes, becoming climate refugees. For instance, communities in Bangladesh are being displaced by rising sea levels. ## Actions You Can Take Even though climate change is a massive issue, there are many actions you can take to help mitigate its effects. Here are some simple steps you can start with today: 1. **Reduce, Reuse, Recycle**: By reducing waste, reusing items, and recycling, you can decrease the amount of trash that ends up in landfills and reduce greenhouse gas emissions. 2. **Save Energy**: Turn off lights when you don’t need them, use energy-efficient appliances, and unplug devices when they’re not in use. These small actions can make a big difference. 3. **Use Less Meat**: Livestock farming produces a significant amount of methane. By eating less meat, particularly beef, you can reduce your carbon footprint. 4. **Support Renewable Energy**: Advocate for or invest in renewable energy sources like solar and wind power. These sources produce energy without greenhouse gas emissions. 5. **Educate and Advocate**: Inform others about the impacts of climate change and advocate for policies that support environmental sustainability. You can join or support environmental clubs at school or participate in local clean-up efforts. ## Conclusion Climate change is a complex issue with far-reaching impacts. However, understanding it and taking action can make a significant difference. By learning about the basic concepts, recognizing the current impacts, and implementing simple changes in our daily lives, we can all contribute to mitigating climate change. Remember, every small action counts, and together, we can create a more sustainable future for our planet.