{"id":2070,"date":"2023-12-19T09:46:31","date_gmt":"2023-12-19T01:46:31","guid":{"rendered":"https:\/\/www.1ai.net\/?p=2070"},"modified":"2024-06-27T09:14:17","modified_gmt":"2024-06-27T01:14:17","slug":"openai%e5%ae%98%e6%96%b9%e7%9a%84prompt%e5%b7%a5%e7%a8%8b%e6%8c%87%e5%8d%97%ef%bc%9a%e4%bd%a0%e5%8f%af%e4%bb%a5%e8%bf%99%e4%b9%88%e7%8e%a9chatgpt","status":"publish","type":"post","link":"https:\/\/www.1ai.net\/en\/2070.html","title":{"rendered":"OpenAI's official Prompt Engineering Guide: You can play with ChatGPT like this"},"content":{"rendered":"<p>\u968f\u7740\u00a0<a href=\"https:\/\/www.1ai.net\/en\/tag\/chatgpt\" title=\"\u3010\u67e5\u770b\u542b\u6709[ChatGPT]\u6807\u7b7e\u7684\u6587\u7ae0\u3011\" target=\"_blank\" rel=\"noopener\">ChatGPT<\/a>\u3001GPT-4\u7b49\u5927\u578b\u8bed\u8a00\u6a21\u578b\uff08<a href=\"https:\/\/www.1ai.net\/en\/tag\/llm\" title=\"\u3010\u67e5\u770b\u542b\u6709[LLM]\u6807\u7b7e\u7684\u6587\u7ae0\u3011\" target=\"_blank\" rel=\"noopener\">LLM<\/a>\uff09\u7684\u51fa\u73b0\uff0c\u63d0\u793a\u5de5\u7a0b(<a href=\"https:\/\/www.1ai.net\/en\/tag\/prompt\" title=\"\u3010\u67e5\u770b\u542b\u6709[Prompt]\u6807\u7b7e\u7684\u6587\u7ae0\u3011\" target=\"_blank\" rel=\"noopener\">Prompt<\/a>\u00a0Engineering)\u53d8\u5f97\u8d8a\u6765\u8d8a\u91cd\u8981\u3002\u5f88\u591a\u4eba\u5c06 prompt \u89c6\u4e3a LLM \u7684\u5492\u8bed\uff0c\u5176\u597d\u574f\u76f4\u63a5\u5f71\u54cd\u6a21\u578b\u8f93\u51fa\u7684\u7ed3\u679c\u3002<\/p>\n<p>\u5982\u4f55\u5199\u597d prompt\uff0c\u5df2\u7ecf\u6210\u4e3a LLM \u7814\u7a76\u7684\u4e00\u9879\u5fc5\u4fee\u8bfe\u3002<\/p>\n<p>\u5f15\u9886\u5927\u6a21\u578b\u53d1\u5c55\u6f6e\u6d41\u7684\u00a0<a href=\"https:\/\/www.1ai.net\/en\/tag\/openai\" title=\"\u3010\u67e5\u770b\u542b\u6709[OpenAI]\u6807\u7b7e\u7684\u6587\u7ae0\u3011\" target=\"_blank\" rel=\"noopener\">OpenAI<\/a>\uff0c\u8fd1\u65e5\u5b98\u65b9\u53d1\u5e03\u4e86\u4e00\u4efd\u63d0\u793a\u5de5\u7a0b\u6307\u5357\uff0c\u8be5\u6307\u5357\u5206\u4eab\u4e86\u5982\u4f55\u501f\u52a9\u4e00\u4e9b\u7b56\u7565\u8ba9 GPT-4\u7b49 LLM \u8f93\u51fa\u66f4\u597d\u7684\u7ed3\u679c\u3002OpenAI \u8868\u793a\u8fd9\u4e9b\u65b9\u6cd5\u6709\u65f6\u53ef\u4ee5\u7ec4\u5408\u4f7f\u7528\u4ee5\u83b7\u5f97\u66f4\u597d\u7684\u6548\u679c\u3002<\/p>\n<p class=\"article-content__img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2071\" title=\"2023121908533764870\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2023\/12\/2023121908533764870.jpg\" alt=\"2023121908533764870\" width=\"1000\" height=\"222\" \/><\/p>\n<p>\u6307\u5357\u5730\u5740:https:\/\/platform.openai.com\/docs\/guides\/prompt-engineering<\/p>\n<p><strong>\u516d\u4e2a\u7b56\u7565\uff0c\u83b7\u5f97\u66f4\u597d\u7684\u7ed3\u679c<\/strong><\/p>\n<p><strong>\u7b56\u7565\u4e00:\u5199\u6e05\u695a\u6307\u4ee4<\/strong><\/p>\n<p>\u9996\u5148\u7528\u6237\u8981\u5199\u6e05\u695a\u6307\u4ee4\uff0c\u56e0\u4e3a\u6a21\u578b\u65e0\u6cd5\u8bfb\u61c2\u4f60\u7684\u5927\u8111\u5728\u60f3\u4ec0\u4e48\u3002\u4e3e\u4f8b\u6765\u8bf4\uff0c\u5982\u679c\u4f60\u5e0c\u671b\u6a21\u578b\u7684\u8f93\u51fa\u4e0d\u8981\u592a\u7b80\u5355\uff0c\u90a3\u5c31\u628a\u6307\u4ee4\u5199\u6210\u300c\u8981\u6c42\u4e13\u5bb6\u7ea7\u522b\u7684\u5199\u4f5c\u300d;\u53c8\u6bd4\u5982\u4f60\u4e0d\u559c\u6b22\u73b0\u5728\u7684\u6587\u672c\u98ce\u683c\uff0c\u5c31\u6362\u4e2a\u6307\u4ee4\u660e\u786e\u4e00\u4e0b\u3002\u6a21\u578b\u731c\u6d4b\u4f60\u60f3\u8981\u4ec0\u4e48\u7684\u6b21\u6570\u8d8a\u5c11\uff0c\u4f60\u5f97\u5230\u6ee1\u610f\u7ed3\u679c\u7684\u53ef\u80fd\u6027\u5c31\u8d8a\u5927\u3002<\/p>\n<p>\u53ea\u8981\u4f60\u505a\u5230\u4e0b\u9762\u51e0\u70b9\uff0c\u95ee\u9898\u4e0d\u4f1a\u592a\u5927:<\/p>\n<p>\u9996\u5148\u662f<strong>\u63d0\u793a\u4e2d\u5c3d\u91cf\u5305\u542b\u66f4\u8be6\u7ec6\u7684\u67e5\u8be2\u4fe1\u606f<\/strong>\uff0c\u4ece\u800c\u83b7\u5f97\u66f4\u76f8\u5173\u7684\u7b54\u6848\uff0c\u5c31\u50cf\u4e0b\u9762\u6240\u5c55\u793a\u7684\uff0c\u540c\u6837\u662f\u603b\u7ed3\u4f1a\u8bae\u8bb0\u5f55\uff0c\u91c7\u7528\u8fd9\u6837\u7684\u63d0\u793a\u300c\u7528\u4e00\u4e2a\u6bb5\u843d\u603b\u7ed3\u4f1a\u8bae\u8bb0\u5f55\u3002\u7136\u540e\u5199\u4e0b\u6f14\u8bb2\u8005\u7684 Markdown \u5217\u8868\u4ee5\u53ca\u6bcf\u4e2a\u8981\u70b9\u3002\u6700\u540e\uff0c\u5217\u51fa\u53d1\u8a00\u4eba\u5efa\u8bae\u7684\u540e\u7eed\u6b65\u9aa4\u6216\u884c\u52a8\u9879\u76ee\uff08\u5982\u679c\u6709\uff09\u3002\u300d\u7ed3\u679c\u4f1a\u6bd4\u8f83\u597d\u3002<\/p>\n<p class=\"article-content__img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2072\" title=\"2023121908533764871\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2023\/12\/2023121908533764871.jpg\" alt=\"2023121908533764871\" width=\"1000\" height=\"444\" \/><\/p>\n<p>\u5176\u6b21\u662f<strong>\u7528\u6237\u53ef\u4ee5\u63d0\u4f9b\u793a\u4f8b<\/strong>\u3002\u4f8b\u5982\uff0c\u5f53\u4f60\u60f3\u8ba9\u6a21\u578b\u6a21\u4eff\u4e00\u79cd\u96be\u4ee5\u660e\u786e\u63cf\u8ff0\u7684\u56de\u7b54\u98ce\u683c\u65f6\uff0c\u7528\u6237\u53ef\u4ee5\u63d0\u4f9b\u5c11\u6570\u793a\u4f8b\u3002<\/p>\n<p class=\"article-content__img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2073\" title=\"2023121908533764872\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2023\/12\/2023121908533764872.jpg\" alt=\"2023121908533764872\" width=\"1000\" height=\"336\" \/><\/p>\n<p>\u7b2c\u4e09\u70b9\u662f<strong>\u6307\u5b9a\u6a21\u578b\u5b8c\u6210\u4efb\u52a1\u65f6\u6240\u9700\u7684\u6b65\u9aa4<\/strong>\u3002\u5bf9\u4e8e\u6709\u4e9b\u4efb\u52a1\uff0c<span class=\"spamTxt\">\u6700\u597d<\/span>\u6307\u5b9a\u6b65\u9aa4\u5982\u6b65\u9aa41\u30012\uff0c\u663e\u5f0f\u5730\u5199\u51fa\u8fd9\u4e9b\u6b65\u9aa4\u53ef\u4ee5\u4f7f\u6a21\u578b\u66f4\u5bb9\u6613\u5730\u9075\u5faa\u7528\u6237\u610f\u613f\u3002<\/p>\n<p class=\"article-content__img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2074\" title=\"2023121908533764873\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2023\/12\/2023121908533764873.jpg\" alt=\"2023121908533764873\" width=\"1000\" height=\"372\" \/><\/p>\n<p>\u7b2c\u56db\u70b9\u662f<strong>\u6307\u5b9a\u6a21\u578b\u8f93\u51fa\u7684\u957f\u5ea6<\/strong>\u3002\u7528\u6237\u53ef\u4ee5\u8981\u6c42\u6a21\u578b\u751f\u6210\u7ed9\u5b9a\u76ee\u6807\u957f\u5ea6\u7684\u8f93\u51fa\uff0c\u76ee\u6807\u8f93\u51fa\u957f\u5ea6\u53ef\u4ee5\u6839\u636e\u5355\u8bcd\u3001\u53e5\u5b50\u3001\u6bb5\u843d\u7b49\u6765\u6307\u5b9a\u3002<\/p>\n<p class=\"article-content__img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2075\" title=\"2023121908533764884\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2023\/12\/2023121908533764884.jpg\" alt=\"2023121908533764884\" width=\"1000\" height=\"633\" \/><\/p>\n<p>\u7b2c\u4e94\u70b9\u662f<strong>\u4f7f\u7528\u5206\u9694\u7b26\u6765\u660e\u786e\u5212\u5206\u63d0\u793a\u7684\u4e0d\u540c\u90e8<\/strong>\u5206\u3002&#8221;&#8221;&#8221;\u3001XML \u6807\u7b7e\u3001\u5c0f\u8282\u6807\u9898\u7b49\u5206\u9694\u7b26\u53ef\u4ee5\u5e2e\u52a9\u5212\u5206\u8981\u533a\u522b\u5bf9\u5f85\u7684\u6587\u672c\u90e8\u5206\u3002<\/p>\n<p class=\"article-content__img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2076\" title=\"2023121908533764885\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2023\/12\/2023121908533764885.jpg\" alt=\"2023121908533764885\" width=\"1000\" height=\"190\" \/><\/p>\n<p>\u7b2c\u516d\u70b9\u662f\u8ba9\u6a21\u578b\u626e\u6f14\u4e0d\u540c\u7684\u89d2\u8272\uff0c\u4ee5\u63a7\u5236\u5176\u751f\u6210\u7684\u5185\u5bb9\u3002<\/p>\n<p class=\"article-content__img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2077\" title=\"2023121908533764886\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2023\/12\/2023121908533764886.jpg\" alt=\"2023121908533764886\" width=\"1000\" height=\"237\" \/><\/p>\n<p><strong>\u7b56\u75652\u63d0\u4f9b\u53c2\u8003\u6587\u672c<\/strong><\/p>\n<p>\u8bed\u8a00\u6a21\u578b\u4f1a\u65f6\u4e0d\u65f6\u7684\u4ea7\u751f\u5e7b\u89c9\uff0c\u81ea\u5df1\u53d1\u660e\u7b54\u6848\uff0c\u4e3a\u8fd9\u4e9b\u6a21\u578b\u63d0\u4f9b\u53c2\u8003\u6587\u672c\u53ef\u4ee5\u5e2e\u52a9\u51cf\u5c11\u9519\u8bef\u8f93\u51fa\u3002\u9700\u8981\u505a\u5230\u4e24\u70b9:<\/p>\n<p>\u9996\u5148\u662f\u6307\u793a\u6a21\u578b\u4f7f\u7528\u53c2\u8003\u6587\u672c\u56de\u7b54\u95ee\u9898\u3002\u5982\u679c\u6211\u4eec\u53ef\u4ee5\u4e3a\u6a21\u578b\u63d0\u4f9b\u4e0e\u5f53\u524d\u67e5\u8be2\u76f8\u5173\u7684\u53ef\u4fe1\u4fe1\u606f\uff0c\u90a3\u4e48\u6211\u4eec\u53ef\u4ee5\u6307\u793a\u6a21\u578b\u4f7f\u7528\u63d0\u4f9b\u7684\u4fe1\u606f\u6765\u7ec4\u6210\u5176\u7b54\u6848\u3002\u6bd4\u5982:\u4f7f\u7528\u7531\u4e09\u91cd\u5f15\u53f7\u5f15\u8d77\u6765\u7684\u6587\u672c\u6765\u56de\u7b54\u95ee\u9898\u3002\u5982\u679c\u5728\u6587\u7ae0\u4e2d\u627e\u4e0d\u5230\u7b54\u6848\uff0c\u5c31\u5199\u300c\u6211\u627e\u4e0d\u5230\u7b54\u6848\u300d\u3002<\/p>\n<p class=\"article-content__img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2078\" title=\"2023121908533764887\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2023\/12\/2023121908533764887.jpg\" alt=\"2023121908533764887\" width=\"1000\" height=\"269\" \/><\/p>\n<p>\u5176\u6b21\u662f\u6307\u793a\u6a21\u578b\u4ece\u53c2\u8003\u6587\u672c\u4e2d\u5f15\u7528\u7b54\u6848\u3002<\/p>\n<p class=\"article-content__img\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2079\" title=\"2023121908533764888\" src=\"https:\/\/www.1ai.net\/wp-content\/uploads\/2023\/12\/2023121908533764888.jpg\" alt=\"2023121908533764888\" width=\"1000\" height=\"394\" \/><\/p>\n<p><strong>\u7b56\u75653:\u5c06\u590d\u6742\u7684\u4efb\u52a1\u62c6\u5206\u4e3a\u66f4\u7b80\u5355\u7684\u5b50\u4efb\u52a1<\/strong><\/p>\n<p>\u6b63\u5982\u8f6f\u4ef6\u5de5\u7a0b\u4e2d\u5c06\u590d\u6742\u7cfb\u7edf\u5206\u89e3\u4e3a\u4e00\u7ec4\u6a21\u5757\u5316\u7ec4\u4ef6\u4e00\u6837\uff0c\u63d0\u4ea4\u7ed9\u8bed\u8a00\u6a21\u578b\u7684\u4efb\u52a1\u4e5f\u662f\u5982\u6b64\u3002\u590d\u6742\u7684\u4efb\u52a1\u5f80\u5f80\u6bd4\u7b80\u5355\u7684\u4efb\u52a1\u5177\u6709\u66f4\u9ad8\u7684\u9519\u8bef\u7387\uff0c\u6b64\u5916\uff0c\u590d\u6742\u7684\u4efb\u52a1\u901a\u5e38\u53ef\u4ee5\u88ab\u91cd\u65b0\u5b9a\u4e49\u4e3a\u66f4\u7b80\u5355\u4efb\u52a1\u7684\u5de5\u4f5c\u6d41\u7a0b\u3002\u5305\u62ec\u4e09\u70b9:<\/p>\n<ul>\n<li>\u4f7f\u7528\u610f\u56fe\u5206\u7c7b\u6765\u8bc6\u522b\u4e0e\u7528\u6237\u67e5\u8be2\u6700\u76f8\u5173\u7684\u6307\u4ee4;<\/li>\n<li>\u5bf9\u4e8e\u9700\u8981\u5f88\u957f\u5bf9\u8bdd\u7684\u5bf9\u8bdd\u5e94\u7528\uff0c\u603b\u7ed3\u6216\u8fc7\u6ee4\u4ee5\u524d\u7684\u5bf9\u8bdd;<\/li>\n<li>\u5206\u6bb5\u603b\u7ed3\u957f\u6587\u6863\u5e76\u9012\u5f52\u7684\u6784\u5efa\u5b8c\u6574\u6458\u8981\u3002<\/li>\n<\/ul>\n<p>\u7531\u4e8e\u6a21\u578b\u5177\u6709\u56fa\u5b9a\u7684\u4e0a\u4e0b\u6587\u957f\u5ea6\uff0c\u56e0\u6b64\u8981\u603b\u7ed3\u4e00\u4e2a\u5f88\u957f\u7684\u6587\u6863\uff08\u4f8b\u5982\u4e00\u672c\u4e66\uff09\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528\u4e00\u7cfb\u5217\u67e5\u8be2\u6765\u603b\u7ed3\u6587\u6863\u7684\u6bcf\u4e2a\u90e8\u5206\u3002\u7ae0\u8282\u6458\u8981\u53ef\u4ee5\u8fde\u63a5\u8d77\u6765\u5e76\u8fdb\u884c\u603b\u7ed3\uff0c\u751f\u6210\u6458\u8981\u7684\u6458\u8981\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u53ef\u4ee5\u9012\u5f52\u5730\u8fdb\u884c\uff0c\u76f4\u5230\u603b\u7ed3\u6574\u4e2a\u6587\u6863\u3002\u5982\u679c\u6709\u5fc5\u8981\u4f7f\u7528\u524d\u9762\u90e8\u5206\u7684\u4fe1\u606f\u6765\u7406\u89e3\u540e\u9762\u7684\u90e8\u5206\uff0c\u90a3\u4e48\u53e6\u4e00\u4e2a\u6709\u7528\u7684\u6280\u5de7\u662f\u5728\u6587\u672c(\u5982\u4e66)\u4e2d\u4efb\u4f55\u7ed9\u5b9a\u70b9\u4e4b\u524d\u5305\u542b\u6587\u672c\u7684\u8fd0\u884c\u6458\u8981\uff0c\u540c\u65f6\u5728\u8be5\u70b9\u603b\u7ed3\u5185\u5bb9\u3002OpenAI \u5728\u4e4b\u524d\u7684\u7814\u7a76\u4e2d\u5df2\u7ecf\u4f7f\u7528 GPT-3\u7684\u53d8\u4f53\u7814\u7a76\u4e86\u8fd9\u79cd\u8fc7\u7a0b\u7684\u6709\u6548\u6027\u3002<\/p>\n<p><strong>\u7b56\u75654:\u7ed9\u6a21\u578b\u65f6\u95f4\u53bb\u601d\u8003<\/strong><\/p>\n<p>\u5bf9\u4e8e\u4eba\u7c7b\u6765\u8bf4\uff0c\u8981\u6c42\u7ed9\u51fa17X28\u7684\u7ed3\u679c\uff0c\u4f60\u4e0d\u4f1a\u7acb\u9a6c\u7ed9\u51fa\u7b54\u6848\uff0c\u4f46\u968f\u7740\u65f6\u95f4\u7684\u63a8\u79fb\u4ecd\u7136\u53ef\u4ee5\u7b97\u51fa\u6765\u3002\u540c\u6837\uff0c\u5982\u679c\u6a21\u578b\u7acb\u5373\u56de\u7b54\u800c\u4e0d\u662f\u82b1\u65f6\u95f4\u627e\u51fa\u7b54\u6848\uff0c\u53ef\u80fd\u4f1a\u72af\u66f4\u591a\u7684\u63a8\u7406\u9519\u8bef\u3002\u5728\u7ed9\u51fa\u7b54\u6848\u4e4b\u524d\u91c7\u7528\u601d\u7ef4\u94fe\u53ef\u4ee5\u5e2e\u52a9\u6a21\u578b\u66f4\u53ef\u9760\u5730\u63a8\u7406\u51fa\u6b63\u786e\u7b54\u6848\u3002\u9700\u8981\u505a\u5230\u4e09\u70b9:<\/p>\n<p>\u9996\u5148\u662f\u6307\u793a\u6a21\u578b\u5728\u6025\u4e8e\u5f97\u51fa\u7ed3\u8bba\u4e4b\u524d\u627e\u51fa\u81ea\u5df1\u7684\u89e3\u51b3\u65b9\u6848\u3002<\/p>\n<p>\u5176\u6b21\u662f\u4f7f\u7528 inner monologue \u6216\u4e00\u7cfb\u5217\u67e5\u8be2\u6765\u9690\u85cf\u6a21\u578b\u7684\u63a8\u7406\u8fc7\u7a0b\u3002\u524d\u9762\u7684\u7b56\u7565\u8868\u660e\uff0c\u6a21\u578b\u6709\u65f6\u5728\u56de\u7b54\u7279\u5b9a\u95ee\u9898\u4e4b\u524d\u8be6\u7ec6\u63a8\u7406\u95ee\u9898\u5f88\u91cd\u8981\u3002\u5bf9\u4e8e\u67d0\u4e9b\u5e94\u7528\u7a0b\u5e8f\uff0c\u6a21\u578b\u7528\u4e8e\u5f97\u51fa\u6700\u7ec8\u7b54\u6848\u7684\u63a8\u7406\u8fc7\u7a0b\u4e0d\u9002\u5408\u4e0e\u7528\u6237\u5171\u4eab\u3002\u4f8b\u5982\uff0c\u5728\u8f85\u5bfc\u5e94\u7528\u7a0b\u5e8f\u4e2d\uff0c\u6211\u4eec\u53ef\u80fd\u5e0c\u671b\u9f13\u52b1\u5b66\u751f\u5f97\u51fa\u81ea\u5df1\u7684\u7b54\u6848\uff0c\u4f46\u6a21\u578b\u5173\u4e8e\u5b66\u751f\u89e3\u51b3\u65b9\u6848\u7684\u63a8\u7406\u8fc7\u7a0b\u53ef\u80fd\u4f1a\u5411\u5b66\u751f\u63ed\u793a\u7b54\u6848\u3002<\/p>\n<p>inner monologue \u662f\u4e00\u79cd\u53ef\u4ee5\u7528\u6765\u7f13\u89e3\u8fd9\u79cd\u60c5\u51b5\u7684\u7b56\u7565\u3002inner monologue \u7684\u601d\u8def\u662f\u6307\u793a\u6a21\u578b\u5c06\u539f\u672c\u5bf9\u7528\u6237\u9690\u85cf\u7684\u90e8\u5206\u8f93\u51fa\u653e\u5165\u7ed3\u6784\u5316\u683c\u5f0f\u4e2d\uff0c\u4ee5\u4fbf\u4e8e\u89e3\u6790\u5b83\u4eec\u3002\u7136\u540e\uff0c\u5728\u5411\u7528\u6237\u5448\u73b0\u8f93\u51fa\u4e4b\u524d\uff0c\u5c06\u89e3\u6790\u8f93\u51fa\u5e76\u4e14\u4ec5\u4f7f\u90e8\u5206\u8f93\u51fa\u53ef\u89c1\u3002<\/p>\n<p>\u6700\u540e\u662f\u8be2\u95ee\u6a21\u578b\u5728\u4e4b\u524d\u7684\u8fc7\u7a0b\u4e2d\u662f\u5426\u9057\u6f0f\u4e86\u4efb\u4f55\u5185\u5bb9\u3002<\/p>\n<p><strong>\u7b56\u75655:\u4f7f\u7528\u5916\u90e8\u5de5\u5177<\/strong><\/p>\n<p>\u901a\u8fc7\u5411\u6a21\u578b\u63d0\u4f9b\u5176\u4ed6\u5de5\u5177\u7684\u8f93\u51fa\u6765\u5f25\u8865\u6a21\u578b\u7684\u5f31\u70b9\u3002\u4f8b\u5982\uff0c\u6587\u672c\u68c0\u7d22\u7cfb\u7edf\uff08\u6709\u65f6\u79f0\u4e3a RAG \u6216\u68c0\u7d22\u589e\u5f3a\u751f\u6210\uff09\u53ef\u4ee5\u544a\u8bc9\u6a21\u578b\u76f8\u5173\u6587\u6863\u3002OpenAI \u7684 Code Interpreter \u53ef\u4ee5\u5e2e\u52a9\u6a21\u578b\u8fdb\u884c\u6570\u5b66\u8fd0\u7b97\u5e76\u8fd0\u884c\u4ee3\u7801\u3002\u5982\u679c\u4e00\u9879\u4efb\u52a1\u53ef\u4ee5\u901a\u8fc7\u5de5\u5177\u800c\u4e0d\u662f\u8bed\u8a00\u6a21\u578b\u66f4\u53ef\u9760\u6216\u66f4\u6709\u6548\u5730\u5b8c\u6210\uff0c\u6216\u8bb8\u53ef\u4ee5\u8003\u8651\u5229\u7528\u4e24\u8005\u3002<\/p>\n<ul>\n<li>\u9996\u5148\u4f7f\u7528\u57fa\u4e8e\u5d4c\u5165\u7684\u641c\u7d22\u5b9e\u73b0\u9ad8\u6548\u7684\u77e5\u8bc6\u68c0\u7d22;<\/li>\n<li>\u8c03\u7528\u5916\u90e8 API;<\/li>\n<li>\u8d4b\u4e88\u6a21\u578b\u8bbf\u95ee\u7279\u5b9a\u529f\u80fd\u7684\u6743\u9650\u3002<\/li>\n<\/ul>\n<p><strong>\u7b56\u75656:\u7cfb\u7edf\u7684\u6d4b\u8bd5\u53d8\u5316<\/strong><\/p>\n<p>\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u5bf9\u63d0\u793a\u7684\u4fee\u6539\u4f1a\u5b9e\u73b0\u66f4\u597d\u7684\u6027\u80fd\uff0c\u4f46\u4f1a\u5bfc\u81f4\u5728\u4e00\u7ec4\u66f4\u5177\u4ee3\u8868\u6027\u7684\u793a\u4f8b\u4e0a\u6574\u4f53\u6027\u80fd\u53d8\u5dee\u3002\u56e0\u6b64\uff0c\u4e3a\u4e86\u786e\u4fdd\u66f4\u6539\u5bf9\u6700\u7ec8\u6027\u80fd\u4ea7\u751f\u79ef\u6781\u5f71\u54cd\uff0c\u53ef\u80fd\u6709\u5fc5\u8981\u5b9a\u4e49\u4e00\u4e2a\u5168\u9762\u7684\u6d4b\u8bd5\u5957\u4ef6\uff08\u4e5f\u79f0\u4e3a\u8bc4\u4f30\uff09\uff0c\u4f8b\u5982\u4f7f\u7528\u7cfb\u7edf\u6d88\u606f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>With the emergence of large-scale language models (LLMs) such as ChatGPT and GPT-4, prompt engineering (Prompt Engineering) has become increasingly important. Many people regard prompt as the mantra of LLM, and its goodness or badness directly affects the output of the model. How to write a good prompt has become a mandatory course in LLM research. OpenAI, a leader in the development of large models, has recently released a prompt engineering guide, which shares how to make LLMs such as GPT-4 produce better results with the help of some strategies, and OpenAI says that these methods can sometimes be used in combination to get better results. The guide can be found at: https:\/\/platform.open<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[149,144],"tags":[177,473,190,192],"collection":[],"class_list":["post-2070","post","type-post","status-publish","format-standard","hentry","category-jiaocheng","category-baike","tag-chatgpt","tag-llm","tag-openai","tag-prompt"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/posts\/2070","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/comments?post=2070"}],"version-history":[{"count":0,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/posts\/2070\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/media?parent=2070"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/categories?post=2070"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/tags?post=2070"},{"taxonomy":"collection","embeddable":true,"href":"https:\/\/www.1ai.net\/en\/wp-json\/wp\/v2\/collection?post=2070"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}