{"id":55521,"date":"2025-02-19T12:37:21","date_gmt":"2025-02-19T04:37:21","guid":{"rendered":"https:\/\/fwq.ai\/blog\/55521\/"},"modified":"2025-02-19T12:37:21","modified_gmt":"2025-02-19T04:37:21","slug":"claude%e6%8f%90%e7%a4%ba%e8%af%8d%ef%bc%9a%e4%bb%a3%e7%a0%81%e7%94%9f%e6%88%90%e5%8d%95%e5%85%83%e6%b5%8b%e8%af%95","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/55521\/","title":{"rendered":"Claude\u63d0\u793a\u8bcd\uff1a\u4ee3\u7801\u751f\u6210\u5355\u5143\u6d4b\u8bd5"},"content":{"rendered":"<h2>\u63d0\u793a\u8bcd\u5206\u6790<\/h2>\n<blockquote>\n<p>1. \u501f\u52a9 XML \u6807\u7b7e\uff0c\u8ba9\u6587\u672c\u63d0\u793a\u8bcd\u6709\u4e86\u6e05\u6670\u7684\u7ed3\u6784\uff0c\u80fd\u8ba9\u5927\u8bed\u8a00\u6a21\u578b\u66f4\u597d\u7684\u7406\u89e3\u4f60\u7684\u6307\u4ee4\u3002\u987a\u4fbf\u8bf4\u4e00\u4e0b\uff0cClaude 3 \u5bf9 XML \u5f88\u53cb\u597d\uff0c\u5927\u90e8\u5206\u9ad8\u8d28\u91cf\u63d0\u793a\u8bcd\u7684\u8f93\u51fa\u8f93\u51fa\u90fd\u662f\u57fa\u4e8e XML \u6765\u7ec4\u7ec7\u7684\uff0c\u73b0\u5728\u6211\u4e5f\u7ecf\u5e38\u501f\u9274\u8fd9\u79cd\u6280\u5de7\u3002<\/p>\n<p><strong><span style=\"font-size: 10pt;color: #ff6600\">\u8981\u6ce8\u610f\uff0c\u76ee\u524d\u53ea\u6709Claude\u548cMistral\u5bf9XML\u6807\u7b7e\u7406\u89e3\u8f83\u597d\uff0c\u4f60\u53ef\u4ee5\u5728LMSYS Org\u4e2d\u5feb\u901f\u5bf9\u4e0d\u540c\u6a21\u578b\u8fdb\u884c\u6d4b\u8bd5\u3002<\/span><\/strong><\/p>\n<p> <\/p>\n<p>2. \u6709\u6e05\u6670\u7684\u6b65\u9aa4\uff0c\u501f\u52a9 CoT\uff08\u94fe\u5f0f\u601d\u8003 Chain of Though\uff09\u7684\u65b9\u5f0f\uff0c\u8ba9\u6a21\u578b\u80fd\u6309\u7167\u4e00\u5b9a\u7684\u6b65\u9aa4\u6765\u601d\u8003\uff0c\u6bcf\u4e00\u6b65\u7684\u7ed3\u679c\u53c8\u53ef\u4ee5\u4f5c\u4e3a\u4e0b\u4e00\u6b65\u7684\u8f93\u5165\uff0c\u5f97\u5230\u9ad8\u8d28\u91cf\u7684\u8f93\u51fa\u7ed3\u679c\u3002<\/p>\n<ul>\n<li>\u9996\u5148\uff0c\u5206\u6790\u4ee3\u7801\uff0c\u5f04\u6e05\u695a\u4ee3\u7801\u7684\u4f5c\u7528\u3001\u8f93\u5165\u3001\u8f93\u51fa\u53ca\u6838\u5fc3\u903b\u8f91\u3002\u8fd9\u6837\u53ef\u4ee5\u4fdd\u8bc1\u4e0d\u9057\u6f0f\u4ee3\u7801\u4e2d\u7684\u5173\u952e\u4fe1\u606f\u3002<\/li>\n<li>\u7136\u540e\uff0c\u5217\u51fa\u4e00\u7cfb\u5217\u5fc5\u8981\u7684\u6d4b\u8bd5\u7528\u4f8b\uff0c\u5305\u62ec\u76ee\u7684\u3001\u8f93\u5165\u3001\u9884\u671f\u8f93\u51fa\u548c\u6d4b\u8bd5\u7c7b\u578b\u3002\u6709\u4e86\u524d\u9762\u4ee3\u7801\u7684\u5206\u6790\uff0c\u5728\u5199\u6d4b\u8bd5\u7528\u4f8b\u65f6\u5c31\u4e0d\u5bb9\u6613\u6f0f\u6389\u5173\u952e\u7684\u6d4b\u8bd5\u7528\u4f8b\u3002<\/li>\n<li>\u660e\u786e\u8f93\u51fa\u662f\u8868\u683c\u7684\u683c\u5f0f\uff0c\u786e\u4fdd\u8f93\u51fa\u7684\u5185\u5bb9\u5305\u542b\u6240\u6709\u5fc5\u987b\u7684\u4fe1\u606f<\/li>\n<li>\u63a5\u7740\uff0c\u4e3a\u6bcf\u4e2a\u6d4b\u8bd5\u7528\u4f8b\u7f16\u5199\u5177\u4f53\u7684\u6d4b\u8bd5\u4ee3\u7801\uff0c\u786e\u4fdd\u6d4b\u8bd5\u4ee3\u7801\u9075\u5faa\u51c6\u5907\u3001\u6267\u884c\u3001\u9a8c\u8bc1\u7684\u6d41\u7a0b\u3002\u6709\u4e86\u524d\u9762\u7684\u6d4b\u8bd5\u7528\u4f8b\uff0c\u5c31\u53ef\u4ee5\u6328\u4e2a\u5199\u6d4b\u8bd5\u4ee3\u7801\u4e86\uff0c\u4e0d\u4f1a\u9057\u6f0f\u5173\u952e\u7684\u6d4b\u8bd5\u4ee3\u7801\u3002<\/li>\n<li>\u660e\u786e\u8981\u5148\u5199\u6ce8\u91ca\u5728\u5199\u4ee3\u7801\uff0c\u8fd9\u6837\u5176\u5b9e\u76f8\u5f53\u4e8e\u4e3a\u6bcf\u4e00\u6bb5\u6d4b\u8bd5\u4ee3\u7801\u5199\u597d\u4e86\u5355\u72ec\u7684\u63d0\u793a\u8bcd\u3002<\/li>\n<li>\u5bf9\u751f\u6210\u7684\u7ed3\u679c\u8fdb\u884c\u590d\u67e5\uff0c\u786e\u4fdd\u5168\u9762\u8986\u76d6\u4e86\u6240\u6709\u573a\u666f\u3002<\/li>\n<li>\u6700\u540e\uff0c\u603b\u7ed3\u6d4b\u8bd5\u8986\u76d6\u8303\u56f4\u53ca\u901a\u8fc7\u8fd9\u6b21\u6d4b\u8bd5\u8ba1\u5212\u6d3b\u52a8\u83b7\u5f97\u7684\u6d1e\u89c1\u3002\u8fd9\u4e00\u6b65\u5176\u5b9e\u53ef\u4ee5\u7701\u7565\uff0c\u56e0\u4e3a\u5bf9\u6a21\u578b\u6765\u8bf4\u5df2\u7ecf\u610f\u4e49\u4e0d\u5927\uff0c\u4f46\u662f\u5bf9\u4e8e\u4f5c\u8005\u6765\u8bf4\uff0c\u53ef\u4ee5\u5e2e\u52a9\u4f60\u66f4\u597d\u7684\u7406\u89e3\u5b83\u4e3a\u4ec0\u4e48\u8981\u751f\u6210\u8fd9\u4e9b\u6d4b\u8bd5\u7528\u4f8b\u3002\u6216\u8bb8\u4ece\u4e2d\u5b66\u5230\u70b9\u4e1c\u897f\u3002<\/li>\n<\/ul>\n<p>3. \u4e00\u5f00\u59cb\u5c31\u8981\u8bf4\u660e\u6307\u4ee4\u7684\u76ee\u6807\u662f\u4ec0\u4e48\uff0c\u8fd9\u6837\u53ef\u4ee5\u8ba9\u6a21\u578b\u66f4\u597d\u7684\u7406\u89e3\u4f60\u7684\u6307\u4ee4\uff0c\u751f\u6210\u66f4\u7b26\u5408\u4f60\u9884\u671f\u7684\u7ed3\u679c\u3002<\/p>\n<p>4. \u81f3\u4e8e\u4e00\u5f00\u59cb\u7684\u89d2\u8272\u8bbe\u5b9a\uff0c\u5c5e\u4e8e\u9526\u4e0a\u6dfb\u82b1\uff0c\u53ef\u4ee5\u8ba9\u751f\u6210\u7ed3\u679c\u65f6\uff0c\u66f4\u591a\u7684\u4ece\u8bed\u6599\u5e93\u4e2d\u6311\u9009\u89d2\u8272\u76f8\u5173\u7684\u5185\u5bb9\u3002<\/p>\n<p>\u8fd9\u6bb5\u63d0\u793a\u8bcd\u5f88\u597d\u7684\u5c55\u793a\u4e86\u5982\u4f55\u901a\u8fc7\u63d0\u793a\u8bcd\u6765\u5f15\u5bfc\u6a21\u578b\u751f\u6210\u9ad8\u8d28\u91cf\u7684\u8f93\u51fa\uff1a<\/p>\n<p>1. \u4f60\u7684\u6307\u4ee4\u8981\u6e05\u6670\uff0c\u53ef\u4ee5\u501f\u52a9 XML \u6807\u7b7e\u6765\u7ec4\u7ec7\u4f60\u7684\u6307\u4ee4\u3002<br \/> 2. \u8981\u5145\u5206\u5229\u7528 CoT\uff0c\u8ba9\u6a21\u578b\u6309\u7167\u4e00\u5b9a\u7684\u6b65\u9aa4\u6765\u601d\u8003\uff0c\u6bcf\u4e00\u6b65\u7684\u7ed3\u679c\u53c8\u53ef\u4ee5\u4f5c\u4e3a\u4e0b\u4e00\u6b65\u7684\u8f93\u5165\uff0c\u5f97\u5230\u9ad8\u8d28\u91cf\u7684\u8f93\u51fa\u7ed3\u679c\u3002<br \/> 3. \u660e\u786e\u7684\u8f93\u51fa\u683c\u5f0f\uff0c\u786e\u4fdd\u8f93\u51fa\u7684\u5185\u5bb9\u6309\u7167\u4f60\u5217\u7684\u6b65\u9aa4\u6267\u884c\uff0c\u5e76\u4e14\u6bcf\u4e00\u6b65\u90fd\u5305\u542b\u6240\u6709\u5fc5\u987b\u7684\u4fe1\u606f\u3002<\/p>\n<\/blockquote>\n<p>&nbsp;<\/p>\n<h2>\u82f1\u6587\u7248<\/h2>\n<blockquote>\n<p>&lt;prompt_explanation&gt;<br \/> You are an expert software tester tasked with thoroughly testing a given piece of code. Your goal is to generate a comprehensive set of test cases that will exercise the code and uncover any potential bugs or issues.<\/p>\n<p>First, carefully analyze the provided code. Understand its purpose, inputs, outputs, and any key logic or calculations it performs. Spend significant time considering all the different scenarios and edge cases that need to be tested.<\/p>\n<p>Next, brainstorm a list of test cases you think will be necessary to fully validate the correctness of the code. For each test case, specify the following in a table:<br \/> &#8211; Objective: The goal of the test case<br \/> &#8211; Inputs: The specific inputs that should be provided<br \/> &#8211; Expected Output: The expected result the code should produce for the given inputs<br \/> &#8211; Test Type: The category of the test (e.g. positive test, negative test, edge case, etc.)<\/p>\n<p>After defining all the test cases in tabular format, write out the actual test code for each case. Ensure the test code follows these steps:<br \/> 1. Arrange: Set up any necessary preconditions and inputs<br \/> 2. Act: Execute the code being tested<br \/> 3. Assert: Verify the actual output matches the expected output<\/p>\n<p>For each test, provide clear comments explaining what is being tested and why it&#8217;s important.<\/p>\n<p>Once all the individual test cases have been written, review them to ensure they cover the full range of scenarios. Consider if any additional tests are needed for completeness.<\/p>\n<p>Finally, provide a summary of the test coverage and any insights gained from this test planning exercise.<br \/> &lt;\/prompt_explanation&gt;<\/p>\n<p>&lt;response_format&gt;<br \/> &lt;code_analysis_section&gt;<br \/> &lt;header&gt;Code Analysis:&lt;\/header&gt;<br \/> &lt;analysis&gt;$code_analysis&lt;\/analysis&gt;<br \/> &lt;\/code_analysis_section&gt;<\/p>\n<p>&lt;test_cases_section&gt;<br \/> &lt;header&gt;Test Cases:&lt;\/header&gt;<br \/> &lt;table&gt;<br \/> &lt;header_row&gt;<br \/> &lt;column1&gt;Objective&lt;\/column1&gt;<br \/> &lt;column2&gt;Inputs&lt;\/column2&gt;<br \/> &lt;column3&gt;Expected Output&lt;\/column3&gt;<br \/> &lt;column4&gt;Test Type&lt;\/column4&gt;<br \/> &lt;\/header_row&gt;<br \/> $test_case_table<br \/> &lt;\/table&gt;<br \/> &lt;\/test_cases_section&gt;<\/p>\n<p>&lt;test_code_section&gt;<br \/> &lt;header&gt;Test Code:&lt;\/header&gt;<br \/> $test_code<br \/> &lt;\/test_code_section&gt;<\/p>\n<p>&lt;test_review_section&gt;<br \/> &lt;header&gt;Test Review:&lt;\/header&gt;<br \/> &lt;review&gt;$test_review&lt;\/review&gt;<br \/> &lt;\/test_review_section&gt;<\/p>\n<p>&lt;coverage_summary_section&gt;<br \/> &lt;header&gt;Test Coverage Summary:&lt;\/header&gt;<br \/> &lt;summary&gt;$coverage_summary&lt;\/summary&gt;<br \/> &lt;insights&gt;$insights&lt;\/insights&gt;<br \/> &lt;\/coverage_summary_section&gt;<br \/> &lt;\/response_format&gt;<\/p>\n<p>Here is the code that you must generate test cases for:<br \/> &lt;code&gt;<br \/> PASTE_YOUR_CODE_HERE<br \/> &lt;\/code&gt;<\/p>\n<\/blockquote>\n<p>&nbsp;<\/p>\n<h2>\u4e2d\u6587\u7248<\/h2>\n<blockquote>\n<p>&lt;prompt_explanation&gt;<br \/> \u4f60\u4f5c\u4e3a\u4e00\u540d\u4e13\u5bb6\u7ea7\u8f6f\u4ef6\u6d4b\u8bd5\u5458\uff0c\u8d1f\u8d23\u5bf9\u6307\u5b9a\u7684\u4ee3\u7801\u7247\u6bb5\u8fdb\u884c\u5f7b\u5e95\u6d4b\u8bd5\u3002\u4f60\u7684\u76ee\u6807\u662f\u521b\u5efa\u4e00\u5957\u5168\u9762\u7684\u6d4b\u8bd5\u7528\u4f8b\uff0c\u901a\u8fc7\u8fd9\u4e9b\u7528\u4f8b\u6267\u884c\u4ee3\u7801\uff0c\u53d1\u73b0\u4efb\u4f55\u53ef\u80fd\u7684\u6f0f\u6d1e\u6216\u95ee\u9898\u3002<\/p>\n<p>\u9996\u5148\uff0c\u7ec6\u81f4\u5730\u5206\u6790\u63d0\u4f9b\u7684\u4ee3\u7801\u3002\u5f04\u6e05\u695a\u5b83\u7684\u4f5c\u7528\u3001\u8f93\u5165\u3001\u8f93\u51fa\u53ca\u4efb\u4f55\u6838\u5fc3\u903b\u8f91\u6216\u8fd0\u7b97\u3002\u6df1\u5165\u601d\u8003\u6240\u6709\u53ef\u80fd\u9700\u8981\u6d4b\u8bd5\u7684\u4e0d\u540c\u573a\u666f\u548c\u8fb9\u7f18\u6848\u4f8b\u3002<\/p>\n<p>\u7136\u540e\uff0c\u5934\u8111\u98ce\u66b4\uff0c\u5217\u51fa\u4e00\u7cfb\u5217\u4f60\u8ba4\u4e3a\u5fc5\u987b\u7684\u6d4b\u8bd5\u7528\u4f8b\uff0c\u4ee5\u5f7b\u5e95\u9a8c\u8bc1\u4ee3\u7801\u7684\u51c6\u786e\u6027\u3002\u5bf9\u4e8e\u6bcf\u4e00\u4e2a\u6d4b\u8bd5\u7528\u4f8b\uff0c\u5728\u8868\u683c\u4e2d\u660e\u786e\u4ee5\u4e0b\u4fe1\u606f\uff1a<\/p>\n<p>&#8211; \u76ee\u7684\uff1a\u6d4b\u8bd5\u7528\u4f8b\u7684\u76ee\u6807<br \/> &#8211; \u8f93\u5165\uff1a\u5177\u4f53\u9700\u8981\u63d0\u4f9b\u7684\u8f93\u5165<br \/> &#8211; \u9884\u671f\u8f93\u51fa\uff1a\u5bf9\u4e8e\u7ed9\u5b9a\u7684\u8f93\u5165\uff0c\u4ee3\u7801\u5e94\u4ea7\u51fa\u7684\u7ed3\u679c<br \/> &#8211; \u6d4b\u8bd5\u7c7b\u578b\uff1a\u6d4b\u8bd5\u7684\u5206\u7c7b\uff08\u6bd4\u5982\uff0c\u6b63\u5411\u6d4b\u8bd5\u3001\u53cd\u5411\u6d4b\u8bd5\u3001\u8fb9\u754c\u6848\u4f8b\u7b49\uff09<\/p>\n<p>\u5728\u4ee5\u8868\u683c\u5f62\u5f0f\u8be6\u7ec6\u5217\u51fa\u6240\u6709\u6d4b\u8bd5\u7528\u4f8b\u4e4b\u540e\uff0c\u9488\u5bf9\u6bcf\u4e2a\u6848\u4f8b\u7f16\u5199\u5177\u4f53\u7684\u6d4b\u8bd5\u4ee3\u7801\u3002\u786e\u4fdd\u6d4b\u8bd5\u4ee3\u7801\u9075\u5faa\u4ee5\u4e0b\u6d41\u7a0b\uff1a<\/p>\n<p>1. \u51c6\u5907\uff1a\u8bbe\u7f6e\u5fc5\u8981\u7684\u524d\u7f6e\u6761\u4ef6\u548c\u8f93\u5165<br \/> 2. \u6267\u884c\uff1a\u8fd0\u884c\u5f85\u6d4b\u4ee3\u7801<br \/> 3. \u9a8c\u8bc1\uff1a\u786e\u4fdd\u5b9e\u9645\u8f93\u51fa\u4e0e\u671f\u671b\u8f93\u51fa\u4e00\u81f4<\/p>\n<p>\u5bf9\u4e8e\u6bcf\u9879\u6d4b\u8bd5\uff0c\u90fd\u5e94\u6e05\u6670\u6ce8\u91ca\u8bf4\u660e\u6d4b\u8bd5\u7684\u5185\u5bb9\u53ca\u5176\u91cd\u8981\u6027\u3002<\/p>\n<p>\u5b8c\u6210\u6240\u6709\u5355\u72ec\u6d4b\u8bd5\u7528\u4f8b\u7684\u7f16\u5199\u540e\uff0c\u8fdb\u884c\u590d\u67e5\uff0c\u786e\u4fdd\u5b83\u4eec\u5168\u9762\u8986\u76d6\u4e86\u6240\u6709\u573a\u666f\u3002\u601d\u8003\u662f\u5426\u8fd8\u9700\u8981\u6dfb\u52a0\u989d\u5916\u7684\u6d4b\u8bd5\u4ee5\u786e\u4fdd\u5168\u9762\u6027\u3002<\/p>\n<p>\u6700\u540e\uff0c\u603b\u7ed3\u6d4b\u8bd5\u8986\u76d6\u8303\u56f4<\/p>\n<p>\u53ca\u901a\u8fc7\u8fd9\u6b21\u6d4b\u8bd5\u8ba1\u5212\u6d3b\u52a8\u83b7\u5f97\u7684\u6d1e\u89c1\u3002<br \/> &lt;\/prompt_explanation&gt;<\/p>\n<p>&lt;response_format&gt;<br \/> &lt;code_analysis_section&gt;<\/p>\n<p>&lt;header&gt;\u4ee3\u7801\u5206\u6790\uff1a&lt;\/header&gt;<br \/> &lt;analysis&gt;$code_analysis&lt;\/analysis&gt;<br \/> &lt;\/code_analysis_section&gt;<\/p>\n<p>&lt;test_cases_section&gt;<\/p>\n<p>&lt;header&gt;\u6d4b\u8bd5\u6848\u4f8b\uff1a&lt;\/header&gt;<br \/> &lt;table&gt;<br \/> &lt;header_row&gt;<br \/> &lt;column1&gt;\u76ee\u7684&lt;\/column1&gt;<br \/> &lt;column2&gt;\u8f93\u5165&lt;\/column2&gt;<br \/> &lt;column3&gt;\u9884\u671f\u8f93\u51fa&lt;\/column3&gt;<br \/> &lt;column4&gt;\u6d4b\u8bd5\u7c7b\u578b&lt;\/column4&gt;<br \/> &lt;\/header_row&gt;<br \/> $test_case_table<br \/> &lt;\/table&gt;<br \/> &lt;\/test_cases_section&gt;<\/p>\n<p>&lt;test_code_section&gt;<\/p>\n<p>&lt;header&gt;\u6d4b\u8bd5\u4ee3\u7801\uff1a&lt;\/header&gt;<br \/> $test_code<br \/> &lt;\/test_code_section&gt;<\/p>\n<p>&lt;test_review_section&gt;<\/p>\n<p>&lt;header&gt;\u6d4b\u8bd5\u56de\u987e\uff1a&lt;\/header&gt;<br \/> &lt;review&gt;$test_review&lt;\/review&gt;<br \/> &lt;\/test_review_section&gt;<\/p>\n<p>&lt;coverage_summary_section&gt;<\/p>\n<p>&lt;header&gt;\u6d4b\u8bd5\u8986\u76d6\u6982\u8981\uff1a&lt;\/header&gt;<br \/> &lt;summary&gt;$coverage_summary&lt;\/summary&gt;<br \/> &lt;insights&gt;$insights&lt;\/insights&gt;<br \/> &lt;\/coverage_summary_section&gt;<br \/> &lt;\/response_format&gt;<\/p>\n<p>\u4ee5\u4e0b\u662f\u4f60\u9700\u8981\u4e3a\u5176\u751f\u6210\u6d4b\u8bd5\u7528\u4f8b\u7684\u4ee3\u7801\uff1a<br \/> &lt;code&gt;<br \/> \u5c06\u4f60\u7684\u4ee3\u7801\u7c98\u8d34\u4e8e\u6b64<br \/> &lt;\/code&gt;<\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>\u63d0\u793a\u8bcd\u5206\u6790 1. \u501f\u52a9 XML \u6807\u7b7e\uff0c\u8ba9\u6587\u672c\u63d0\u793a\u8bcd\u6709\u4e86\u6e05\u6670\u7684\u7ed3\u6784\uff0c\u80fd\u8ba9\u5927\u8bed\u8a00\u6a21\u578b\u66f4\u597d\u7684\u7406\u89e3\u4f60\u7684\u6307\u4ee4\u3002\u987a\u4fbf\u8bf4\u4e00\u4e0b\uff0cClaude 3 \u5bf9 XML \u5f88\u53cb\u597d\uff0c\u5927\u90e8\u5206\u9ad8\u8d28\u91cf\u63d0\u793a\u8bcd\u7684\u8f93\u51fa\u8f93\u51fa\u90fd\u662f\u57fa\u4e8e XML \u6765\u7ec4\u7ec7\u7684\uff0c\u73b0\u5728\u6211\u4e5f\u7ecf\u5e38\u501f\u9274\u8fd9\u79cd\u6280\u5de7\u3002 \u8981\u6ce8\u610f\uff0c\u76ee\u524d\u53ea\u6709Claude\u548cMistral\u5bf9XML\u6807\u7b7e\u7406\u89e3\u8f83\u597d\uff0c\u4f60\u53ef\u4ee5\u5728LMSYS Org\u4e2d\u5feb\u901f\u5bf9\u4e0d\u540c\u6a21\u578b\u8fdb\u884c\u6d4b\u8bd5\u3002 2. \u6709\u6e05\u6670\u7684\u6b65\u9aa4\uff0c\u501f\u52a9 CoT\uff08\u94fe\u5f0f\u601d\u8003 Chain of Though\uff09\u7684\u65b9\u5f0f\uff0c\u8ba9\u6a21\u578b\u80fd\u6309\u7167\u4e00\u5b9a\u7684\u6b65\u9aa4\u6765\u601d\u8003\uff0c\u6bcf\u4e00\u6b65\u7684\u7ed3\u679c\u53c8\u53ef\u4ee5\u4f5c\u4e3a\u4e0b\u4e00\u6b65\u7684\u8f93\u5165\uff0c\u5f97\u5230\u9ad8\u8d28\u91cf\u7684\u8f93\u51fa\u7ed3\u679c\u3002 \u9996\u5148\uff0c\u5206\u6790\u4ee3\u7801\uff0c\u5f04\u6e05\u695a\u4ee3\u7801\u7684\u4f5c\u7528\u3001\u8f93\u5165\u3001\u8f93\u51fa\u53ca\u6838\u5fc3\u903b\u8f91\u3002\u8fd9\u6837\u53ef\u4ee5\u4fdd\u8bc1\u4e0d\u9057\u6f0f\u4ee3\u7801\u4e2d\u7684\u5173\u952e\u4fe1\u606f\u3002 \u7136\u540e\uff0c\u5217\u51fa\u4e00\u7cfb\u5217\u5fc5\u8981\u7684\u6d4b\u8bd5\u7528\u4f8b\uff0c\u5305\u62ec\u76ee\u7684\u3001\u8f93\u5165\u3001\u9884\u671f\u8f93\u51fa\u548c\u6d4b\u8bd5\u7c7b\u578b\u3002\u6709\u4e86\u524d\u9762\u4ee3\u7801\u7684\u5206\u6790\uff0c\u5728\u5199\u6d4b\u8bd5\u7528\u4f8b\u65f6\u5c31\u4e0d\u5bb9\u6613\u6f0f\u6389\u5173\u952e\u7684\u6d4b\u8bd5\u7528\u4f8b\u3002 \u660e\u786e\u8f93\u51fa\u662f\u8868\u683c\u7684\u683c\u5f0f\uff0c\u786e\u4fdd\u8f93\u51fa\u7684\u5185\u5bb9\u5305\u542b\u6240\u6709\u5fc5\u987b\u7684\u4fe1\u606f \u63a5\u7740\uff0c\u4e3a\u6bcf\u4e2a\u6d4b\u8bd5\u7528\u4f8b\u7f16\u5199\u5177\u4f53\u7684\u6d4b\u8bd5\u4ee3\u7801\uff0c\u786e\u4fdd\u6d4b\u8bd5\u4ee3\u7801\u9075\u5faa\u51c6\u5907\u3001\u6267\u884c\u3001\u9a8c\u8bc1\u7684\u6d41\u7a0b\u3002\u6709\u4e86\u524d\u9762\u7684\u6d4b\u8bd5\u7528\u4f8b\uff0c\u5c31\u53ef\u4ee5\u6328\u4e2a\u5199\u6d4b\u8bd5\u4ee3\u7801\u4e86\uff0c\u4e0d\u4f1a\u9057\u6f0f\u5173\u952e\u7684\u6d4b\u8bd5\u4ee3\u7801\u3002 \u660e\u786e\u8981\u5148\u5199\u6ce8\u91ca\u5728\u5199\u4ee3\u7801\uff0c\u8fd9\u6837\u5176\u5b9e\u76f8\u5f53\u4e8e\u4e3a\u6bcf\u4e00\u6bb5\u6d4b\u8bd5\u4ee3\u7801\u5199\u597d\u4e86\u5355\u72ec\u7684\u63d0\u793a\u8bcd\u3002 \u5bf9\u751f\u6210\u7684\u7ed3\u679c\u8fdb\u884c\u590d\u67e5\uff0c\u786e\u4fdd\u5168\u9762\u8986\u76d6\u4e86\u6240\u6709\u573a\u666f\u3002 \u6700\u540e\uff0c\u603b\u7ed3\u6d4b\u8bd5\u8986\u76d6\u8303\u56f4\u53ca\u901a\u8fc7\u8fd9\u6b21\u6d4b\u8bd5\u8ba1\u5212\u6d3b\u52a8\u83b7\u5f97\u7684\u6d1e\u89c1\u3002\u8fd9\u4e00\u6b65\u5176\u5b9e\u53ef\u4ee5\u7701\u7565\uff0c\u56e0\u4e3a\u5bf9\u6a21\u578b\u6765\u8bf4\u5df2\u7ecf\u610f\u4e49\u4e0d\u5927\uff0c\u4f46\u662f\u5bf9\u4e8e\u4f5c\u8005\u6765\u8bf4\uff0c\u53ef\u4ee5\u5e2e\u52a9\u4f60\u66f4\u597d\u7684\u7406\u89e3\u5b83\u4e3a\u4ec0\u4e48\u8981\u751f\u6210\u8fd9\u4e9b\u6d4b\u8bd5\u7528\u4f8b\u3002\u6216\u8bb8\u4ece\u4e2d\u5b66\u5230\u70b9\u4e1c\u897f\u3002 3. \u4e00\u5f00\u59cb\u5c31\u8981\u8bf4\u660e\u6307\u4ee4\u7684\u76ee\u6807\u662f\u4ec0\u4e48\uff0c\u8fd9\u6837\u53ef\u4ee5\u8ba9\u6a21\u578b\u66f4\u597d\u7684\u7406\u89e3\u4f60\u7684\u6307\u4ee4\uff0c\u751f\u6210\u66f4\u7b26\u5408\u4f60\u9884\u671f\u7684\u7ed3\u679c\u3002 4. \u81f3\u4e8e\u4e00\u5f00\u59cb\u7684\u89d2\u8272\u8bbe\u5b9a\uff0c\u5c5e\u4e8e\u9526\u4e0a\u6dfb\u82b1\uff0c\u53ef\u4ee5\u8ba9\u751f\u6210\u7ed3\u679c\u65f6\uff0c\u66f4\u591a\u7684\u4ece\u8bed\u6599\u5e93\u4e2d\u6311\u9009\u89d2\u8272\u76f8\u5173\u7684\u5185\u5bb9\u3002 \u8fd9\u6bb5\u63d0\u793a\u8bcd\u5f88\u597d\u7684\u5c55\u793a\u4e86\u5982\u4f55\u901a\u8fc7\u63d0\u793a\u8bcd\u6765\u5f15\u5bfc\u6a21\u578b\u751f\u6210\u9ad8\u8d28\u91cf\u7684\u8f93\u51fa\uff1a 1. \u4f60\u7684\u6307\u4ee4\u8981\u6e05\u6670\uff0c\u53ef\u4ee5\u501f\u52a9 XML \u6807\u7b7e\u6765\u7ec4\u7ec7\u4f60\u7684\u6307\u4ee4\u3002 2. \u8981\u5145\u5206\u5229\u7528 CoT\uff0c\u8ba9\u6a21\u578b\u6309\u7167\u4e00\u5b9a\u7684\u6b65\u9aa4\u6765\u601d\u8003\uff0c\u6bcf\u4e00\u6b65\u7684\u7ed3\u679c\u53c8\u53ef\u4ee5\u4f5c\u4e3a\u4e0b\u4e00\u6b65\u7684\u8f93\u5165\uff0c\u5f97\u5230\u9ad8\u8d28\u91cf\u7684\u8f93\u51fa\u7ed3\u679c\u3002 3. \u660e\u786e\u7684\u8f93\u51fa\u683c\u5f0f\uff0c\u786e\u4fdd\u8f93\u51fa\u7684\u5185\u5bb9\u6309\u7167\u4f60\u5217\u7684\u6b65\u9aa4\u6267\u884c\uff0c\u5e76\u4e14\u6bcf\u4e00\u6b65\u90fd\u5305\u542b\u6240\u6709\u5fc5\u987b\u7684\u4fe1\u606f\u3002 &nbsp; \u82f1\u6587\u7248 &lt;prompt_explanation&gt; You are an expert software tester tasked with thoroughly testing a given [&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-55521","post","type-post","status-publish","format-standard","hentry","category-ai"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/55521","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=55521"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/55521\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=55521"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=55521"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=55521"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}