{"id":4534,"date":"2024-09-01T09:39:49","date_gmt":"2024-09-01T01:39:49","guid":{"rendered":"https:\/\/nullthought.net\/?p=4534"},"modified":"2024-09-26T16:14:36","modified_gmt":"2024-09-26T08:14:36","slug":"%e8%a1%a8%e6%a0%bc%e5%a2%9e%e5%bc%ba%e7%94%9f%e6%88%90%ef%bc%88table-augmented-generation%ef%bc%8ctag%ef%bc%89","status":"publish","type":"post","link":"https:\/\/nullthought.net\/?p=4534","title":{"rendered":"\u8868\u683c\u589e\u5f3a\u751f\u6210\uff08Table-Augmented Generation\uff0cTAG\uff09"},"content":{"rendered":"\n<p>\u8bba\u6587\u300a<strong><a href=\"https:\/\/arxiv.org\/abs\/2408.14717\" target=\"_blank\" rel=\"noreferrer noopener\">Text2SQL is Not Enough: Unifying AI and Databases with TAG<\/a><\/strong>\u300b\u8be6\u7ec6\u63a2\u8ba8\u4e86\u81ea\u7136\u8bed\u8a00\u67e5\u8be2\u5904\u7406\u4e0e\u6570\u636e\u5e93\u4e4b\u95f4\u7684\u4ea4\u4e92\u95ee\u9898\uff0c\u63d0\u51fa\u4e86\u4e00\u79cd\u65b0\u7684\u8303\u5f0f\u2014\u2014\u8868\u683c\u589e\u5f3a\u751f\u6210\uff08Table-Augmented Generation\uff0cTAG\uff09\uff0c\u65e8\u5728\u6574\u5408\u4eba\u5de5\u667a\u80fd\uff08AI\uff09\u8bed\u8a00\u6a21\u578b\uff08LM\uff09\u4e0e\u4f20\u7edf\u6570\u636e\u5e93\u7ba1\u7406\u7cfb\u7edf\uff08DBMS\uff09\u7684\u80fd\u529b\uff0c\u4e3a\u590d\u6742\u7684\u81ea\u7136\u8bed\u8a00\u67e5\u8be2\u63d0\u4f9b\u66f4\u5b8c\u6574\u548c\u9ad8\u6548\u7684\u89e3\u51b3\u65b9\u6848\u3002<\/p>\n\n\n\n<p>\u8bba\u6587\u4f5c\u8005\u4e3aAsim Biswal, Liana Patel, Siddarth Jha, Amog Kamsetty, Shu Liu, Joseph E. Gonzalez, Carlos Guestrin, Matei Zaharia\uff0c\u6765\u81eaUC Berkeley\u548cStanford University\u3002<\/p>\n\n\n\n<p>\u4ee5\u4e0b\u662f\u8bba\u6587\u7684\u6982\u8981\u8bf4\u660e\uff1a<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">1. \u7814\u7a76\u80cc\u666f\u4e0e\u52a8\u673a<\/h3>\n\n\n\n<p>\u4f20\u7edf\u7684\u81ea\u7136\u8bed\u8a00\u5230SQL\uff08Text2SQL\uff09\u65b9\u6cd5\u548c\u68c0\u7d22\u589e\u5f3a\u751f\u6210\uff08RAG\uff09\u65b9\u6cd5\u5df2\u7ecf\u5728\u81ea\u7136\u8bed\u8a00\u5904\u7406\uff08NLP\uff09\u4e0e\u6570\u636e\u5e93\u4ea4\u4e92\u9886\u57df\u53d6\u5f97\u4e86\u4e00\u5b9a\u7684\u8fdb\u5c55\u3002\u7136\u800c\uff0c\u968f\u7740\u7528\u6237\u9700\u6c42\u7684\u590d\u6742\u5316\uff0c\u7279\u522b\u662f\u5728\u5546\u4e1a\u5e94\u7528\u4e2d\uff0c\u5355\u7eaf\u4f9d\u8d56Text2SQL\u6216RAG\u7684\u65b9\u6cd5\u53d8\u5f97\u8d8a\u6765\u8d8a\u4e0d\u591f\u7528\u3002\u7528\u6237\u7684\u67e5\u8be2\u5f80\u5f80\u4e0d\u4ec5\u9650\u4e8e\u7b80\u5355\u7684\u6570\u636e\u5e93\u68c0\u7d22\uff0c\u8fd8\u6d89\u53ca\u5230\u590d\u6742\u7684\u903b\u8f91\u63a8\u7406\u3001\u8de8\u6570\u636e\u6e90\u7684\u4fe1\u606f\u6574\u5408\u4ee5\u53ca\u5bf9\u5916\u90e8\u4e16\u754c\u77e5\u8bc6\u7684\u4f9d\u8d56\u3002<\/p>\n\n\n\n<p>\u4f8b\u5982\uff0c\u5728\u5546\u4e1a\u573a\u666f\u4e2d\uff0c\u7528\u6237\u53ef\u80fd\u4f1a\u63d0\u51fa\u4ee5\u4e0b\u590d\u6742\u7684\u67e5\u8be2\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>&#8220;\u54ea\u4e9b\u5ba2\u6237\u5bf9\u4ea7\u54c1X\u7684\u8bc4\u4ef7\u662f\u6b63\u9762\u7684\uff1f&#8221;<\/strong> \u8fd9\u4e2a\u95ee\u9898\u4e0d\u4ec5\u6d89\u53ca\u5230\u6570\u636e\u7684\u68c0\u7d22\uff0c\u8fd8\u9700\u8981\u5bf9\u81ea\u7531\u6587\u672c\u4e2d\u7684\u60c5\u611f\u8fdb\u884c\u5206\u6790\uff0c\u8fd9\u662fSQL\u96be\u4ee5\u5904\u7406\u7684\u3002<\/li>\n\n\n\n<li><strong>&#8220;\u4e3a\u4ec0\u4e48\u6211\u5728\u8fd9\u4e2a\u671f\u95f4\u7684\u9500\u552e\u989d\u4e0b\u964d\u4e86\uff1f&#8221;<\/strong> \u8fd9\u4e2a\u95ee\u9898\u53ef\u80fd\u9700\u8981\u7ed3\u5408\u591a\u4e2a\u6570\u636e\u8868\u7684\u4fe1\u606f\uff0c\u5e76\u901a\u8fc7\u903b\u8f91\u63a8\u7406\u5f97\u51fa\u7ed3\u679c\uff0c\u800c\u4e0d\u4ec5\u4ec5\u662f\u7b80\u5355\u7684\u6570\u636e\u68c0\u7d22\u3002<\/li>\n<\/ul>\n\n\n\n<p>\u4e3a\u4e86\u89e3\u51b3\u8fd9\u4e9b\u95ee\u9898\uff0c\u4f5c\u8005\u63d0\u51fa\u4e86\u8868\u683c\u589e\u5f3a\u751f\u6210\uff08TAG\uff09\u6a21\u578b\uff0c\u65e8\u5728\u7edf\u4e00\u81ea\u7136\u8bed\u8a00\u6a21\u578b\uff08LM\uff09\u4e0e\u6570\u636e\u5e93\u7ba1\u7406\u7cfb\u7edf\uff08DBMS\uff09\u7684\u80fd\u529b\uff0c\u4ee5\u5b9e\u73b0\u66f4\u52a0\u590d\u6742\u548c\u667a\u80fd\u7684\u67e5\u8be2\u5904\u7406\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">2. TAG\u6a21\u578b\u7684\u6838\u5fc3\u601d\u60f3<\/h3>\n\n\n\n<p>TAG\u6a21\u578b\u662f\u4e00\u4e2a\u4e09\u6b65\u9aa4\u7684\u751f\u6210\u8fc7\u7a0b\uff0c\u7528\u4e8e\u5904\u7406\u590d\u6742\u7684\u81ea\u7136\u8bed\u8a00\u67e5\u8be2\uff0c\u5e76\u751f\u6210\u4e0e\u6570\u636e\u5e93\u4e2d\u7684\u6570\u636e\u76f8\u5173\u7684\u7b54\u6848\u3002TAG\u7684\u8bbe\u8ba1\u601d\u60f3\u65e8\u5728\u586b\u8865\u73b0\u6709\u65b9\u6cd5\u7684\u7a7a\u767d\uff0c\u5e76\u6269\u5c55\u8bed\u8a00\u6a21\u578b\u4e0e\u6570\u636e\u5e93\u7cfb\u7edf\u7684\u4ea4\u4e92\u8303\u56f4\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">2.1 \u67e5\u8be2\u5408\u6210\uff08Query Synthesis\uff09<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u5b9a\u4e49<\/strong>\uff1a\u67e5\u8be2\u5408\u6210\u662fTAG\u6a21\u578b\u7684\u7b2c\u4e00\u6b65\uff0c\u5b83\u7684\u4efb\u52a1\u662f\u5c06\u7528\u6237\u7684\u81ea\u7136\u8bed\u8a00\u8bf7\u6c42\uff08Request, R\uff09\u8f6c\u6362\u4e3a\u4e00\u4e2a\u53ef\u4ee5\u5728\u6570\u636e\u5e93\u7cfb\u7edf\u4e2d\u6267\u884c\u7684\u67e5\u8be2\uff08Query, Q\uff09\u3002<\/li>\n\n\n\n<li><strong>\u529f\u80fd<\/strong>\uff1a\n<ul class=\"wp-block-list\">\n<li>\u8bc6\u522b\u4e0e\u7528\u6237\u8bf7\u6c42\u76f8\u5173\u7684\u6570\u636e\uff08\u4f8b\u5982\uff0c\u6839\u636e\u6570\u636e\u5e93\u8868\u7684\u7ed3\u6784\u8bc6\u522b\u9700\u8981\u67e5\u8be2\u7684\u8868\u548c\u5b57\u6bb5\uff09\u3002<\/li>\n\n\n\n<li>\u6267\u884c\u8bed\u4e49\u89e3\u6790\uff0c\u5c06\u81ea\u7136\u8bed\u8a00\u8bf7\u6c42\u7ffb\u8bd1\u4e3a\u6570\u636e\u5e93\u67e5\u8be2\u8bed\u8a00\uff08\u5982SQL\uff09\u3002<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>\u793a\u4f8b<\/strong>\uff1a\u5bf9\u4e8e\u7528\u6237\u8bf7\u6c42&#8221;\u603b\u7ed3\u7ecf\u5178\u6d6a\u6f2b\u7535\u5f71\u4e2d\u7968\u623f\u6700\u9ad8\u7684\u5f71\u7247\u7684\u8bc4\u8bba&#8221;\uff0cTAG\u6a21\u578b\u4f1a\u751f\u6210\u4e00\u4e2aSQL\u67e5\u8be2\uff0c\u8be5\u67e5\u8be2\u4f7f\u7528\u7535\u5f71\u6807\u9898\u3001\u8bc4\u8bba\u3001\u7968\u623f\u548c\u7c7b\u578b\u7b49\u5b57\u6bb5\uff0c\u4ece\u6570\u636e\u5e93\u4e2d\u68c0\u7d22\u76f8\u5173\u6570\u636e\u3002<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">2.2 \u67e5\u8be2\u6267\u884c\uff08Query Execution\uff09<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u5b9a\u4e49<\/strong>\uff1a\u67e5\u8be2\u6267\u884c\u662fTAG\u6a21\u578b\u7684\u7b2c\u4e8c\u6b65\uff0c\u5373\u6267\u884c\u751f\u6210\u7684\u67e5\u8be2\uff0c\u4ee5\u4ece\u6570\u636e\u5e93\u4e2d\u83b7\u53d6\u6240\u9700\u7684\u6570\u636e\uff08Table, T\uff09\u3002<\/li>\n\n\n\n<li><strong>\u529f\u80fd<\/strong>\uff1a\n<ul class=\"wp-block-list\">\n<li>\u5728\u6570\u636e\u5e93\u5f15\u64ce\u4e0a\u6267\u884c\u751f\u6210\u7684SQL\u67e5\u8be2\uff0c\u4ee5\u83b7\u53d6\u6240\u9700\u7684\u6570\u636e\u3002<\/li>\n\n\n\n<li>\u5904\u7406\u53ef\u80fd\u7684\u591a\u8868\u8fde\u63a5\u3001\u6570\u636e\u8fc7\u6ee4\u3001\u6392\u5e8f\u548c\u805a\u5408\u64cd\u4f5c\uff0c\u4ee5\u751f\u6210\u4e00\u4e2a\u5305\u542b\u76f8\u5173\u4fe1\u606f\u7684\u6570\u636e\u8868\u3002<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>\u793a\u4f8b<\/strong>\uff1a\u5728\u4e0a\u8ff0\u793a\u4f8b\u4e2d\uff0c\u67e5\u8be2\u6267\u884c\u4f1a\u4ece\u6570\u636e\u5e93\u4e2d\u7b5b\u9009\u51fa\u7c7b\u578b\u4e3a&#8221;\u6d6a\u6f2b&#8221;\u3001\u7968\u623f\u6700\u9ad8\u7684\u7535\u5f71\uff0c\u5e76\u8fd4\u56de\u76f8\u5173\u7684\u8bc4\u8bba\u6570\u636e\u3002<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">2.3 \u7b54\u6848\u751f\u6210\uff08Answer Generation\uff09<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u5b9a\u4e49<\/strong>\uff1a\u7b54\u6848\u751f\u6210\u662fTAG\u6a21\u578b\u7684\u6700\u540e\u4e00\u6b65\uff0c\u5b83\u901a\u8fc7\u7ed3\u5408\u7528\u6237\u8bf7\u6c42\uff08R\uff09\u548c\u6570\u636e\u5e93\u8fd4\u56de\u7684\u6570\u636e\u8868\uff08T\uff09\uff0c\u751f\u6210\u6700\u7ec8\u7684\u81ea\u7136\u8bed\u8a00\u7b54\u6848\uff08Answer, A\uff09\u3002<\/li>\n\n\n\n<li><strong>\u529f\u80fd<\/strong>\uff1a\n<ul class=\"wp-block-list\">\n<li>\u8bed\u8a00\u6a21\u578b\uff08LM\uff09\u6839\u636e\u67e5\u8be2\u6267\u884c\u8fd4\u56de\u7684\u6570\u636e\u548c\u539f\u59cb\u8bf7\u6c42\uff0c\u751f\u6210\u4e00\u4e2a\u7b26\u5408\u8bed\u4e49\u7684\u3001\u81ea\u7136\u8bed\u8a00\u5f62\u5f0f\u7684\u7b54\u6848\u3002<\/li>\n\n\n\n<li>\u53ef\u80fd\u6d89\u53ca\u590d\u6742\u7684\u6587\u672c\u751f\u6210\u3001\u6458\u8981\u63d0\u53d6\u548c\u63a8\u7406\u64cd\u4f5c\u3002<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>\u793a\u4f8b<\/strong>\uff1a\u5728\u4e0a\u8ff0\u793a\u4f8b\u4e2d\uff0c\u7b54\u6848\u751f\u6210\u6b65\u9aa4\u4f1a\u6839\u636e&#8221;\u6cf0\u5766\u5c3c\u514b\u53f7&#8221;\u7684\u8bc4\u8bba\u751f\u6210\u4e00\u6bb5\u603b\u7ed3\u6027\u7684\u6587\u672c\uff0c\u89e3\u91ca\u8fd9\u90e8\u7535\u5f71\u7684\u7528\u6237\u8bc4\u4ef7\u3002<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">3. TAG\u8bbe\u8ba1\u7a7a\u95f4<\/h3>\n\n\n\n<p>TAG\u6a21\u578b\u7684\u8bbe\u8ba1\u7a7a\u95f4\u975e\u5e38\u5e7f\u6cdb\uff0c\u6db5\u76d6\u4e86\u591a\u79cd\u67e5\u8be2\u7c7b\u578b\u3001\u6570\u636e\u6a21\u578b\u3001\u6570\u636e\u5e93\u6267\u884c\u5f15\u64ce\u548c\u8bed\u8a00\u6a21\u578b\u751f\u6210\u6a21\u5f0f\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">3.1 \u67e5\u8be2\u7c7b\u578b\uff08Query Types\uff09<\/h4>\n\n\n\n<p>TAG\u6a21\u578b\u53ef\u4ee5\u5904\u7406\u591a\u79cd\u7c7b\u578b\u7684\u81ea\u7136\u8bed\u8a00\u67e5\u8be2\uff0c\u5177\u4f53\u53ef\u5206\u4e3a\u4e24\u7c7b\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u6570\u636e\u805a\u5408\u7a0b\u5ea6<\/strong>\uff1a\u5305\u62ec\u7b80\u5355\u7684\u70b9\u67e5\u8be2\uff08\u4f8b\u5982\u68c0\u7d22\u5355\u4e2a\u6216\u5c11\u91cf\u6570\u636e\u8bb0\u5f55\uff09\u548c\u590d\u6742\u7684\u805a\u5408\u67e5\u8be2\uff08\u5982\u57fa\u4e8e\u591a\u4e2a\u6570\u636e\u8bb0\u5f55\u7684\u6392\u5e8f\u6216\u603b\u7ed3\uff09\u3002<\/li>\n\n\n\n<li><strong>\u77e5\u8bc6\u4e0e\u80fd\u529b\u9700\u6c42<\/strong>\uff1a\u5305\u62ec\u5bf9\u6570\u636e\u5e93\u4e2d\u5b58\u50a8\u7684\u6570\u636e\u7684\u9700\u6c42\u548c\u5bf9\u5916\u90e8\u77e5\u8bc6\u7684\u9700\u6c42\uff0c\u5982\u60c5\u611f\u5206\u6790\u3001\u5206\u7c7b\u7b49\u4efb\u52a1\u3002<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">3.2 \u6570\u636e\u6a21\u578b\uff08Data Model\uff09<\/h4>\n\n\n\n<p>TAG\u6a21\u578b\u53ef\u5e94\u7528\u4e8e\u4e0d\u540c\u7c7b\u578b\u7684\u6570\u636e\u6a21\u578b\uff0c\u5305\u62ec\u5173\u7cfb\u6570\u636e\u5e93\u4e2d\u7684\u7ed3\u6784\u5316\u6570\u636e\u3001\u534a\u7ed3\u6784\u5316\u6570\u636e\uff08\u5982JSON\u3001XML\uff09\u3001\u975e\u7ed3\u6784\u5316\u6570\u636e\uff08\u5982\u6587\u672c\u3001\u56fe\u50cf\uff09\u7b49\u3002\u4e0d\u540c\u7684\u6570\u636e\u6a21\u578b\u53ef\u4ee5\u5f71\u54cdTAG\u7cfb\u7edf\u7684\u67e5\u8be2\u5408\u6210\u548c\u6267\u884c\u6b65\u9aa4\u7684\u590d\u6742\u6027\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">3.3 \u6570\u636e\u5e93\u6267\u884c\u5f15\u64ce\u548cAPI\uff08Database Execution Engine and API\uff09<\/h4>\n\n\n\n<p>\u4e0d\u540c\u7684\u6570\u636e\u5e93\u6267\u884c\u5f15\u64ce\u652f\u6301\u4e0d\u540c\u7684API\u548c\u64cd\u4f5c\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u4f20\u7edf\u7684SQL\u67e5\u8be2\u5f15\u64ce\u9002\u7528\u4e8e\u5173\u7cfb\u578b\u6570\u636e\u3002<\/li>\n\n\n\n<li>\u5411\u91cf\u68c0\u7d22\u5f15\u64ce\u9002\u7528\u4e8e\u57fa\u4e8e\u5d4c\u5165\u5411\u91cf\u7684\u67e5\u8be2\uff0c\u5982\u76f8\u4f3c\u5ea6\u641c\u7d22\u3002<\/li>\n\n\n\n<li>\u4e00\u4e9b\u65b0\u5174\u7684\u6570\u636e\u5e93\u7cfb\u7edf\u652f\u6301\u8bed\u4e49\u64cd\u4f5c\u7b26\uff08\u5982\u8bed\u4e49\u8fc7\u6ee4\u3001\u6392\u5e8f\u3001\u805a\u5408\u7b49\uff09\uff0c\u5141\u8bb8\u66f4\u590d\u6742\u7684\u67e5\u8be2\u6267\u884c\u3002<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">3.4 \u8bed\u8a00\u6a21\u578b\u751f\u6210\u6a21\u5f0f\uff08LM Generation Patterns\uff09<\/h4>\n\n\n\n<p>\u7b54\u6848\u751f\u6210\u7684\u8fc7\u7a0b\u53ef\u4ee5\u5305\u62ec\u591a\u79cd\u6a21\u5f0f\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u5355\u6b21\u751f\u6210\uff1a\u8bed\u8a00\u6a21\u578b\u76f4\u63a5\u751f\u6210\u7b54\u6848\u3002<\/li>\n\n\n\n<li>\u8fed\u4ee3\u751f\u6210\uff1a\u8bed\u8a00\u6a21\u578b\u591a\u6b21\u751f\u6210\uff0c\u9010\u6b65\u6784\u5efa\u7b54\u6848\u3002<\/li>\n\n\n\n<li>\u9012\u5f52\u751f\u6210\uff1a\u8bed\u8a00\u6a21\u578b\u5728\u591a\u4e2a\u6570\u636e\u7247\u6bb5\u4e0a\u9012\u5f52\u64cd\u4f5c\uff0c\u751f\u6210\u6700\u7ec8\u7b54\u6848\u3002<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">4. \u5b9e\u9a8c\u8bc4\u4f30<\/h3>\n\n\n\n<p>\u4f5c\u8005\u8bbe\u8ba1\u4e86\u4e00\u4e2a\u65b0\u7684\u57fa\u51c6\u6d4b\u8bd5\u6765\u8bc4\u4f30TAG\u6a21\u578b\u7684\u6027\u80fd\uff0c\u7279\u522b\u662f\u5bf9\u4e8e\u90a3\u4e9b\u9700\u8981\u8bed\u4e49\u63a8\u7406\u6216\u4e16\u754c\u77e5\u8bc6\u7684\u590d\u6742\u67e5\u8be2\u3002\u5b9e\u9a8c\u6bd4\u8f83\u4e86\u4e0d\u540c\u65b9\u6cd5\u5728\u51c6\u786e\u6027\u548c\u6267\u884c\u65f6\u95f4\u4e0a\u7684\u8868\u73b0\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">4.1 \u57fa\u51c6\u6d4b\u8bd5\u65b9\u6cd5<\/h4>\n\n\n\n<p>\u4f5c\u8005\u9009\u62e9\u4e86BIRD\u6570\u636e\u96c6\u4e2d\u7684\u4e94\u4e2a\u9886\u57df\uff0c\u5e76\u5728\u6b64\u57fa\u7840\u4e0a\u4fee\u6539\u67e5\u8be2\uff0c\u4ee5\u589e\u52a0\u5bf9\u5916\u90e8\u77e5\u8bc6\u6216\u8bed\u4e49\u63a8\u7406\u7684\u9700\u6c42\u3002\u6700\u7ec8\u7684\u6d4b\u8bd5\u96c6\u5305\u542b80\u4e2a\u67e5\u8be2\uff0c\u5176\u4e2d\u4e00\u534a\u9700\u8981\u8bed\u4e49\u63a8\u7406\uff0c\u53e6\u4e00\u534a\u9700\u8981\u5916\u90e8\u77e5\u8bc6\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">4.2 \u57fa\u7ebf\u65b9\u6cd5<\/h4>\n\n\n\n<p>\u8bba\u6587\u8bc4\u4f30\u4e86\u51e0\u79cd\u57fa\u7ebf\u65b9\u6cd5\uff0c\u5305\u62ec\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Text2SQL<\/strong>\uff1a\u751f\u6210SQL\u67e5\u8be2\uff0c\u76f4\u63a5\u6267\u884c\u4ee5\u83b7\u53d6\u7b54\u6848\u3002<\/li>\n\n\n\n<li><strong>RAG<\/strong>\uff1a\u901a\u8fc7\u68c0\u7d22\u589e\u5f3a\u751f\u6210\u65b9\u6cd5\uff0c\u5728\u67e5\u8be2\u65f6\u68c0\u7d22\u76f8\u5173\u6570\u636e\u8bb0\u5f55\uff0c\u5e76\u901a\u8fc7\u8bed\u8a00\u6a21\u578b\u751f\u6210\u7b54\u6848\u3002<\/li>\n\n\n\n<li><strong>Text2SQL + LM<\/strong>\uff1a\u5148\u751f\u6210SQL\u67e5\u8be2\u83b7\u53d6\u76f8\u5173\u6570\u636e\uff0c\u7136\u540e\u901a\u8fc7\u8bed\u8a00\u6a21\u578b\u751f\u6210\u6700\u7ec8\u7b54\u6848\u3002<\/li>\n\n\n\n<li><strong>\u624b\u5199\u7684TAG\u5b9e\u73b0<\/strong>\uff1a\u901a\u8fc7\u624b\u5199\u7ba1\u9053\u5b9e\u73b0TAG\u6a21\u578b\uff0c\u7ed3\u5408\u6570\u636e\u5e93\u64cd\u4f5c\u548c\u8bed\u8a00\u6a21\u578b\u7684\u63a8\u7406\u80fd\u529b\u3002<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">4.3 \u5b9e\u9a8c\u7ed3\u679c<\/h4>\n\n\n\n<p>\u7ed3\u679c\u663e\u793a\uff0c\u624b\u5199\u7684TAG\u5b9e\u73b0\u663e\u8457\u4f18\u4e8e\u5176\u4ed6\u57fa\u7ebf\u65b9\u6cd5\uff0c\u5728\u5904\u7406\u590d\u6742\u67e5\u8be2\u65f6\u51c6\u786e\u7387\u9ad8\u8fbe55%\u3002\u5c24\u5176\u5728\u9700\u8981\u8bed\u4e49\u63a8\u7406\u7684\u67e5\u8be2\u4e2d\uff0cTAG\u6a21\u578b\u5c55\u73b0\u4e86\u5f3a\u5927\u7684\u6027\u80fd\uff0c\u51c6\u786e\u7387\u6bd4\u57fa\u7ebf\u65b9\u6cd5\u9ad8\u51fa20%-65%\u3002\u6b64\u5916\uff0c\u624b\u5199\u7684TAG\u5b9e\u73b0\u4e5f\u5728\u6267\u884c\u65f6\u95f4\u4e0a\u8868\u73b0\u51fa\u8272\uff0c\u6bd4\u5176\u4ed6\u65b9\u6cd5\u5feb\u4e86\u7ea63\u500d\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">5. \u76f8\u5173\u5de5\u4f5c<\/h3>\n\n\n\n<p>\u8bba\u6587\u8fd8\u56de\u987e\u4e86\u4e0eText2SQL\u548cRAG\u76f8\u5173\u7684\u7814\u7a76\uff0c\u4ee5\u53ca\u5bf9\u534a\u7ed3\u6784\u5316\u6570\u636e\u7684\u81ea\u7136\u8bed\u8a00\u67e5\u8be2\u7684\u5904\u7406\u65b9\u6cd5\u3002\u76f8\u6bd4\u4e4b\u4e0b\uff0cTAG\u6a21\u578b\u4e0d\u4ec5\u6db5\u76d6\u4e86\u8fd9\u4e9b\u7814\u7a76\u7684\u5185\u5bb9\uff0c\u8fd8\u6269\u5c55\u5230\u4e86\u66f4\u590d\u6742\u7684\u67e5\u8be2\u7c7b\u578b\u548c\u6570\u636e\u5904\u7406\u9700\u6c42\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">6. \u7ed3\u8bba\u4e0e\u5c55\u671b<\/h3>\n\n\n\n<p>\u4f5c\u8005\u603b\u7ed3\u8ba4\u4e3a\uff0cTAG\u6a21\u578b\u4f5c\u4e3a\u4e00\u4e2a\u7edf\u4e00\u7684\u6846\u67b6\uff0c\u80fd\u591f\u5904\u7406\u4f20\u7edf\u65b9\u6cd5\u65e0\u6cd5\u5e94\u5bf9\u7684\u590d\u6742\u67e5\u8be2\u3002TAG\u6a21\u578b\u5728\u7ed3\u5408\u81ea\u7136\u8bed\u8a00\u5904\u7406\u4e0e\u6570\u636e\u5e93\u64cd\u4f5c\u65b9\u9762\u5c55\u73b0\u4e86\u5de8\u5927\u7684\u6f5c\u529b\uff0c\u672a\u6765\u7684\u7814\u7a76\u53ef\u4ee5\u8fdb\u4e00\u6b65\u4f18\u5316TAG\u7cfb\u7edf\u7684\u6548\u7387\uff0c\u5e76\u63a2\u7d22\u66f4\u591a\u5e94\u7528\u573a\u666f\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p>TAG on GitHub: <a href=\"https:\/\/github.com\/TAG-Research\/TAG-Bench\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/github.com\/TAG-Research\/TAG-Bench<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8bba\u6587\u300aText2SQL is Not Enough: Unifying AI and Databases wi [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[8],"tags":[39,76],"class_list":["post-4534","post","type-post","status-publish","format-standard","hentry","category-tech","tag-ai","tag-rag"],"rttpg_featured_image_url":null,"rttpg_author":{"display_name":"NullThought","author_link":"https:\/\/nullthought.net\/?author=1"},"rttpg_comment":0,"rttpg_category":"<a href=\"https:\/\/nullthought.net\/?cat=8\" rel=\"category\">Tech<\/a>","rttpg_excerpt":"\u8bba\u6587\u300aText2SQL is Not Enough: Unifying AI and Databases wi&hellip;","_links":{"self":[{"href":"https:\/\/nullthought.net\/index.php?rest_route=\/wp\/v2\/posts\/4534","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nullthought.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nullthought.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nullthought.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nullthought.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4534"}],"version-history":[{"count":1,"href":"https:\/\/nullthought.net\/index.php?rest_route=\/wp\/v2\/posts\/4534\/revisions"}],"predecessor-version":[{"id":4535,"href":"https:\/\/nullthought.net\/index.php?rest_route=\/wp\/v2\/posts\/4534\/revisions\/4535"}],"wp:attachment":[{"href":"https:\/\/nullthought.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4534"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nullthought.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4534"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nullthought.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4534"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}