Prompt engineering là nghiên cứu về những mẫu prompt dùng để nói chuyện với mô hình AI một cách tối ưu và hiệu quả nhất. 👀

Công thức cơ bản sẽ là:

Vai trò của AI + Nhiệm vụ của AI cần phải làm gì + Định dạng văn bản đầu ra chúng ta muốn

Common command:

Thay [từ trong ngoặc] thành keyword bạn muốn.

Tìm hiểu một khái niệm gì đó:

Giải thích khái niệm [recursion] trong [khoa học máy tính], 
cơ chế hoạt động, ưu/nhược điểm, 
ứng dụng thực tế của [recursion] và cho ví dụ code mẫu bằng [Go]. 
Bài viết định dạng markdown, 
tối thiểu 1500 từ và phần ưu/nhược điểm liệt kê dạng gạch đầu dòng.

Nhập vai:

Example:

As a [Senior SE], rewrite these sentences to use in a resume
- Implemented new features and fixed bugs.
- Designed APIs.

Cung cấp ví dụ:

Write an informal customer email for a non-tech audience about how to use Postman API. 
It should not be overly formal. 
This is a "bad" example of the type of copy you should avoid:
[Insert bad example].

Ví dụ 2: Cung cấp tài liệu tham khảo

Tôi có thể cung cấp cho mô hình AI thông tin đáng tin cậy liên quan tới câu hỏi, từ đó, hướng dẫn mô hình sử dụng thông tin đó để tạo phản hồi.

Use the provided article delimited by triple quotes to answer questions. 
If the answer cannot be found in the articles, write "I could not find an answer."

<insert articles, each delimited by triple quotes>

Question: <insert question here>

Ví dụ 3: ChatGPT sẽ tạo tên sản phẩm từ mô tả sản phẩm và seed words dựa trên 2 ví dụ tôi đưa ra ở prompt.

Product description: A home milkshake maker.
Seed words: fast, healthy, compact.
Product names: HomeShaker, Fit Shaker, QuickShake, Shake Maker

Product description: A watch that can tell accurate time in space.
Seed words: astronaut, space-hardened, elliptical orbit
Product names: AstroTime, SpaceGuard, Orbit-Accurate, EliptoTime

Product description: A pair of shoes that can fit any foot size.
Seed words: adaptable, fit, omni-fit.
Product names: ???

result: AdaptaStep, UniFit, OmniShoe, FlexFitSole

Phản hồi có định kiến

Untitled