<!DOCTYPE html>
    <html lang="vi" xmlns="http://www.w3.org/1999/xhtml" prefix="og: http://ogp.me/ns#">
    <head>
<title>Hướng dẫn kỹ thuật lời nhắc. Kỹ thuật viết lời nhắc. Lời nhắc theo chuỗi tư duy</title>
<meta name="description" content="Hướng dẫn kỹ thuật lời nhắc. Kỹ thuật viết lời nhắc. Lời nhắc theo chuỗi tư duy - Savefile - Tin Tức -...">
<meta name="author" content="Giáo Dục Mở và Ứng dụng phát triển">
<meta name="copyright" content="Giáo Dục Mở và Ứng dụng phát triển [webmaster@giaoducmo.vinades.net]">
<meta name="robots" content="index, archive, follow, noodp">
<meta name="googlebot" content="index,archive,follow,noodp">
<meta name="msnbot" content="all,index,follow">
<meta name="generator" content="NukeViet v4.5">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta property="og:title" content="Hướng dẫn kỹ thuật lời nhắc. Kỹ thuật viết lời nhắc. Lời nhắc theo chuỗi tư duy">
<meta property="og:type" content="website">
<meta property="og:description" content="Savefile - Tin Tức - https&#x3A;&#x002F;&#x002F;giaoducmo.avnuc.vn&#x002F;index.php&#x002F;savefile&#x002F;ai&#x002F;huong-dan-ky-thuat-loi-nhac-ky-thuat-viet-loi-nhac-loi-nhac-theo-chuoi-tu-duy-1580.html">
<meta property="og:site_name" content="Giáo Dục Mở và Ứng dụng phát triển">
<meta property="og:url" content="https://giaoducmo.avnuc.vn/index.php/savefile/ai/huong-dan-ky-thuat-loi-nhac-ky-thuat-viet-loi-nhac-loi-nhac-theo-chuoi-tu-duy-1580.html">
<link rel="shortcut icon" href="https://giaoducmo.avnuc.vn/uploads/logo-gdm.png">
<link rel="canonical" href="https://giaoducmo.avnuc.vn/index.php/savefile/ai/huong-dan-ky-thuat-loi-nhac-ky-thuat-viet-loi-nhac-loi-nhac-theo-chuoi-tu-duy-1580.html">
<link rel="alternate" href="https://giaoducmo.avnuc.vn/index.php/rss/" title="Tin Tức" type="application/rss+xml">
<link rel="alternate" href="https://giaoducmo.avnuc.vn/index.php/rss/hoi-thao/" title="Tin Tức - Hội nghị &#x002F; Hội thảo" type="application/rss+xml">
<link rel="alternate" href="https://giaoducmo.avnuc.vn/index.php/rss/tap-huan/" title="Tin Tức - Tập huấn" type="application/rss+xml">
<link rel="alternate" href="https://giaoducmo.avnuc.vn/index.php/rss/giao-duc/" title="Tin Tức - Tài nguyên Giáo dục Mở" type="application/rss+xml">
<link rel="alternate" href="https://giaoducmo.avnuc.vn/index.php/rss/cap-giay-phep-mo/" title="Tin Tức - Cấp giấy phép mở" type="application/rss+xml">
<link rel="alternate" href="https://giaoducmo.avnuc.vn/index.php/rss/du-lieu-mo/" title="Tin Tức - Dữ liệu Mở" type="application/rss+xml">
<link rel="alternate" href="https://giaoducmo.avnuc.vn/index.php/rss/truy-cap-mo/" title="Tin Tức - Truy cập Mở" type="application/rss+xml">
<link rel="alternate" href="https://giaoducmo.avnuc.vn/index.php/rss/khoa-hoc-mo/" title="Tin Tức - Khoa học Mở" type="application/rss+xml">
<link rel="alternate" href="https://giaoducmo.avnuc.vn/index.php/rss/openglam/" title="Tin Tức - OpenGLAM" type="application/rss+xml">
<link rel="alternate" href="https://giaoducmo.avnuc.vn/index.php/rss/dinh-dang-mo/" title="Tin Tức - Tiêu chuẩn&#x002F;Định dạng Mở" type="application/rss+xml">
<link rel="alternate" href="https://giaoducmo.avnuc.vn/index.php/rss/phan-mem-tu-do-nguon-mo/" title="Tin Tức - Phần mềm Tự do Nguồn Mở" type="application/rss+xml">
<link rel="alternate" href="https://giaoducmo.avnuc.vn/index.php/rss/phan-cung/" title="Tin Tức - Phần cứng Mở&#x002F;Phần cứng Nguồn Mở" type="application/rss+xml">
<link rel="alternate" href="https://giaoducmo.avnuc.vn/index.php/rss/tai-lieu-dich/" title="Tin Tức - Tài liệu dịch" type="application/rss+xml">
<link rel="alternate" href="https://giaoducmo.avnuc.vn/index.php/rss/bai-viet-toan-van/" title="Tin Tức - Bài viết toàn văn" type="application/rss+xml">
<link rel="alternate" href="https://giaoducmo.avnuc.vn/index.php/rss/hop-tac/" title="Tin Tức - Hợp tác&#x002F;Đối tác" type="application/rss+xml">
<link rel="alternate" href="https://giaoducmo.avnuc.vn/index.php/rss/hoc-truc-tuyen-tu-xa/" title="Tin Tức - Học trực tuyến&#x002F;từ xa" type="application/rss+xml">
<link rel="alternate" href="https://giaoducmo.avnuc.vn/index.php/rss/nang-luc-so/" title="Tin Tức - Chuyển đổi&#x002F;Năng lực số" type="application/rss+xml">
<link rel="alternate" href="https://giaoducmo.avnuc.vn/index.php/rss/tvet/" title="Tin Tức - TVET" type="application/rss+xml">
<link rel="alternate" href="https://giaoducmo.avnuc.vn/index.php/rss/hoc-tap-suot-doi/" title="Tin Tức - Học tập suốt đời" type="application/rss+xml">
<link rel="alternate" href="https://giaoducmo.avnuc.vn/index.php/rss/danh-gia-nghien-cuu/" title="Tin Tức - Đánh giá nghiên cứu" type="application/rss+xml">
<link rel="alternate" href="https://giaoducmo.avnuc.vn/index.php/rss/giao-duc-xanh-phat-trien-ben-vung/" title="Tin Tức - Xanh&#x002F;Bền vững" type="application/rss+xml">
<link rel="alternate" href="https://giaoducmo.avnuc.vn/index.php/rss/ai/" title="Tin Tức - AI" type="application/rss+xml">
<link rel="alternate" href="https://giaoducmo.avnuc.vn/index.php/rss/su-pham-mo/" title="Tin Tức - Sư phạm Mở" type="application/rss+xml">
<link rel="stylesheet" href="https://giaoducmo.avnuc.vn/assets/css/font-awesome.min.css">
<link rel="stylesheet" href="https://giaoducmo.avnuc.vn/themes/giaoducmo/css/bootstrap.non-responsive.css">
<link rel="stylesheet" href="https://giaoducmo.avnuc.vn/themes/giaoducmo/css/style.css">
<link rel="stylesheet" href="https://giaoducmo.avnuc.vn/themes/giaoducmo/css/style.non-responsive.css">
<link rel="StyleSheet" href="https://giaoducmo.avnuc.vn/themes/default/css/news.css">
<link rel="stylesheet" href="https://giaoducmo.avnuc.vn/themes/giaoducmo/css/custom.css">
<link rel="stylesheet" href="https://giaoducmo.avnuc.vn/assets/css/giaoducmo.vi.0.css">
<style type="text/css">
	body{background: #fff;}
</style>
		<!-- Use passive listeners to improve scrolling performance, https://web.dev/uses-passive-event-listeners/?utm_source=lighthouse&utm_medium=unknown -->
    </head>
    <body>
<div id="print">
	<div id="hd_print">
		<h2 class="pull-left">Giáo Dục Mở và Ứng dụng phát triển</h2>
		<p class="pull-right"><a title="Giáo Dục Mở và Ứng dụng phát triển" href="https://giaoducmo.avnuc.vn/">https://giaoducmo.avnuc.vn</a></p>
	</div>
	<div class="clear"></div>
	<hr />
	<div id="content">
		<h1>Hướng dẫn kỹ thuật lời nhắc. Kỹ thuật viết lời nhắc. Lời nhắc theo chuỗi tư duy</h1>
		<ul class="list-inline">
			<li>Thứ sáu - 31/10/2025 19:21</li>
			<li class="hidden-print txtrequired"><em class="fa fa-print">&nbsp;</em><a title="In ra" href="javascript:;" onclick="window.print()">In ra</a></li>
			<li class="hidden-print txtrequired"><em class="fa fa-power-off">&nbsp;</em><a title="Đóng cửa sổ này" href="javascript:;" onclick="window.close()">Đóng cửa sổ này</a></li>
		</ul>
		<div class="clear"></div>
		<div id="hometext">
		</div>
				<div class="imghome">
			<img alt="Hướng dẫn kỹ thuật lời nhắc. Kỹ thuật viết lời nhắc. Lời nhắc theo chuỗi tư duy" src="https://giaoducmo.avnuc.vn/uploads/news/2025_11/0_prompt-engineering.png" width="460" class="img-thumbnail" />
		</div>
		<div class="clear"></div>
		<div id="bodytext" class="clearfix">
			<p align="justify"><b><span style="background: rgb(255, 255, 0);">Chain-of-Thought Prompting</span></b></p>

<p align="justify">Theo: <a href="https://www.promptingguide.ai/techniques/cot">https://www.promptingguide.ai/techniques/cot</a></p>

<div class="image-center"><img alt="" height="403" src="https://giaoducmo.avnuc.vn/uploads/news/2025_11/2.3-chain-of-thought-prompting_1.png" width="800" /></div>

<p align="center" style="line-height: 100%; margin-bottom: 0cm">Image Source: <a href="https://arxiv.org/abs/2201.11903" target="_blank">Wei et al. (2022)</a></p>

<p align="justify">Được giới thiệu trong <a href="https://arxiv.org/abs/2201.11903" target="_blank">Wei et al. (2022)</a>, lời nhắc theo chuỗi tư duy - CoT (Chain-of-Thought) cho phép khả năng suy luận phức tạp thông qua các bước suy luận trung gian. Bạn có thể kết hợp nó với lời nhắc với vài ví dụ/minh họa (Few-shot Prompting) để đạt kết quả tốt hơn cho các nhiệm vụ phức tạp hơn đòi hỏi phải suy luận trước khi phản hồi.</p>

<p align="justify"><em>Prompt:</em></p>

<pre class="western" style="text-align: justify; margin-left: 1.25cm">
<code class="western">Các số lẻ trong nhóm này cộng lại thành một số chẵn: 4, 8, 9, 15, 12, 2, 1.</code>
<code class="western">Đáp án: Cộng tất cả các số lẻ (9, 15, 1) được 25. Đáp án là Sai.</code>

<code class="western">Các số lẻ trong nhóm này cộng lại thành một số chẵn: 17, 10, 19, 4, 8, 12, 24.</code>
<code class="western">Đáp án: Cộng tất cả các số lẻ (17, 19) được 36. Đáp án là Đúng.</code>

<code class="western">Các số lẻ trong nhóm này cộng lại thành một số chẵn: 16, 11, 14, 4, 8, 13, 24.</code>
<code class="western">Đáp án: Cộng tất cả các số lẻ (11, 13) được 24. Đáp án là Đúng.</code>

<code class="western">Các số lẻ trong nhóm này cộng lại thành một số chẵn: 17, 9, 10, 12, 13, 4, 2.</code>
<code class="western">Đáp án: Cộng tất cả các số lẻ (17, 9, 13) được 39. Đáp án sai.</code>

<code class="western">Các số lẻ trong nhóm này cộng lại thành một số chẵn: 15, 32, 5, 13, 82, 7, 1.</code>
<code class="western">Đáp án:</code></pre>

<p align="justify"><em>Output:</em></p>

<pre class="western" style="text-align: justify; margin-left: 1.25cm; margin-bottom: 0.5cm">
<code class="western">Cộng tất cả các số lẻ (15, 5, 13, 7, 1) được 41. Đáp án là Sai.</code></pre>

<p align="justify">Wow! Chúng ta có thể thấy một kết quả hoàn hảo khi đưa ra bước lập luận. Thực tế, chúng ta có thể giải quyết bài toán này bằng cách cung cấp ít ví dụ hơn nữa, tức là chỉ cần một ví dụ là đủ:</p>

<p align="justify"><em>Prompt:</em></p>

<pre class="western" style="text-align: justify; margin-left: 1.25cm">
<code class="western">Các số lẻ trong nhóm này cộng lại thành một số chẵn: 4, 8, 9, 15, 12, 2, 1.</code>
<code class="western">Đáp án: Cộng tất cả các số lẻ (9, 15, 1) được 25. Đáp án là Sai.</code>

<code class="western">Các số lẻ trong nhóm này cộng lại thành một số chẵn: 15, 32, 5, 13, 82, 7, 1.</code>
<code class="western">Đáp án:</code></pre>

<p align="justify"><em>Output:</em></p>

<pre class="western" style="text-align: justify; margin-left: 1.25cm; margin-bottom: 0.5cm">
<code class="western">Cộng tất cả các số lẻ (15, 5, 13, 7, 1) được 41. Đáp án là Sai.</code></pre>

<p align="justify">Lưu ý rằng các tác giả cho rằng đây là một khả năng mới nổi xuất hiện với các mô hình ngôn ngữ đủ lớn.</p>

<p align="justify"><b>Lời nhắc không có ví dụ/minh họa (COT Zero-shot)</b></p>

<div class="image-center"><img alt="" height="431" src="https://giaoducmo.avnuc.vn/uploads/news/2025_11/2.3-chain-of-thought-prompting_2.png" width="800" /></div>

<p align="center" style="line-height: 100%; margin-bottom: 0cm">Image Source: <a href="https://arxiv.org/abs/2205.11916" target="_blank">Kojima et al. (2022)</a></p>

<p align="justify">Một ý tưởng mới xuất hiện gần đây hơn là ý tưởng về chiến lược <a href="https://arxiv.org/abs/2205.11916">Zero-shot CoT</a> (Kojima và cộng sự, 2022), về cơ bản bao gồm việc thêm câu &quot;Hãy suy nghĩ từng bước&quot; vào lời nhắc ban đầu. Hãy thử một bài toán đơn giản và xem mô hình hoạt động như thế nào:</p>

<p align="justify"><em>Prompt:</em></p>

<pre class="western" style="text-align: justify; margin-left: 1.25cm; margin-bottom: 0.5cm">
<code class="western">Tôi ra chợ mua 10 quả táo. Tôi đưa 2 quả cho người hàng xóm và 2 quả cho thợ sửa chữa. Sau đó, tôi đi mua thêm 5 quả táo và ăn 1 quả. Hỏi tôi còn lại bao nhiêu quả táo?</code><code class="western"> </code></pre>

<p align="justify"><em>Output:</em></p>

<pre class="western" style="text-align: justify; margin-left: 1.25cm; margin-bottom: 0.5cm">
<code class="western">11 quả táo</code></pre>

<p align="justify">Câu trả lời không đúng! Bây giờ chúng ta hãy thử với lời nhắc đặc biệt.</p>

<p align="justify"><em>Prompt:</em></p>

<pre class="western" style="text-align: justify; margin-left: 1.25cm">
<code class="western">Tôi ra chợ mua 10 quả táo. Tôi đưa 2 quả cho người hàng xóm và 2 quả cho thợ sửa chữa. Sau đó, tôi mua thêm 5 quả táo và ăn 1 quả. Vậy tôi còn lại bao nhiêu quả táo?</code>

<code class="western">Hãy suy nghĩ theo từng bước một.</code></pre>

<p align="justify"><em>Output:</em></p>

<pre class="western" style="text-align: justify; margin-left: 1.25cm">
<code class="western">Ban đầu, bạn có 10 quả táo.</code>
<code class="western">Bạn đã tặng 2 quả táo cho người hàng xóm và 2 quả cho thợ sửa chữa, vậy bạn còn lại 6 quả táo.</code>
<code class="western">Sau đó, bạn mua thêm 5 quả táo, vậy là bạn còn lại 11 quả táo.</code>
<code class="western">Cuối cùng, bạn ăn 1 quả táo, vậy là bạn còn lại 10 quả táo.</code></pre>

<p align="justify">Thật ấn tượng khi lời nhắc đơn giản này lại hiệu quả trong nhiệm vụ này. Điều này đặc biệt hữu ích khi bạn không có quá nhiều ví dụ để sử dụng trong lời nhắc.</p>

<p align="justify"><b>Chuỗi tư duy Tự động (Auto-CoT)</b></p>

<p align="justify">Khi áp dụng lời nhắc theo chuỗi tư duy với các bài minh họa, quá trình này bao gồm việc tự tay tạo ra các ví dụ hiệu quả và đa dạng. Nỗ lực thủ công này có thể dẫn đến các giải pháp không tối ưu. Zhang và cộng sự (2022) đề xuất một phương pháp để loại bỏ các nỗ lực thủ công bằng cách tận dụng các chương trình học thuật (LLM) với lời nhắc &quot;Hãy suy nghĩ từng bước&quot; để tạo ra các chuỗi suy luận cho từng bài minh họa. Quá trình tự động này vẫn có thể dẫn đến sai sót trong các chuỗi được tạo ra. Để giảm thiểu ảnh hưởng của sai sót, tính đa dạng của các bài minh họa là rất quan trọng. Nghiên cứu này đề xuất Auto-CoT, phương pháp này lấy mẫu các câu hỏi với tính đa dạng và tạo ra các chuỗi suy luận để xây dựng các bài minh họa.</p>

<p align="justify">Chuỗi tư duy tự động (Auto-CoT) bao gồm hai giai đoạn chính:</p>

<ul>
	<li>
	<p align="justify">Giai đoạn 1): <b>Phân cụm câu hỏi</b>: Phân chia các câu hỏi của một tập dữ liệu nhất định thành một vài cụm</p>
	</li>
	<li>
	<p align="justify">Giai đoạn 2): <b>Lấy mẫu trình diễn</b>: Chọn một câu hỏi đại diện từ mỗi cụm và tạo chuỗi suy luận của nó bằng Zero-Shot-CoT (Chuỗi tư duy không có ví dụ/minh họa) với các phương pháp suy luận đơn giản</p>
	</li>
</ul>

<p align="justify">Các phương pháp suy luận đơn giản có thể là độ dài của câu hỏi (ví dụ: 60 mã thông báo) và số bước trong quá trình suy luận (ví dụ: 5 bước suy luận). Điều này khuyến khích mô hình sử dụng các minh họa đơn giản và chính xác.</p>

<p align="justify">Quá trình này được minh họa dưới đây:</p>

<div class="image-center"><img alt="" height="436" src="https://giaoducmo.avnuc.vn/uploads/news/2025_11/2.3-chain-of-thought-prompting_3.png" width="800" /></div>

<p align="center" style="line-height: 115%; margin-bottom: 0.25cm">Image Source: <a href="https://arxiv.org/abs/2210.03493" target="_blank">Zhang et al. (2022)</a></p>

<p align="justify" style="line-height: 115%; margin-bottom: 0.25cm">Mã cho chuỗi tư duy tự động (Auto-CoT) có sẵn <a href="https://github.com/amazon-science/auto-cot">ở đây</a>.</p>

<p align="justify" style="line-height: 115%; margin-bottom: 0.25cm"><span style="background: transparent"><em><span style="font-style: normal"><span style="font-weight: normal"><a href="https://giaoducmo.avnuc.vn/ai/huong-dan-ky-thuat-loi-nhac-ky-thuat-viet-loi-nhac-1577.html">Về ‘Kỹ thuật viết lời nhắc’</a> ………. <a href="https://giaoducmo.avnuc.vn/ai/huong-dan-ky-thuat-loi-nhac-ky-thuat-viet-loi-nhac-loi-nhac-voi-vai-vi-du-minh-hoa-few-shot-prompting-1579.html">Phần trước</a> ………. <a href="https://giaoducmo.avnuc.vn/ai/huong-dan-ky-thuat-loi-nhac-ky-thuat-viet-loi-nhac-sieu-loi-nhac-meta-prompting-1581.html">Phần tiếp theo</a></span></span></em></span></p>
		</div>
				<div id="author">
						<p>
				<strong>Tác giả:</strong>
				<a href="https://giaoducmo.avnuc.vn/index.php/author/admin/">admin</a>
			</p>
		</div>
	</div>
	<div id="footer" class="clearfix">
		<div id="url">
			<strong>URL của bản tin này: </strong><a href="https://giaoducmo.avnuc.vn/index.php/savefile/ai/huong-dan-ky-thuat-loi-nhac-ky-thuat-viet-loi-nhac-loi-nhac-theo-chuoi-tu-duy-1580.html" title="Hướng dẫn kỹ thuật lời nhắc. Kỹ thuật viết lời nhắc. Lời nhắc theo chuỗi tư duy">https://giaoducmo.avnuc.vn/index.php/savefile/ai/huong-dan-ky-thuat-loi-nhac-ky-thuat-viet-loi-nhac-loi-nhac-theo-chuoi-tu-duy-1580.html</a>

		</div>
		<div class="clear"></div>
		<div class="copyright">
			&copy; Giáo Dục Mở và Ứng dụng phát triển
		</div>
		<div id="contact">
			<a href="mailto:webmaster@giaoducmo.vinades.net">webmaster@giaoducmo.vinades.net</a>
		</div>
	</div>
</div>
        <div id="timeoutsess" class="chromeframe">
            Bạn đã không sử dụng Site, <a onclick="timeoutsesscancel();" href="https://giaoducmo.avnuc.vn/#">Bấm vào đây để duy trì trạng thái đăng nhập</a>. Thời gian chờ: <span id="secField"> 60 </span> giây
        </div>
        <div id="openidResult" class="nv-alert" style="display:none"></div>
        <div id="openidBt" data-result="" data-redirect=""></div>
<script src="https://giaoducmo.avnuc.vn/assets/js/jquery/jquery.min.js"></script>
<script>var nv_base_siteurl="/",nv_lang_data="vi",nv_lang_interface="vi",nv_name_variable="nv",nv_fc_variable="op",nv_lang_variable="language",nv_module_name="news",nv_func_name="savefile",nv_is_user=0, nv_my_ofs=-4,nv_my_abbr="EDT",nv_cookie_prefix="nv4",nv_check_pass_mstime=1738000,nv_area_admin=0,nv_safemode=0,theme_responsive=0,nv_recaptcha_ver=2,nv_recaptcha_sitekey="6LddCbkUAAAAAA1MjB7RhRdYdQihicLCVYmTJe2R",nv_recaptcha_type="image",XSSsanitize=1;</script>
<script src="https://giaoducmo.avnuc.vn/assets/js/language/vi.js"></script>
<script src="https://giaoducmo.avnuc.vn/assets/js/DOMPurify/purify3.js"></script>
<script src="https://giaoducmo.avnuc.vn/assets/js/global.js"></script>
<script src="https://giaoducmo.avnuc.vn/assets/js/site.js"></script>
<script src="https://giaoducmo.avnuc.vn/themes/default/js/news.js"></script>
<script src="https://giaoducmo.avnuc.vn/themes/giaoducmo/js/main.js"></script>
<script src="https://giaoducmo.avnuc.vn/themes/giaoducmo/js/custom.js"></script>
<script>jQuery.event.special.touchstart={setup:function(c,a,b){this.addEventListener("touchstart",b,{passive:!a.includes("noPreventDefault")})}};jQuery.event.special.touchmove={setup:function(c,a,b){this.addEventListener("touchmove",b,{passive:!a.includes("noPreventDefault")})}};</script>
<script type="application/ld+json">
        {
            "@context": "https://schema.org",
            "@type": "Organization",
            "url": "https://giaoducmo.avnuc.vn",
            "logo": "https://giaoducmo.avnuc.vn/uploads/logo-gdm.png"
        }
        </script>
<script src="https://giaoducmo.avnuc.vn/themes/giaoducmo/js/bootstrap.min.js"></script>
</body>
</html>