{"id":55917,"date":"2025-02-22T08:18:50","date_gmt":"2025-02-22T00:18:50","guid":{"rendered":"https:\/\/fwq.ai\/blog\/55917\/"},"modified":"2025-02-22T08:18:50","modified_gmt":"2025-02-22T00:18:50","slug":"%e5%a4%a7%e8%af%ad%e8%a8%80%e6%a8%a1%e5%9e%8b%e6%8f%90%e7%a4%ba%e8%af%8d%e4%bc%98%e5%8c%96%e5%b7%a5%e5%85%b7-2","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/55917\/","title":{"rendered":"\u5927\u8bed\u8a00\u6a21\u578b\u63d0\u793a\u8bcd\u4f18\u5316\u5de5\u5177"},"content":{"rendered":"<blockquote>\n<p>\u4f18\u5316\u4f60\u7684\u63d0\u793a\u8bcd\uff0c\u5c31\u50cfPromptPerfect\u4e00\u6837\uff0c\u53d1\u6398\u5927\u578b\u8bed\u8a00\u6a21\u578b\u7684\u6f5c\u529b\uff0c\u83b7\u5f97\u66f4\u7cbe\u786e\u3001\u66f4\u76f8\u5173\u7684\u56de\u5e94\u3002<\/p>\n<p><strong>\u4e07\u80fd\u63d0\u793a\u8bcd<\/strong>: \u63d0\u4f9b\u4e00\u4e2a\u5f3a\u5927\u7684\u6a21\u677f\uff0c\u5e2e\u52a9\u4f60\u521b\u5efa\u51c6\u786e\u3001\u6709\u6548\u7684\u63d0\u793a\u8bcd\uff0c\u4ee5\u5f15\u5bfc\u6a21\u578b\u4ea7\u751f\u9ad8\u8d28\u91cf\u7684\u56de\u5e94\u3002<\/p>\n<p> <\/p>\n<p>&nbsp;<\/p>\n<p>\u4f18\u5316prompt\u7684\u5173\u952e\u601d\u8def\u662f\uff0c\u575a\u5b88\u7f16\u5199\u63d0\u793a\u65f6\u7684\u6839\u672c\u89c4\u5219\uff1a<\/p>\n<p>\u4e00\u4e2a\u63d0\u793a\u6307\u4ee4\u901a\u5e38\u5305\u62ec\u4ee5\u4e0b\u51e0\u4e2a\u8981\u7d20\uff1a<\/p>\n<p>&#8211; \u6307\u4ee4\uff1a\u4f60\u671f\u671bAI\u6a21\u578b\u6267\u884c\u7684\u660e\u786e\u4efb\u52a1\u6216\u8005\u5177\u4f53\u6307\u5bfc\u3002<br \/> &#8211; \u4e0a\u4e0b\u6587\u793a\u4f8b\uff1a\u6db5\u76d6\u4efb\u4f55\u5916\u90e8\u4fe1\u606f\u6216\u989d\u5916\u7684\u7ec6\u8282\uff0c\u8fd9\u4e9b\u53ef\u4ee5\u5e2e\u52a9AI\u66f4\u51c6\u786e\u5730\u4ea7\u751f\u54cd\u5e94\u3002<br \/> &#8211; \u8f93\u5165\u6570\u636e\uff1a\u7279\u5b9a\u7684\u67e5\u8be2\u6216\u8f93\u5165\uff0c\u4f60\u5e0c\u671b\u5bf9\u6b64\u5f97\u5230\u56de\u7b54\u3002<br \/> &#8211; \u8f93\u51fa\u6307\u793a\uff1a\u8bf4\u660e\u671f\u671b\u7684\u54cd\u5e94\u683c\u5f0f\u6216\u7c7b\u578b\u3002<\/p>\n<\/blockquote>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p><strong>\u4f7f\u7528\u65b9\u5f0f\uff1a<\/strong><\/p>\n<p>&#8211; \u5982\u679c\u662f\u76f4\u63a5\u8c03\u7528LLM\u7684API\uff0c\u53ef\u4ee5\u6309\u7167system\u3001user\u7684\u65b9\u5f0f\u8f93\u5165<br \/> &#8211; \u5982\u679c\u76f4\u63a5\u7528chatgpt\/gpt4\u8fdb\u884c\u63d0\u95ee\uff0c\u53ef\u4ee5\u5206\u4e24\u6b21\u8f93\u5165<\/p>\n<p>&nbsp;<\/p>\n<h3>\u793a\u4f8b1<\/h3>\n<p>&nbsp;<\/p>\n<pre>Before\uff1a\r\n\n```\r\nClassify the text into neutral, negative or positive. \r\n```\r\n\nAfter:\r\n\n```\r\nPrompt: &lt;Analyze the sentiment of the following text snippet and categorize it as either 'neutral', 'negative', or 'positive'. Please provide a brief justification for your classification to offer insight into your reasoning process.&gt;\r\n```<\/pre>\n<p>&nbsp;<\/p>\n<h3>\u793a\u4f8b2<\/h3>\n<p>&nbsp;<\/p>\n<pre>Before:\r\n\n```\r\nTable departments, columns = [DepartmentId, DepartmentName]\r\nTable students, columns = [DepartmentId, StudentId, StudentName]\r\nCreate a MySQL query for all students in the  Science Department\r\n```\r\n\nAfter:\r\n\n```\r\nWrite a MySQL query to retrieve all records of students who are part of the Computer Science Department. Assume there are two tables involved: one named 'departments' with columns 'DepartmentId' and 'DepartmentName', and another named 'students' with columns 'DepartmentId', 'StudentId', and 'StudentName'. The 'DepartmentId' column in the 'students' table references the 'DepartmentId' in the 'departments' table as a foreign key. The query should list all students where 'DepartmentName' is \"Computer Science\". Ensure that the query is syntactically correct and properly formatted for use in a MySQL database.\r\n```<\/pre>\n<p>&nbsp;<\/p>\n<h3>\u793a\u4f8b3<\/h3>\n<p>&nbsp;<\/p>\n<pre>Before:\r\n\n```\r\ntranslate the following English content into Chinese, \u5e76\u6da6\u8272\r\n```\r\n\nAfter:\r\n\n```\r\n&lt;Please translate the following English text into Chinese, ensuring not only accuracy in translation but also enhancing the prose to flow naturally and elegantly in Chinese. The translation should read as if originally written by a native speaker, with attention to cultural nuances and idiomatic expressions.&gt;\r\n```<\/pre>\n<p>&nbsp;<\/p>\n<h3>\u793a\u4f8b4<\/h3>\n<p>&nbsp;<\/p>\n<pre>Before:\r\n\n```\r\n\u5b8c\u5584\u53e5\u5b50\r\n```\r\n\nAfter:\r\n\n```\r\n\u8bf7\u6839\u636e\u4ee5\u4e0b\u7684\u4e2d\u6587\u53e5\u5b50\u5f00\u5934\uff0c\u5b8c\u5584\u6bcf\u4e2a\u53e5\u5b50\u3002\u4f60\u7684\u53e5\u5b50\u8865\u5168\u5e94\u5f53\u8bed\u6cd5\u6b63\u786e\uff0c\u4e0a\u4e0b\u6587\u6070\u5f53\uff0c\u5e76\u4e14\u5c55\u73b0\u51fa\u4e00\u5b9a\u7684\u521b\u9020\u6027\u6216\u6709\u8da3\u7684\u601d\u8003\uff0c\u4f7f\u53e5\u5b50\u5438\u5f15\u4eba\u3002\u8bf7\u786e\u4fdd\u9075\u5faa\u6bcf\u4e2a\u53e5\u5b50\u5f00\u5934\u63d0\u4f9b\u7684\u98ce\u683c\u6216\u8bed\u6c14\u6307\u793a\u3002\r\n```<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u4f18\u5316\u4f60\u7684\u63d0\u793a\u8bcd\uff0c\u5c31\u50cfPromptPerfect\u4e00\u6837\uff0c\u53d1\u6398\u5927\u578b\u8bed\u8a00\u6a21\u578b\u7684\u6f5c\u529b\uff0c\u83b7\u5f97\u66f4\u7cbe\u786e\u3001\u66f4\u76f8\u5173\u7684\u56de\u5e94\u3002 \u4e07\u80fd\u63d0\u793a\u8bcd: \u63d0\u4f9b\u4e00\u4e2a\u5f3a\u5927\u7684\u6a21\u677f\uff0c\u5e2e\u52a9\u4f60\u521b\u5efa\u51c6\u786e\u3001\u6709\u6548\u7684\u63d0\u793a\u8bcd\uff0c\u4ee5\u5f15\u5bfc\u6a21\u578b\u4ea7\u751f\u9ad8\u8d28\u91cf\u7684\u56de\u5e94\u3002 &nbsp; \u4f18\u5316prompt\u7684\u5173\u952e\u601d\u8def\u662f\uff0c\u575a\u5b88\u7f16\u5199\u63d0\u793a\u65f6\u7684\u6839\u672c\u89c4\u5219\uff1a \u4e00\u4e2a\u63d0\u793a\u6307\u4ee4\u901a\u5e38\u5305\u62ec\u4ee5\u4e0b\u51e0\u4e2a\u8981\u7d20\uff1a &#8211; \u6307\u4ee4\uff1a\u4f60\u671f\u671bAI\u6a21\u578b\u6267\u884c\u7684\u660e\u786e\u4efb\u52a1\u6216\u8005\u5177\u4f53\u6307\u5bfc\u3002 &#8211; \u4e0a\u4e0b\u6587\u793a\u4f8b\uff1a\u6db5\u76d6\u4efb\u4f55\u5916\u90e8\u4fe1\u606f\u6216\u989d\u5916\u7684\u7ec6\u8282\uff0c\u8fd9\u4e9b\u53ef\u4ee5\u5e2e\u52a9AI\u66f4\u51c6\u786e\u5730\u4ea7\u751f\u54cd\u5e94\u3002 &#8211; \u8f93\u5165\u6570\u636e\uff1a\u7279\u5b9a\u7684\u67e5\u8be2\u6216\u8f93\u5165\uff0c\u4f60\u5e0c\u671b\u5bf9\u6b64\u5f97\u5230\u56de\u7b54\u3002 &#8211; \u8f93\u51fa\u6307\u793a\uff1a\u8bf4\u660e\u671f\u671b\u7684\u54cd\u5e94\u683c\u5f0f\u6216\u7c7b\u578b\u3002 &nbsp; &nbsp; \u4f7f\u7528\u65b9\u5f0f\uff1a &#8211; \u5982\u679c\u662f\u76f4\u63a5\u8c03\u7528LLM\u7684API\uff0c\u53ef\u4ee5\u6309\u7167system\u3001user\u7684\u65b9\u5f0f\u8f93\u5165 &#8211; \u5982\u679c\u76f4\u63a5\u7528chatgpt\/gpt4\u8fdb\u884c\u63d0\u95ee\uff0c\u53ef\u4ee5\u5206\u4e24\u6b21\u8f93\u5165 &nbsp; \u793a\u4f8b1 &nbsp; Before\uff1a &#8220;` Classify the text into neutral, negative or positive. &#8220;` After: &#8220;` Prompt: &lt;Analyze the sentiment of the following text snippet and categorize it as either &#8216;neutral&#8217;, &#8216;negative&#8217;, or &#8216;positive&#8217;. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13],"tags":[],"class_list":["post-55917","post","type-post","status-publish","format-standard","hentry","category-ai"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/55917","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=55917"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/55917\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=55917"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=55917"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=55917"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}