<!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 kiến thức được tạo</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 kiến thức được tạo - Savefile - Blogs -...">
<meta name="author" content="Blog FOSS by Lê Trung Nghĩa">
<meta name="copyright" content="Blog FOSS by Lê Trung Nghĩa [webmaster@vinades.vn]">
<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 kiến thức được tạo">
<meta property="og:type" content="website">
<meta property="og:description" content="Savefile - Blogs - https&#x3A;&#x002F;&#x002F;letrungnghia.mangvn.org&#x002F;savefile&#x002F;Education&#x002F;huong-dan-ky-thuat-loi-nhac-ky-thuat-viet-loi-nhac-loi-nhac-kien-thuc-duoc-tao-7796.html">
<meta property="og:site_name" content="Blog FOSS by Lê Trung Nghĩa">
<meta property="og:url" content="https://letrungnghia.mangvn.org/savefile/Education/huong-dan-ky-thuat-loi-nhac-ky-thuat-viet-loi-nhac-loi-nhac-kien-thuc-duoc-tao-7796.html">
<link rel="shortcut icon" href="https://letrungnghia.mangvn.org/favicon.ico">
<link rel="canonical" href="https://letrungnghia.mangvn.org/savefile/Education/huong-dan-ky-thuat-loi-nhac-ky-thuat-viet-loi-nhac-loi-nhac-kien-thuc-duoc-tao-7796.html">
<link rel="alternate" href="https://letrungnghia.mangvn.org/rss/" title="Blogs" type="application/rss+xml">
<link rel="alternate" href="https://letrungnghia.mangvn.org/rss/Government/" title="Blogs - Government" type="application/rss+xml">
<link rel="alternate" href="https://letrungnghia.mangvn.org/rss/Policy/" title="Blogs - Policy" type="application/rss+xml">
<link rel="alternate" href="https://letrungnghia.mangvn.org/rss/Philosophy/" title="Blogs - Philosophy" type="application/rss+xml">
<link rel="alternate" href="https://letrungnghia.mangvn.org/rss/Security/" title="Blogs - Security" type="application/rss+xml">
<link rel="alternate" href="https://letrungnghia.mangvn.org/rss/Legal/" title="Blogs - Legal" type="application/rss+xml">
<link rel="alternate" href="https://letrungnghia.mangvn.org/rss/Education/" title="Blogs - Education" type="application/rss+xml">
<link rel="alternate" href="https://letrungnghia.mangvn.org/rss/Business/" title="Blogs - Business" type="application/rss+xml">
<link rel="alternate" href="https://letrungnghia.mangvn.org/rss/Community/" title="Blogs - Community" type="application/rss+xml">
<link rel="alternate" href="https://letrungnghia.mangvn.org/rss/Interoperability/" title="Blogs - Interoperability" type="application/rss+xml">
<link rel="alternate" href="https://letrungnghia.mangvn.org/rss/Standards/" title="Blogs - Standards" type="application/rss+xml">
<link rel="alternate" href="https://letrungnghia.mangvn.org/rss/Author/" title="Blogs - Author" type="application/rss+xml">
<link rel="alternate" href="https://letrungnghia.mangvn.org/rss/Opinions/" title="Blogs - Opinions" type="application/rss+xml">
<link rel="alternate" href="https://letrungnghia.mangvn.org/rss/CC/" title="Blogs - CC" type="application/rss+xml">
<link rel="alternate" href="https://letrungnghia.mangvn.org/rss/Cloud/" title="Blogs - Cloud" type="application/rss+xml">
<link rel="alternate" href="https://letrungnghia.mangvn.org/rss/Hardware/" title="Blogs - Hardware" type="application/rss+xml">
<link rel="alternate" href="https://letrungnghia.mangvn.org/rss/Software/" title="Blogs - Software" type="application/rss+xml">
<link rel="alternate" href="https://letrungnghia.mangvn.org/rss/Statistics/" title="Blogs - Statistics" type="application/rss+xml">
<link rel="alternate" href="https://letrungnghia.mangvn.org/rss/Trends/" title="Blogs - Trends" type="application/rss+xml">
<link rel="alternate" href="https://letrungnghia.mangvn.org/rss/China/" title="Blogs - China" type="application/rss+xml">
<link rel="alternate" href="https://letrungnghia.mangvn.org/rss/OSs/" title="Blogs - OSs" type="application/rss+xml">
<link rel="alternate" href="https://letrungnghia.mangvn.org/rss/Blogs/" title="Blogs - Blogs" type="application/rss+xml">
<link rel="alternate" href="https://letrungnghia.mangvn.org/rss/Outsourcing/" title="Blogs - Outsourcing" type="application/rss+xml">
<link rel="alternate" href="https://letrungnghia.mangvn.org/rss/elearning/" title="Blogs - Elearning" type="application/rss+xml">
<link rel="preload" as="style" href="https://letrungnghia.mangvn.org/assets/css/font-awesome.min.css" type="text/css">
<link rel="preload" as="style" href="https://letrungnghia.mangvn.org/themes/default/css/bootstrap.non-responsive.css" type="text/css">
<link rel="preload" as="style" href="https://letrungnghia.mangvn.org/themes/default/css/style.css" type="text/css">
<link rel="preload" as="style" href="https://letrungnghia.mangvn.org/themes/default/css/style.non-responsive.css" type="text/css">
<link rel="preload" as="style" href="https://letrungnghia.mangvn.org/themes/default/css/news.css" type="text/css">
<link rel="preload" as="style" href="https://letrungnghia.mangvn.org/themes/default/css/custom.css" type="text/css">
<link rel="preload" as="style" href="https://letrungnghia.mangvn.org/assets/css/default.vi.1106.css" type="text/css">
<link rel="preload" as="script" href="https://letrungnghia.mangvn.org/assets/js/jquery/jquery.min.js" type="text/javascript">
<link rel="preload" as="script" href="https://letrungnghia.mangvn.org/assets/js/language/vi.js" type="text/javascript">
<link rel="preload" as="script" href="https://letrungnghia.mangvn.org/assets/js/DOMPurify/purify3.js" type="text/javascript">
<link rel="preload" as="script" href="https://letrungnghia.mangvn.org/assets/js/global.js" type="text/javascript">
<link rel="preload" as="script" href="https://letrungnghia.mangvn.org/assets/js/site.js" type="text/javascript">
<link rel="preload" as="script" href="https://letrungnghia.mangvn.org/themes/default/js/news.js" type="text/javascript">
<link rel="preload" as="script" href="https://letrungnghia.mangvn.org/themes/default/js/main.js" type="text/javascript">
<link rel="preload" as="script" href="https://letrungnghia.mangvn.org/themes/default/js/custom.js" type="text/javascript">
<link rel="preload" as="script" href="https://letrungnghia.mangvn.org/themes/default/js/bootstrap.min.js" type="text/javascript">
<link rel="stylesheet" href="https://letrungnghia.mangvn.org/assets/css/font-awesome.min.css">
<link rel="stylesheet" href="https://letrungnghia.mangvn.org/themes/default/css/bootstrap.non-responsive.css">
<link rel="stylesheet" href="https://letrungnghia.mangvn.org/themes/default/css/style.css">
<link rel="stylesheet" href="https://letrungnghia.mangvn.org/themes/default/css/style.non-responsive.css">
<link rel="StyleSheet" href="https://letrungnghia.mangvn.org/themes/default/css/news.css">
<link rel="stylesheet" href="https://letrungnghia.mangvn.org/themes/default/css/custom.css">
<link rel="stylesheet" href="https://letrungnghia.mangvn.org/assets/css/default.vi.1106.css">
<style type="text/css">
	body{background: #fff;}
</style>
<script>(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-70254229-3', '');
ga('send', 'pageview');
</script>
</head>
    <body>
<div id="print">
	<div id="hd_print">
		<h2 class="pull-left">Blog FOSS by Lê Trung Nghĩa</h2>
		<p class="pull-right"><a title="Blog FOSS by Lê Trung Nghĩa" href="https://letrungnghia.mangvn.org/">https://letrungnghia.mangvn.org</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 kiến thức được tạo</h1>
		<ul class="list-inline">
			<li>Thứ tư - 05/11/2025 06: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 kiến thức được tạo" src="https://letrungnghia.mangvn.org/uploads/letrungnghia/news/2025/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);">Generated Knowledge Prompting</span></b></p>

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

<div class="image-center"><img alt="" height="511" src="https://letrungnghia.mangvn.org/uploads/letrungnghia/news/2025/2.6-generated-knowledge-prompting.png" width="793" /></div>

<p align="center">Image Source: <a href="https://arxiv.org/pdf/2110.08387.pdf" target="_blank">Liu et al. 2022</a></p>

<p align="justify">Các mô hình ngôn ngữ lớn (LLM) tiếp tục được cải tiến và một kỹ thuật phổ biến bao gồm khả năng kết hợp kiến thức hoặc thông tin để giúp mô hình đưa ra dự đoán chính xác hơn.</p>

<p align="justify">Sử dụng một ý tưởng tương tự, liệu mô hình có thể được sử dụng để tạo ra kiến thức trước khi đưa ra dự đoán hay không? Đó là những gì được <a href="https://arxiv.org/pdf/2110.08387.pdf">Liu và cộng sự</a> thực hiện trong bài báo năm 2022 -- tạo ra kiến thức để sử dụng như một phần của gợi ý. Cụ thể, điều này hữu ích như thế nào đối với các nhiệm vụ như suy luận theo lẽ thường?</p>

<p align="justify">Hãy thử một lời nhắc đơn giản:</p>

<p><em>Prompt:</em></p>

<pre class="western" style="margin-left: 1.25cm; margin-bottom: 0.5cm">
<code class="western">Một phần của golf là cố gắng đạt tổng điểm cao hơn người khác. Có hay không?</code></pre>

<p><em>Output:</em></p>

<pre class="western" style="text-align: justify; margin-left: 1.25cm; margin-bottom: 0.5cm">
<code class="western">Có.</code></pre>

<p align="justify">Loại sai lầm này cho thấy những hạn chế của LLM trong việc thực hiện các nhiệm vụ đòi hỏi nhiều kiến thức hơn về thế giới. Làm thế nào để chúng ta cải thiện điều này bằng cách tạo ra kiến thức?</p>

<p align="justify">Đầu tiên, chúng ta tạo ra một vài &quot;kiến thức&quot;:</p>

<p><em>Prompt:</em></p>

<pre class="western" style="margin-left: 1.25cm">
<code class="western hljs ">Đầu vào: Hy Lạp lớn hơn Mexico.</code>
<code class="western hljs ">Kiến thức: Hy Lạp có diện tích khoảng 131.957 km², trong khi Mexico có diện tích khoảng 1.964.375 km², khiến Mexico lớn hơn Hy Lạp 1.389%.</code><code class="western hljs "> </code>

<code class="western hljs ">Đầu vào: Kính luôn bị mờ.</code>
<code class="western hljs perl">Kiến thức: Sự ngưng tụ <span class="hljs-keyword">x</span>ả<span class="hljs-keyword">y</span> ra <span class="hljs-keyword">tr</span>ên <span class="hljs-keyword">tr</span>òng kính khi hơi nước từ <span class="hljs-keyword">m</span>ồ hôi, hơi thở và độ ẩ<span class="hljs-keyword">m</span> <span class="hljs-keyword">m</span>ôi <span class="hljs-keyword">tr</span>ường của bạn tiếp <span class="hljs-keyword">x</span>úc với bề <span class="hljs-keyword">m</span>ặt lạnh, nguội đi và sau đó biến thành những giọt chất lỏng nhỏ, tạo thành <span class="hljs-keyword">m</span>ột lớp <span class="hljs-keyword">m</span>àng <span class="hljs-keyword">m</span>à bạn nhìn thấ<span class="hljs-keyword">y</span> dưới dạng <span class="hljs-keyword">s</span>ương <span class="hljs-keyword">m</span>ù. Tròng kính của bạn <span class="hljs-keyword">s</span>ẽ tương đối <span class="hljs-keyword">m</span>át so với hơi thở của bạn, đặc biệt là khi không khí bên ngoài lạnh.</code>

<code class="western hljs ">Đầu vào: Cá có khả năng suy nghĩ.</code>
<code class="western hljs perl">Kiến thức: Cá thông minh hơn vẻ bề ngoài của chúng. Trong nhiều lĩnh vực, chẳng hạn như <span class="hljs-keyword">tr</span>í nhớ, khả năng nhận thức của chúng ngang bằng hoặc vượt <span class="hljs-keyword">tr</span>ội hơn các loài động vật có <span class="hljs-keyword">x</span>ương <span class="hljs-keyword">s</span>ống <span class="hljs-string">&#039;cao cấp&#039;</span>, bao gồ<span class="hljs-keyword">m</span> cả linh <span class="hljs-keyword">tr</span>ưởng không phải người. Trí nhớ dài hạn của cá giúp chúng theo dõi các <span class="hljs-keyword">m</span>ối quan hệ <span class="hljs-keyword">x</span>ã hội phức tạp.</code>

<code class="western hljs ">Đầu vào: Một tác động phổ biến của việc hút nhiều thuốc lá trong đời là nguy cơ mắc ung thư phổi cao hơn bình thường.</code>
<code class="western hljs ">Kiến thức: Những người hút trung bình ít hơn một điếu thuốc mỗi ngày trong suốt cuộc đời có nguy cơ tử vong vì ung thư phổi cao gấp chín lần so với những người không bao giờ hút thuốc. Trong số những người hút từ một đến 10 điếu thuốc mỗi ngày, nguy cơ tử vong vì ung thư phổi cao hơn gần 12 lần so với những người không bao giờ hút thuốc.</code>

<code class="western hljs ">Đầu vào: Một hòn đá có kích thước tương đương với một viên sỏi.</code>
<code class="western hljs perl">Kiến thức: Một viên <span class="hljs-keyword">s</span>ỏi là <span class="hljs-keyword">m</span>ột <span class="hljs-keyword">m</span>ảnh đá có kích thước hạt từ <span class="hljs-number">4</span> đến <span class="hljs-number">64</span> mm dựa <span class="hljs-keyword">tr</span>ên thang <span class="hljs-keyword">tr</span>ầ<span class="hljs-keyword">m</span> tích Udden-Wentworth. Sỏi thường được coi là lớn hơn hạt nhỏ (đường kính từ <span class="hljs-number">2</span> đến <span class="hljs-number">4</span> mm) và nhỏ hơn đá cuội (đường kính từ <span class="hljs-number">64</span> đến <span class="hljs-number">256</span> mm).</code>

<code class="western hljs ">Đầu vào: Một phần của môn golf là cố gắng đạt tổng điểm cao hơn những người khác.</code>
<code class="western hljs ">Kiến thức:</code></pre>

<p><em>Knowledge 1:</em></p>

<pre class="western" style="text-align: justify; margin-left: 1.25cm; margin-bottom: 0.5cm">
<code class="western hljs perl">Mục đích của golf là chơi <span class="hljs-keyword">m</span>ột loạt lỗ với <span class="hljs-keyword">s</span>ố lần đánh ít nhất. Một vòng golf thường bao gồ<span class="hljs-keyword">m</span> <span class="hljs-number">18</span> lỗ. Mỗi lỗ được chơi <span class="hljs-keyword">m</span>ột lần trong <span class="hljs-keyword">m</span>ột vòng <span class="hljs-keyword">tr</span>ên <span class="hljs-keyword">s</span>ân golf tiêu chuẩn. Mỗi cú đánh được tính là <span class="hljs-keyword">m</span>ột điể<span class="hljs-keyword">m</span>, và tổng <span class="hljs-keyword">s</span>ố cú đánh được <span class="hljs-keyword">s</span>ử dụng để <span class="hljs-keyword">x</span>ác định người chiến thắng.</code></pre>

<p><em>Knowledge 2:</em></p>

<pre class="western" style="text-align: justify; margin-left: 1.25cm; margin-bottom: 0.5cm">
<code class="western hljs perl">Golf là <span class="hljs-keyword">m</span>ôn thể thao <span class="hljs-keyword">s</span>ử dụng gậ<span class="hljs-keyword">y</span> và bóng chính <span class="hljs-keyword">x</span>ác, trong đó người chơi (hoặc người chơi golf) <span class="hljs-keyword">s</span>ử dụng nhiều loại gậ<span class="hljs-keyword">y</span> để đánh bóng vào <span class="hljs-keyword">m</span>ột loạt các lỗ <span class="hljs-keyword">tr</span>ên <span class="hljs-keyword">s</span>ân với <span class="hljs-keyword">s</span>ố lần đánh ít nhất. Mục tiêu là hoàn thành <span class="hljs-keyword">s</span>ân với <span class="hljs-keyword">s</span>ố điể<span class="hljs-keyword">m</span> thấp nhất, được tính bằng cách cộng tổng <span class="hljs-keyword">s</span>ố cú đánh ở <span class="hljs-keyword">m</span>ỗi lỗ. Người chơi có <span class="hljs-keyword">s</span>ố điể<span class="hljs-keyword">m</span> thấp nhất <span class="hljs-keyword">s</span>ẽ thắng.</code></pre>

<p align="justify">Chúng tôi đang sử dụng gợi ý được cung cấp trong bài báo của Liu và cộng sự năm 2022. Bước tiếp theo là tích hợp kiến thức và đưa ra dự đoán. Tôi đã định dạng lại câu hỏi theo định dạng QA để định hướng cho định dạng câu trả lời.</p>

<p><em>Prompt:</em></p>

<pre class="western" style="text-align: justify; margin-left: 1.25cm">
<code class="western hljs ">Câu hỏi: Một phần của golf là cố gắng đạt tổng điểm cao hơn người khác. Có hay không?</code>

<code class="western hljs perl">Kiến thức: Mục tiêu của golf là chơi <span class="hljs-keyword">m</span>ột loạt lỗ với <span class="hljs-keyword">s</span>ố gậ<span class="hljs-keyword">y</span> ít nhất. Một vòng golf thường bao gồ<span class="hljs-keyword">m</span> <span class="hljs-number">18</span> lỗ. Mỗi lỗ được chơi <span class="hljs-keyword">m</span>ột lần trong vòng <span class="hljs-keyword">tr</span>ên <span class="hljs-keyword">s</span>ân golf tiêu chuẩn. Mỗi gậ<span class="hljs-keyword">y</span> được tính là <span class="hljs-keyword">m</span>ột điể<span class="hljs-keyword">m</span>, và tổng <span class="hljs-keyword">s</span>ố gậ<span class="hljs-keyword">y</span> được <span class="hljs-keyword">s</span>ử dụng để <span class="hljs-keyword">x</span>ác định người chiến thắng.</code>
<code class="western hljs ">Giải thích và Trả lời:</code></pre>

<p><em>Câu trả lời 1 (độ tin cậy rất cao):</em></p>

<pre class="western" style="text-align: justify; margin-left: 1.25cm; margin-bottom: 0.5cm">
<code class="western hljs ">Không, mục tiêu của golf không phải là đạt tổng điểm cao hơn người khác. Thay vào đó, mục tiêu là chơi một loạt lỗ với số gậy ít nhất. Tổng số gậy được sử dụng để xác định người chiến thắng, chứ không phải tổng số điểm.</code><code class="western hljs "> </code>
<code class="western hljs ">Câu hỏi: Một phần của golf là cố gắng đạt tổng điểm cao hơn người khác. Có hay không?</code>

<code class="western hljs perl">Kiến thức: Golf là <span class="hljs-keyword">m</span>ôn thể thao chính <span class="hljs-keyword">x</span>ác <span class="hljs-keyword">s</span>ử dụng gậ<span class="hljs-keyword">y</span> và bóng, trong đó người chơi (hoặc người chơi golf) <span class="hljs-keyword">s</span>ử dụng nhiều loại gậ<span class="hljs-keyword">y</span> khác nhau để đánh bóng vào <span class="hljs-keyword">m</span>ột loạt các lỗ <span class="hljs-keyword">tr</span>ên <span class="hljs-keyword">s</span>ân với <span class="hljs-keyword">s</span>ố lần đánh ít nhất. Mục tiêu là hoàn thành <span class="hljs-keyword">s</span>ân với điể<span class="hljs-keyword">m</span> <span class="hljs-keyword">s</span>ố thấp nhất, được tính bằng cách cộng tổng <span class="hljs-keyword">s</span>ố gậ<span class="hljs-keyword">y</span> đánh được ở <span class="hljs-keyword">m</span>ỗi lỗ. Người chơi có điể<span class="hljs-keyword">m</span> <span class="hljs-keyword">s</span>ố thấp nhất <span class="hljs-keyword">s</span>ẽ thắng.</code>

<code class="western hljs ">Giải thích và Trả lời:</code></pre>

<p><em>Câu trả lời 2 (độ tin cậy thấp hơn nhiều):</em><em><i> </i></em></p>

<pre class="western" style="text-align: justify; margin-left: 1.25cm; margin-bottom: 0.5cm">
<code class="western">Đúng vậy, một phần của golf là cố gắng đạt tổng điểm cao hơn những người khác. Mỗi người chơi đều cố gắng hoàn thành sân với điểm số thấp nhất, được tính bằng cách cộng tổng số gậy đánh được ở mỗi lỗ. Người chơi có điểm số thấp nhất sẽ thắng.</code></pre>

<p align="justify">Một số điều thực sự thú vị đã xảy ra với ví dụ này. Trong câu trả lời đầu tiên, mô hình rất tự tin nhưng trong câu trả lời thứ hai thì không. Tôi đã đơn giản hóa quy trình để minh họa, nhưng vẫn còn một vài chi tiết cần xem xét khi đi đến câu trả lời cuối cùng. Xem bài báo để biết thêm.</p>

<p align="justify" style="margin-bottom: 0cm"><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-tu-nhat-quan-1582.html">Phần trước</a> ………. Phần tiếp theo</span></span></em></span></p>

<p align="justify" style="margin-bottom: 0cm">&nbsp;</p>

<p align="justify"><span style="background: rgb(255, 255, 0);">LLMs continue to be improved and one popular technique includes the ability to incorporate knowledge or information to help the model make more accurate predictions.</span></p>

<p align="justify"><span style="background: rgb(255, 255, 0);">Using a similar idea, can the model also be used to generate knowledge before making a prediction? That&#039;s what is attempted in the paper by <a href="https://arxiv.org/pdf/2110.08387.pdf" target="_blank">Liu et al. 2022</a> -- generate knowledge to be used as part of the prompt. In particular, how helpful is this for tasks such as commonsense reasoning?</span></p>

<p align="justify"><span style="background: rgb(255, 255, 0);">Let&#039;s try a simple prompt:</span></p>

<p><em><span style="background: rgb(255, 255, 0);">Prompt:</span></em></p>

<pre class="western" style="margin-left: 1.25cm; margin-bottom: 0.5cm">
<code class="western"><span style="background: rgb(255, 255, 0);">Part of golf is trying to get a higher point total than others. Yes or No?</span></code></pre>

<p><em><span style="background: rgb(255, 255, 0);">Output:</span></em></p>

<pre class="western" style="margin-left: 1.25cm; margin-bottom: 0.5cm">
<code class="western"><span style="background: rgb(255, 255, 0);">Yes.</span></code></pre>

<p align="justify"><span style="background: rgb(255, 255, 0);">This type of mistake reveals the limitations of LLMs to perform tasks that require more knowledge about the world. How do we improve this with knowledge generation?</span></p>

<p><span style="background: rgb(255, 255, 0);">First, we generate a few &quot;knowledges&quot;:</span></p>

<p><em><span style="background: rgb(255, 255, 0);">Prompt:</span></em></p>

<pre class="western" style="margin-left: 1.25cm">
<code class="western"><span style="background: rgb(255, 255, 0);">Input: Greece is larger than mexico.</span></code>
<code class="western"><span style="background: rgb(255, 255, 0);">Knowledge: Greece is approximately 131,957 sq km, while Mexico is approximately 1,964,375 sq km, making Mexico 1,389% larger than Greece.</span></code>

<code class="western"><span style="background: rgb(255, 255, 0);">Input: Glasses always fog up.</span></code>
<code class="western"><span style="background: rgb(255, 255, 0);">Knowledge: Condensation occurs on eyeglass lenses when water vapor from your sweat, breath, and ambient humidity lands on a cold surface, cools, and then changes into tiny drops of liquid, forming a film that you see as fog. Your lenses will be relatively cool compared to your breath, especially when the outside air is cold.</span></code>

<code class="western"><span style="background: rgb(255, 255, 0);">Input: A fish is capable of thinking.</span></code>
<code class="western"><span style="background: rgb(255, 255, 0);">Knowledge: Fish are more intelligent than they appear. In many areas, such as memory, their cognitive powers match or exceed those of ’higher’ vertebrates including non-human primates. Fish’s long-term memories help them keep track of complex social relationships.</span></code>

<code class="western"><span style="background: rgb(255, 255, 0);">Input: A common effect of smoking lots of cigarettes in one’s lifetime is a higher than normal chance of getting lung cancer.</span></code>
<code class="western"><span style="background: rgb(255, 255, 0);">Knowledge: Those who consistently averaged less than one cigarette per day over their lifetime had nine times the risk of dying from lung cancer than never smokers. Among people who smoked between one and 10 cigarettes per day, the risk of dying from lung cancer was nearly 12 times higher than that of never smokers.</span></code>

<code class="western"><span style="background: rgb(255, 255, 0);">Input: A rock is the same size as a pebble.</span></code>
<code class="western"><span style="background: rgb(255, 255, 0);">Knowledge: A pebble is a clast of rock with a particle size of 4 to 64 millimetres based on the Udden-Wentworth scale of sedimentology. Pebbles are generally considered larger than granules (2 to 4 millimetres diameter) and smaller than cobbles (64 to 256 millimetres diameter).</span></code>

<code class="western"><span style="background: rgb(255, 255, 0);">Input: Part of golf is trying to get a higher point total than others.</span></code>
<code class="western"><span style="background: rgb(255, 255, 0);">Knowledge:</span></code></pre>

<p><em><span style="background: rgb(255, 255, 0);">Knowledge 1:</span></em></p>

<pre class="western" style="margin-left: 1.25cm; margin-bottom: 0.5cm">
<code class="western"><span style="background: rgb(255, 255, 0);">The objective of golf is to play a set of holes in the least number of strokes. A round of golf typically consists of 18 holes. Each hole is played once in the round on a standard golf course. Each stroke is counted as one point, and the total number of strokes is used to determine the winner of the game.</span></code></pre>

<p><em><span style="background: rgb(255, 255, 0);">Knowledge 2:</span></em></p>

<pre class="western" style="margin-left: 1.25cm; margin-bottom: 0.5cm">
<code class="western"><span style="background: rgb(255, 255, 0);">Golf is a precision club-and-ball sport in which competing players (or golfers) use many types of clubs to hit balls into a series of holes on a course using the fewest number of strokes. The goal is to complete the course with the lowest score, which is calculated by adding up the total number of strokes taken on each hole. The player with the lowest score wins the game.</span></code></pre>

<p><span style="background: rgb(255, 255, 0);">We are using the prompt provided in the paper by <a href="https://arxiv.org/pdf/2110.08387.pdf" target="_blank">Liu et al. 2022</a>.</span></p>

<p><span style="background: rgb(255, 255, 0);">The next step is to integrate the knowledge and get a prediction. I reformatted the question into QA format to guide the answer format.</span></p>

<p><em><span style="background: rgb(255, 255, 0);">Prompt:</span></em></p>

<pre class="western" style="margin-left: 1.25cm">
<code class="western"><span style="background: rgb(255, 255, 0);">Question: Part of golf is trying to get a higher point total than others. Yes or No?</span></code>

<code class="western"><span style="background: rgb(255, 255, 0);">Knowledge: The objective of golf is to play a set of holes in the least number of strokes. A round of golf typically consists of 18 holes. Each hole is played once in the round on a standard golf course. Each stroke is counted as one point, and the total number of strokes is used to determine the winner of the game.</span></code>

<code class="western"><span style="background: rgb(255, 255, 0);">Explain and Answer: </span></code></pre>

<p><em><span style="background: rgb(255, 255, 0);">Answer 1 (confidence very high):</span></em></p>

<pre class="western" style="margin-left: 1.25cm; margin-bottom: 0.5cm">
<code class="western"><span style="background: rgb(255, 255, 0);">No, the objective of golf is not to get a higher point total than others. Rather, the objective is to play a set of holes in the least number of strokes. The total number of strokes is used to determine the winner of the game, not the total number of points.</span></code>
<code class="western"><span style="background: rgb(255, 255, 0);">Question: Part of golf is trying to get a higher point total than others. Yes or No?</span></code>

<code class="western"><span style="background: rgb(255, 255, 0);">Knowledge: Golf is a precision club-and-ball sport in which competing players (or golfers) use many types of clubs to hit balls into a series of holes on a course using the fewest number of strokes. The goal is to complete the course with the lowest score, which is calculated by adding up the total number of strokes taken on each hole. The player with the lowest score wins the game.</span></code>

<code class="western"><span style="background: rgb(255, 255, 0);">Explain and Answer:</span></code></pre>

<p><em><span style="background: rgb(255, 255, 0);">Answer 2 (confidence is a lot lower):</span></em></p>

<pre class="western" style="margin-left: 1.25cm; margin-bottom: 0.5cm">
<code class="western"><span style="background: rgb(255, 255, 0);">Yes, part of golf is trying to get a higher point total than others. Each player tries to complete the course with the lowest score, which is calculated by adding up the total number of strokes taken on each hole. The player with the lowest score wins the game.</span></code></pre>

<p align="justify"><span style="background: rgb(255, 255, 0);">Some really interesting things happened with this example. In the first answer, the model was very confident but in the second not so much. I simplified the process for demonstration purposes but there are a few more details to consider when arriving at the final answer. Check out the paper for more.</span></p>

<p align="justify">Dịch: Lê Trung Nghĩa</p>

<p align="justify">letrungnghia.foss@gmail.com</p>
&nbsp;
		</div>
				<div id="author">
						<p>
				<strong>Tác giả:</strong>
				<a href="https://letrungnghia.mangvn.org/author/Nghia-Le-Trung/">Nghĩa Lê Trung</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://letrungnghia.mangvn.org/savefile/Education/huong-dan-ky-thuat-loi-nhac-ky-thuat-viet-loi-nhac-loi-nhac-kien-thuc-duoc-tao-7796.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 kiến thức được tạo">https://letrungnghia.mangvn.org/savefile/Education/huong-dan-ky-thuat-loi-nhac-ky-thuat-viet-loi-nhac-loi-nhac-kien-thuc-duoc-tao-7796.html</a>

		</div>
		<div class="clear"></div>
		<div class="copyright">
			&copy; Blog FOSS by Lê Trung Nghĩa
		</div>
		<div id="contact">
			<a href="mailto:webmaster@vinades.vn">webmaster@vinades.vn</a>
		</div>
	</div>
</div>
        <div id="timeoutsess" class="chromeframe">
            Bạn đã không sử dụng Site, <a onclick="timeoutsesscancel();" href="https://letrungnghia.mangvn.org/#">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>
<div id="run_cronjobs" style="visibility:hidden;display:none;"><img alt="cron" src="/index.php?second=cronjobs&amp;p=z0tZ6Xw0" width="1" height="1" /></div>
<script src="https://letrungnghia.mangvn.org/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=7,nv_my_abbr="+07",nv_cookie_prefix="nv4c_Cgoz2",nv_check_pass_mstime=1738000,nv_area_admin=0,nv_safemode=0,theme_responsive=0,nv_recaptcha_ver=2,nv_recaptcha_sitekey="6LcNwC8UAAAAAMm8ZTYNygweLUQtOU0IapbDRk69",nv_recaptcha_type="image",XSSsanitize=1;</script>
<script src="https://letrungnghia.mangvn.org/assets/js/language/vi.js"></script>
<script src="https://letrungnghia.mangvn.org/assets/js/DOMPurify/purify3.js"></script>
<script src="https://letrungnghia.mangvn.org/assets/js/global.js"></script>
<script src="https://letrungnghia.mangvn.org/assets/js/site.js"></script>
<script src="https://letrungnghia.mangvn.org/themes/default/js/news.js"></script>
<script src="https://letrungnghia.mangvn.org/themes/default/js/main.js"></script>
<script src="https://letrungnghia.mangvn.org/themes/default/js/custom.js"></script>
<script type="application/ld+json">
        {
            "@context": "https://schema.org",
            "@type": "Organization",
            "url": "https://letrungnghia.mangvn.org",
            "logo": "https://letrungnghia.mangvn.org/uploads/letrungnghia/le-trung-nghia.png"
        }
        </script>
<script src="https://letrungnghia.mangvn.org/themes/default/js/bootstrap.min.js"></script>
</body>
</html>