{"id":1300,"date":"2024-05-02T01:40:51","date_gmt":"2024-05-02T01:40:51","guid":{"rendered":"https:\/\/www.nicekj.com\/?p=1300"},"modified":"2024-05-02T01:40:51","modified_gmt":"2024-05-02T01:40:51","slug":"chatgptzuijiashijianxiliedi2pian","status":"publish","type":"post","link":"https:\/\/www.nicekj.com\/chatgptzuijiashijianxiliedi2pian.html","title":{"rendered":"ChatGPT\u6700\u4f73\u5b9e\u8df5\u7cfb\u5217-\u7b2c2\u7bc7"},"content":{"rendered":"<h2 data-id=\"heading-0\">\u80cc\u666f<\/h2>\n<p>OpenAI\u5b98\u65b9\u8be6\u7ec6\u4ecb\u7ecd\u4e86ChatGPT\u4f7f\u7528\u7684\u6700\u4f73\u5b9e\u8df5\uff0c\u4e0d\u4ec5\u9002\u7528\u4e8e\u4f7f\u7528ChatGPT\u7f51\u7ad9\u8fdb\u884c\u76f4\u63a5\u5bf9\u8bdd\u7684\u7528\u6237\uff0c\u8fd8\u9002\u7528\u4e8e\u901a\u8fc7OpenAI API\u63a5\u5165\u7684\u5f00\u53d1\u8005\u3002<\/p>\n<p>\u638c\u63e1\u4e86\u8fd9\u4e9b\u6700\u4f73\u5b9e\u8df5\uff0c\u5c31\u80fd\u66f4\u597d\u5730\u5229\u7528GPT\u5927\u6a21\u578b\u3002<\/p>\n<p>\u672c\u6587\u662fChatGPT\u4f7f\u7528\u6700\u4f73\u5b9e\u8df5\u7cfb\u5217\u7b2c2\u7bc7 &#8211; \u63d0\u4f9b\u53c2\u8003\u4fe1\u606f(provide reference text)\u3002<\/p>\n<p>GPT\u53ef\u80fd\u4f1a\u81ea\u4fe1\u5730\u7f16\u9020\u865a\u5047\u7684\u7b54\u6848\uff0c\u5c24\u5176\u662f\u5728\u88ab\u8be2\u95ee\u6df1\u5965\u7684\u8bdd\u9898\u6216\u8005\u8981\u6c42\u63d0\u4f9b\u5f15\u7528\u5185\u5bb9\u6216\u8005URLs\u65f6\u3002<\/p>\n<p>\u5c31\u50cf\u505a\u7b14\u8bb0\u53ef\u4ee5\u5e2e\u52a9\u5b66\u751f\u5728\u8003\u8bd5\u4e2d\u5f97\u5230\u66f4\u597d\u7684\u6210\u7ee9\u4e00\u6837\uff0c\u4e3aGPT\u63d0\u4f9b\u53c2\u8003\u4fe1\u606f\u4e5f\u53ef\u4ee5\u5e2e\u52a9\u5927\u6a21\u578b\u751f\u6210\u66f4\u51c6\u786e\u7684\u56de\u7b54\uff0c\u51cf\u5c11\u634f\u9020\u7b54\u6848\u7684\u53ef\u80fd\u6027\u3002<\/p>\n<h2 data-id=\"heading-1\">\u7b56\u75651\uff1a\u5f15\u5bfc\u6a21\u578b\u6839\u636e\u5df2\u77e5\u4fe1\u606f\u6765\u56de\u7b54\u95ee\u9898<\/h2>\n<p>\u7528\u6237\u63d0\u95ee\u65f6\uff0c\u5982\u679c\u6211\u4eec\u53ef\u4ee5\u628a\u548c\u95ee\u9898\u76f8\u5173\u7684\u5df2\u77e5\u4e8b\u5b9e\u6216\u8005\u4fe1\u606f\u7ed9\u5230\u5927\u6a21\u578b\uff0c\u5c31\u53ef\u4ee5\u5f15\u5bfc\u6a21\u578b\u6839\u636e\u6211\u4eec\u63d0\u4f9b\u7684\u5df2\u77e5\u4fe1\u606f\u6765\u56de\u7b54\u95ee\u9898\uff0c\u51cf\u5c11\u5927\u6a21\u578b\u634f\u9020\u7b54\u6848\u7684\u53ef\u80fd\u6027\u3002<\/p>\n<p>\u4ee5\u4e0b\u662f\u6784\u9020Prompt\u7684\u793a\u4f8b\uff1a<\/p>\n<table>\n<thead>\n<tr>\n<th>SYSTEM<\/th>\n<th>Use the provided articles delimited by triple quotes to answer questions. If the answer cannot be found in the articles, write &#8220;I could not find an answer.&#8221;<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>USER<\/td>\n<td>&lt;insert articles, each delimited by triple quotes&gt;<br \/> Question:&lt;insert question here&gt;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u4e0d\u8fc7\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u7531\u4e8eGPT\u6a21\u578b\u6709\u4e0a\u4e0b\u6587\u957f\u5ea6(context length)\u7684\u9650\u5236\uff0c\u6211\u4eec\u9700\u8981\u7cbe\u51c6\u627e\u5230\u548c\u95ee\u9898\u76f8\u5173\u7684\u4fe1\u606f\u3002<\/p>\n<p>\u5411\u91cf\u5316(embedding)\u5c31\u53ef\u4ee5\u7528\u6765\u5b9e\u73b0\u9ad8\u6548\u7684\u4fe1\u606f\u68c0\u7d22\u3002<\/p>\n<p>\u53ef\u4ee5\u53c2\u8003<a href=\"https:\/\/link.juejin.cn?target=https%3A%2F%2Fplatform.openai.com%2Fdocs%2Fguides%2Fgpt-best-practices%2Ftactic-use-embeddings-based-search-to-implement-efficient-knowledge-retrieval\" target=\"_blank\" title=\"https:\/\/platform.openai.com\/docs\/guides\/gpt-best-practices\/tactic-use-embeddings-based-search-to-implement-efficient-knowledge-retrieval\" ref=\"nofollow noopener noreferrer\" rel=\"noopener\">Use embeddings-based search to implement efficient knowledge retrieval<\/a> \u4e86\u89e3\u66f4\u591a\u5411\u91cf\u5316\u68c0\u7d22\u7ec6\u8282\u3002<\/p>\n<h2 data-id=\"heading-2\">\u7b56\u75652\uff1a\u5f15\u5bfc\u6a21\u578b\u5728\u56de\u7b54\u91cc\u5e26\u4e0a\u5f15\u7528\u5185\u5bb9<\/h2>\n<p>\u5982\u679cPrompt\u91cc\u63d0\u4f9b\u4e86\u548c\u95ee\u9898\u76f8\u5173\u7684\u53c2\u8003\u6587\u6863\uff0c\u90a3\u5c31\u53ef\u4ee5\u8981\u6c42\u5927\u6a21\u578b\u5728\u56de\u7b54\u91cc\u5f15\u7528Prompt\u91cc\u63d0\u4f9b\u7684\u6587\u6863\u4e2d\u7684\u76f8\u5173\u5185\u5bb9\u3002<\/p>\n<p>\u4ee5\u4e0b\u662f\u6784\u9020Prompt\u7684\u793a\u4f8b\uff1a<\/p>\n<table>\n<thead>\n<tr>\n<th><strong>SYSTEM<\/strong><\/th>\n<th>You will be provided with a document delimited by triple quotes and a question. Your task is to answer the question using only the provided document and to cite the passage(s) of the document used to answer the question. If the document does not contain the information needed to answer this question then simply write: &#8220;Insufficient information.&#8221; If an answer to the question is provided, it must be annotated with a citation. Use the following format for to cite relevant passages ({&#8220;citation&#8221;: \u2026}).<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><strong>USER<\/strong><\/td>\n<td>&#8220;&#8221;&#8221;&lt;insert document here&gt;&#8221;&#8221;&#8221; <br \/>Question: &lt;insert question here&gt;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u6ce8\u610f\uff1a\u56de\u7b54\u91cc\u7684\u5f15\u7528\u5185\u5bb9\u51c6\u786e\u6027\u662f\u53ef\u4ee5\u548cPrompt\u91cc\u63d0\u4f9b\u7684\u5185\u5bb9\u505a\u5b57\u7b26\u4e32\u5339\u914d\u6765\u9a8c\u8bc1\u7684\u3002<\/p>\n<p>\u53ef\u4ee5\u5728\u8fd9\u4e2a\u94fe\u63a5\u91cc\u770b\u6548\u679c\uff1a<a href=\"https:\/\/link.juejin.cn?target=https%3A%2F%2Fplatform.openai.com%2Fplayground%2Fp%2Fdefault-answer-with-citation\" title=\"https:\/\/platform.openai.com\/playground\/p\/default-answer-with-citation\" target=\"_blank\" ref=\"nofollow noopener noreferrer\" rel=\"noopener\">Open in Playground<\/a>\u3002<\/p>\n<h2 data-id=\"heading-3\">\u603b\u7ed3<\/h2>\n<p>\u672c\u6587\u662fChatGPT\u4f7f\u7528\u6700\u4f73\u5b9e\u8df5\u7cfb\u5217\u7b2c2\u7bc7 &#8211; \u63d0\u4f9b\u53c2\u8003\u4fe1\u606f(provide reference text)\u3002<\/p>\n<p>\u8be6\u7ec6\u8bb2\u8ff0\u4e862\u4e2a\u7b56\u7565\uff0c\u4ee5\u4e0a\u7b56\u7565\u4e0d\u4ec5\u9002\u7528\u4e8eGPT\u6a21\u578b\uff0c\u8fd8\u9002\u7528\u4e8e\u5176\u5b83\u5927\u8bed\u8a00\u6a21\u578b\u3002<\/p>\n<p>\u6587\u7ae0\u548c\u793a\u4f8b\u4ee3\u7801\u5f00\u6e90\u5728GitHub: <a href=\"https:\/\/link.juejin.cn?target=https%3A%2F%2Fgithub.com%2Fjincheng9%2Fgpt-tutorial\" title=\"https:\/\/github.com\/jincheng9\/gpt-tutorial\" target=\"_blank\" ref=\"nofollow noopener noreferrer\" rel=\"noopener\">GPT\u5b9e\u6218\u6559\u7a0b<\/a>\uff0c\u53ef\u4ee5\u770b\u5230\u6240\u6709\u4e3b\u6d41\u7684\u5f00\u6e90LLM\u3002<\/p>\n<p>\u516c\u4f17\u53f7\uff1acoding\u8fdb\u9636\u3002<\/p>\n<p>\u4e2a\u4eba\u7f51\u7ad9\uff1a<a href=\"https:\/\/link.juejin.cn?target=https%3A%2F%2Fjincheng9.github.io%2F\" title=\"https:\/\/jincheng9.github.io\/\" target=\"_blank\" ref=\"nofollow noopener noreferrer\" rel=\"noopener\">Jincheng&#8217;s Blog<\/a>\u3002<\/p>\n<p>\u77e5\u4e4e\uff1a<a href=\"https:\/\/link.juejin.cn?target=https%3A%2F%2Fwww.zhihu.com%2Fpeople%2Fthucuhkwuji\" title=\"https:\/\/www.zhihu.com\/people\/thucuhkwuji\" target=\"_blank\" ref=\"nofollow noopener noreferrer\" rel=\"noopener\">\u65e0\u5fcc<\/a>\u3002<\/p>\n<h2 data-id=\"heading-4\">References<\/h2>\n<ul>\n<li><a href=\"https:\/\/link.juejin.cn?target=https%3A%2F%2Fplatform.openai.com%2Fdocs%2Fguides%2Fgpt-best-practices\" target=\"_blank\" title=\"https:\/\/platform.openai.com\/docs\/guides\/gpt-best-practices\" ref=\"nofollow noopener noreferrer\" rel=\"noopener\">platform.openai.com\/docs\/guides\u2026<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>OpenAI\u5b98\u65b9\u8be6\u7ec6\u4ecb\u7ecd\u4e86ChatGPT\u4f7f\u7528\u7684\u6700\u4f73\u5b9e\u8df5\uff0c\u4e0d\u4ec5\u9002\u7528\u4e8e\u4f7f\u7528ChatGPT\u7f51\u7ad9\u8fdb\u884c\u76f4\u63a5\u5bf9\u8bdd\u7684\u7528\u6237\uff0c\u8fd8\u9002\u7528\u4e8e\u901a\u8fc7OpenAI API\u63a5\u5165\u7684\u5f00\u53d1\u8005\u3002 \u638c\u63e1\u4e86\u8fd9\u4e9b\u6700\u4f73\u5b9e\u8df5\uff0c\u5c31\u80fd\u66f4\u597d\u5730\u5229\u7528GP<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"rank_math_title":"ChatGPT\u6700\u4f73\u5b9e\u8df5\uff1a\u7cbe\u51c6\u5f15\u5bfc\uff0c\u544a\u522b\u865a\u5047\u7b54\u6848 - \u5948\u65af\u79d1\u6280\u793e\u533a","rank_math_description":"\u638c\u63e1ChatGPT\u6700\u4f73\u5b9e\u8df5\uff0c\u63d0\u5347GPT\u5927\u6a21\u578b\u5e94\u7528\u6548\u679c\uff01\u672c\u6587\u4ecb\u7ecd\u5982\u4f55\u901a\u8fc7\u63d0\u4f9b\u53c2\u8003\u4fe1\u606f\u548c\u5f15\u5bfc\u6a21\u578b\u5f15\u7528\u5185\u5bb9\uff0c\u6709\u6548\u51cf\u5c11GPT\u7f16\u9020\u865a\u5047\u7b54\u6848\uff0c\u63d0\u9ad8\u56de\u7b54\u51c6\u786e\u6027\u3002","rank_math_focus_keyword":"ChatGPT, GPT, \u5927\u8bed\u8a00\u6a21\u578b, \u63d0\u793a\u5de5\u7a0b, \u6700\u4f73\u5b9e\u8df5","views":"15","footnotes":""},"categories":[3],"tags":[126,127,128,129,136],"collection":[],"class_list":["post-1300","post","type-post","status-publish","format-standard","hentry","category-fenlei2","tag-gpt","tag-ai","tag-128","tag-129","tag-136"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.nicekj.com\/nicekj2024\/wp\/v2\/posts\/1300","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.nicekj.com\/nicekj2024\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.nicekj.com\/nicekj2024\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.nicekj.com\/nicekj2024\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.nicekj.com\/nicekj2024\/wp\/v2\/comments?post=1300"}],"version-history":[{"count":0,"href":"https:\/\/www.nicekj.com\/nicekj2024\/wp\/v2\/posts\/1300\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.nicekj.com\/nicekj2024\/wp\/v2\/media?parent=1300"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.nicekj.com\/nicekj2024\/wp\/v2\/categories?post=1300"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.nicekj.com\/nicekj2024\/wp\/v2\/tags?post=1300"},{"taxonomy":"collection","embeddable":true,"href":"https:\/\/www.nicekj.com\/nicekj2024\/wp\/v2\/collection?post=1300"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}