Tuesday, October 15, 2024

思路 (Chain of Thought)

Chain of Thought 





[Example]

A clothing store is having a tiered sale. They're offering 30% off on purchases over $200, 20% off on purchases between $100 and $200, and 10% off on purchases under $100. Additionally, they're giving an extra 5% off for loyalty card holders.

詳細解釋這個分層銷售活動的規則:


1. 購買金額超過 $200:30% 折扣

2. 購買金額介於 $100 至 $200 之間:20% 折扣

3. 購買金額低於 $100:10% 折扣

4. 持有忠誠卡的顧客可額外獲得 5% 折扣


這是一個很常見的銷售策略,旨在鼓勵顧客多消費以獲得更高的折扣。



Claude 































注意: 內建 Chain of thought 的 LLM 例如 ChatGPT o1 或是 Claude sonnet 3.5

ChatGPT 4o  questions from OpenAI official site

Sonnet 3.5 questions adapted from the above





Sunday, October 13, 2024

HW#4 Enhance Your AI (RAG)

如何繳交作業 How to turn in your homework exercise.


課堂練習 

Deadline: This Saturday at 23:59

Send all the links to  me chang212@gmail.com by email with subject HW#4 Enhance AI [your id, your name].


練習: 生成筆記重點,筆記翻譯,簡報,旁白,理解測驗 (建議使用你所選擇的論文)

使用ChatGPT  重做上述題目



以下兩題至少做一題


練習: 筆記重點有憑有據,分析文章 with explainable retrieval ,提供分析的文本依據(可使用文本Download the PDF)


練習: 將一篇英文論文做成中文podcast,由一位主持人訪問論文研究的發現與貢獻(可使用文本Download the PDF)

Tuesday, October 08, 2024

存取擴增生成(Retrieval Augmented Generation, RAG)

Tip and example (code example for each tip)

(code example integrated)



Illustration of RAG

Source


檢索機制(Effective Retrieval)




微調成專業模型(微調流程) Fine-tuning of model



實際運用






Prompt for LLM

  Prompt (提示)

  • Clear - 明確清晰地表達你的需求。你的要求越精確,就能提供越貼合的回應。 例子:
    • 不佳:「告訴我關於貓的事。」
    • 更好:「請列舉五種最受歡迎的家貓品種,並簡述每種貓的主要特徵。」
  • Specific - 提供相關具體資訊。這有助於更好地理解你的需求。 例子:
    • 不佳:「如何準備演講?」
    • 更好:「我是一名大學生,需要在200人的班級上做一個15分鐘關於氣候變化的演講。你能給我一些準備建議嗎?」
Is short prompt or long prompt better?



Animate the submarine


Yellow submarine  (animate it and 水平移動)







非洲草原







醫院預約掛號




使用台灣文字正式用語




總結: Good prompts for LLM

注意:內建 Chain of thought 的 LLM 例如 ChatGPT o1 或是 Claude sonnet 3.5



ChatGPT 4o  questions from OpenAI official site

Sonnet 3.5 questions adapted from the above



ChatGPT o1




Monday, September 30, 2024

醫院掛號系統

 






選擇日期



在月曆中選擇日期






HW#3 Enhance Your AI (LLM)

 如何繳交作業 How to turn in your homework exercise.


課堂練習 

Deadline: This Saturday at 23:59

Send all the links to  me chang212@gmail.com by email with subject HW#3 Enhance AI [your id, your name].


任選兩題作答即可


練習: 任意製作一個動畫(旋轉的玩具風車,下潛的成熟抹香鯨,...) [繪圖可以快速檢視LLM是否理解人類的提示,檢視提示文字是否明確,清楚,具體]


練習: 將一張照片素描化 (森林與單車,繁忙的中原夜市,...,注意勿使用人身隱私照片) [素描可以用來快速檢視LLM 對影像的辨識與空間理解的能力,可以協助AI視覺應用的導入]


練習: 如何視覺化 /動畫碎形產生  Mandelbrot Set, Julia Set

Tuesday, September 24, 2024

Generating Fractals: Clear and Specific Prompt



 Visualize



Animate it (Fractal cloud)














加上選取觀看區域location 
選擇調色盤 color scheme
自動循環縮放 auto zooming

























樹木是碎形 (學生作品)





模擬自行車自動變速

給AI的提示: 

你是小巨人單車的研發工程師,你的任務是開發一套使用AI的自動變速系統,為了達成此任務,你需要能夠模擬自行車自動變速的系統。


模擬自行車自動變速


 

指定面板風格(視個人偏好)



模擬運動員騎乘 (Simulate an athlete.)




變速器作動視覺化 (Depict gear change as seen in an amateur bicycle.)




Focus on gear (mission: sales)










學生作品remixed


Tuesday, September 10, 2024

HW#2: Visualization

如何繳交作業 How to turn in your homework exercise.


課堂練習 

Deadline: This Saturday at 23:59

Send all the links to  me chang212@gmail.com by email with subject HW#2 Visualization [your id, your name].


練習: QuickSort 演算過程視覺化


練習: 模擬一個工程或科學系統,例如自行車自動變速系統,汽車自動排檔系統,...

Saturday, September 07, 2024

HW#1 Whack-a-Mole

如何繳交作業 How to turn in your homework exercise.


課堂練習 

Deadline: This Saturday at 23:59

Send all the links to  me chang212@gmail.com by email with subject HW#1 Whack-a-Mole [your name]


練習: 十分鐘做一支打地鼠遊戲 (一小時也無妨)

Whack-a-Mole