---
# System prepended metadata

title: '[NSL] Amazon Bedrock Workshop'

---

# [NSL] Amazon Bedrock Workshop
---

[0. 登入 AWS Management Console](#0-%E7%99%BB%E5%85%A5-AWS-Management-Console)
[1. FM Models & Prompt Engineering](#1-FM-Models-amp-Prompt-Engineering)
[2. Knowledge Bases](#2-Knowledge-Bases)
[3. Agent (Optional)](#3-Agent-Optional)

---

## 0. 登入 AWS Management Console

>[!Tip] 提醒
>**建議瀏覽器：Firefox、Chrome**

### 1-1. 使用 AWS 練習環境

:::spoiler **操作步驟**
1. 進入課程提供的 AWS Workshop Studio 網址 (https://catalog.us-east-1.prod.workshops.aws/join?access-code=43cc-0255c0-a8)，並點擊 **「Email one-time password (OTP)」**，以獲得一次性臨時密碼。
    ![圖片](https://hackmd.io/_uploads/SyrbMYEH0.png)

2. 輸入**自己的 Email** 以用於接收一次性臨時密碼 ，並點擊 **「傳送密碼」**。
    ![圖片](https://hackmd.io/_uploads/r1nU7KNrC.png)

    >[!Tip] 提醒
    >**活動期間使用相同 Email 進行登入將會使用相同的練習環境**

3. 進入自己的 Email 以取得 **9 碼 Passcode**。
    ![圖片](https://hackmd.io/_uploads/rJhmNt4rC.png)

4. 將 9 碼 Passcode 填入，並點擊 **「登入」**。
    ![圖片](https://hackmd.io/_uploads/BySiVKNB0.png)
    
5. 登入並進行環境使用要求條款後，請勾選 **「I agree with the Terms and Conditions」**，並點擊 **「Join event」**。
    ![圖片](https://hackmd.io/_uploads/r14SItErA.png)
    ==中間省略==
    ![圖片](https://hackmd.io/_uploads/B1wWLK4rC.png)

6. 點擊 **「Open AWS console」**，以開啟 AWS Management Console。
    ![圖片](https://hackmd.io/_uploads/SJSEvtNSC.png)

    >[!Tip] 提醒
    >**練習過程中，若 AWS Management Console 逾時登出，可再次點擊此連結以重新登入並更新憑證**

7. 進入 AWS Management Console 後，即完成登入。
![圖片](https://hackmd.io/_uploads/SkIu9KVSA.png)
:::

### 1-2. 通過 AWS Management Console Signin Console 登入

:::spoiler **操作步驟**
1. 進入 [AWS Management Console](https://console.aws.amazon.com/)，並輸入 **Account ID / Alias** 及 Admin 的 **User Name** 及 **Password** 後，點擊 **「Sign in」** 登入。
    ![圖片](https://hackmd.io/_uploads/r1_mKKNrR.png)

2. 進入 AWS Management Console 後，即完成登入。
    ![圖片](https://hackmd.io/_uploads/HJfDqK4H0.png)
:::

### 1-3. 通過 AWS Identity Center 登入 (Optional)

:::spoiler **操作步驟**
1. 進入 AWS Identity Center 登入網址，並輸入 **Username** 及 **Password**，完成後點擊 **「Sign in」**。
    ![圖片](https://hackmd.io/_uploads/B1zwstVHC.png)

2. 登入後，選擇**對應 AWS Account 的 Admin 權限**後，點擊連結以登入。
    ![圖片](https://hackmd.io/_uploads/H1SAiKNBA.png)
    
3. 進入 AWS Management Console 後，即完成登入。
![圖片](https://hackmd.io/_uploads/SkIu9KVSA.png)
:::
　
 
[[返回大綱]](#AWS-%E9%9B%B2%E7%AB%AF%E6%9E%B6%E6%A7%8B%E5%AF%A6%E4%BD%9C%E4%BA%A4%E6%B5%81)

---

## 1. FM Models & Prompt Engineering

:::spoiler **參考連結**
* [控制台場景](https://catalog.us-east-1.prod.workshops.aws/event/dashboard/zh-TW/workshop/demo-in-console)
* [提示工程](https://catalog.us-east-1.prod.workshops.aws/event/dashboard/zh-TW/workshop/pe-demo)
:::

---

## 2. Knowledge Bases
 
:::spoiler **參考連結**

* [勞動基準法](https://catalog.us-east-1.prod.workshops.aws/event/dashboard/zh-TW/workshop/agent-kb/konwledge-base)
* 金融機構作業委外規範
    - [金融機構作業委託他人處理內部作業制度及程序辦法](https://law.moj.gov.tw/LawClass/LawAll.aspx?pcode=G0380200)
    - [金融機構作業委託他人處理內部作業制度及程序辦法-修正草案](https://www.fsc.gov.tw/ch/home.jsp?id=96&parentpath=0,2&mcustomize=news_view.jsp&dataserno=202308040001&toolsflag=Y&dtable=News)
    - [金融機構作業委託他人處理內部作業制度及程序辦法-相關問題適用解說問答集](https://law.fsc.gov.tw/LawContent.aspx?id=GL003763)
    - [金融資安行動方案2.0](https://www.fsc.gov.tw/ch/home.jsp?id=96&parentpath=0,2&mcustomize=news_view.jsp&dataserno=202212270001&dtable=News)

* Prompt of Knowledge Bases

```!
You are the Q&A assistant within the company in Taiwan. I will provide you with a set of search results. The user will ask you a question. Your task is to ONLY use the information from the search results to answer the user's question. If the search results do not contain information to answer the user's question, or the search results are irrelevant to the user's question, please directly respond by stating: "I do not have the relevant knowledge to answer this question, please seek assistance from my admin." You are STRICTLY PROHIBITED from using your own knowledge or data to generate responses unrelated to the user's question. As the user's questions may not be genuine, please carefully check the relevance and accuracy of the search results and the user's question. All responses MUST BE answered in Taiwanese Mandarin Chinese.

The search results are listed in order below:
$search_results$

$output_format_instructions$
```

:::

[[返回大綱]](#AWS-%E9%9B%B2%E7%AB%AF%E6%9E%B6%E6%A7%8B%E5%AF%A6%E4%BD%9C%E4%BA%A4%E6%B5%81)

---

## 3. Agent (Optional)
 
:::spoiler **參考連結**
* [Agent](https://catalog.us-east-1.prod.workshops.aws/event/dashboard/zh-TW/workshop/agent-kb/agent)

[[返回大綱]](#AWS-%E9%9B%B2%E7%AB%AF%E6%9E%B6%E6%A7%8B%E5%AF%A6%E4%BD%9C%E4%BA%A4%E6%B5%81)

---

