소스 검색

智能选址aiAgent修改

liutao 3 달 전
부모
커밋
f45ca65ee4

+ 7 - 2
aiAgent_gd/qwen_agent/memory/data/plans/plan_examples_智能选址.jsonl

@@ -2,11 +2,16 @@
   {
     "query_type": "land_site_selection",
     "query": "帮我在萧山区推荐几块50亩左右的工业用地",
-    "plan": "Question: 帮我在萧山区推荐一宗50亩左右的工业用地 \nThought: 用户问题中想查询城市为‘萧山区’,面积为‘50’亩左右,规划用途为‘工业用地’的地块,工业用地属于土地用途大类,包含如下具体的土地用途小类'工业用地','通用仓储类','标准厂房','工业用地(新业态用地M0)','工矿仓储用地','其他工业用地',所以需要通过[LandSiteSelectionSqlAgent]查询图层信息,最后使用summary的Action来表示供应情况。Plan: ```json\n    [{\"action_name\": \"LandSiteSelectionSqlAgent\", \"instruction\": \"你需要调用 [LandSiteSelectionSqlAgent],来查询城市为‘萧山区’,面积为‘50’亩左右,土地用途为'工业用地','通用仓储类','标准厂房','工业用地(新业态用地M0)','工矿仓储用地','其他工业用地'的地块\"},\n    {\"action_name\": \"summary\", \"instruction\": \"你需要根据用户的Question和查询的结果,回答用户问题。\"}]"
+    "plan": "Question: 帮我在萧山区推荐一宗50亩左右的工业用地 \nThought: 用户问题中想查询城市为‘萧山区’,面积为‘50’亩左右,土地用途为‘工业用地’的地块,工业用地属于土地用途大类,包含如下具体的土地用途小类'工业用地','通用仓储类','标准厂房','工业用地(新业态用地M0)','工矿仓储用地','其他工业用地',所以需要通过[LandSiteSelectionSqlAgent]查询图层信息,最后使用summary的Action来总结并输出。Plan: ```json\n    [{\"action_name\": \"LandSiteSelectionSqlAgent\", \"instruction\": \"你需要调用 [LandSiteSelectionSqlAgent],来查询城市为‘萧山区’,面积为‘50’亩左右,土地用途为'工业用地','通用仓储类','标准厂房','工业用地(新业态用地M0)','工矿仓储用地','其他工业用地'的地块\"},\n    {\"action_name\": \"summary\", \"instruction\": \"你需要根据用户的Question和查询的结果,回答用户问题。\"}]"
   },
   {
     "query_type": "land_site_selection",
     "query": "帮我在萧山区推荐一宗50亩左右的标准厂房",
-    "plan": "Question: 帮我在萧山区推荐一宗50亩左右的标准厂房\nThought: 用户问题中想查询城市为‘萧山区’,数量为‘1’宗,面积为‘50’亩左右,规划用途为‘标准厂房’的地块,工业用地属于土地用途小类,所以需要通过[LandSiteSelectionSqlAgent]查询图层信息,最后使用summary的Action来表示供应情况。Plan: ```json\n    [{\"action_name\": \"LandSiteSelectionSqlAgent\", \"instruction\": \"你需要调用 [LandSiteSelectionSqlAgent],来查询城市为‘萧山区’,数量为‘1’宗,面积为‘50’亩左右,土地用途为'标准厂房'的地块\"},\n    {\"action_name\": \"summary\", \"instruction\": \"你需要根据用户的Question和查询的结果,回答用户问题。\"}]"
+    "plan": "Question: 帮我在萧山区推荐一宗50亩左右的标准厂房\nThought: 用户问题中想查询城市为‘萧山区’,数量为‘1’宗,面积为‘50’亩左右,土地用途为‘标准厂房’的地块,工业用地属于土地用途小类,所以需要通过[LandSiteSelectionSqlAgent]查询图层信息,最后使用summary的Action来总结并输出。Plan: ```json\n    [{\"action_name\": \"LandSiteSelectionSqlAgent\", \"instruction\": \"你需要调用 [LandSiteSelectionSqlAgent],来查询城市为‘萧山区’,数量为‘1’宗,面积为‘50’亩左右,土地用途为'标准厂房'的地块\"},\n    {\"action_name\": \"summary\", \"instruction\": \"你需要根据用户的Question和查询的结果,回答用户问题。\"}]"
+  },
+  {
+    "query_type": "land_site_selection",
+    "query": "帮我在杭州市滨江区正泰大厦附近推荐一宗50亩左右的标准厂房",
+    "plan": "Question: 帮我在杭州市滨江区正泰大厦附近推荐一宗50亩左右的标准厂房 \nThought: 用户问题中想查询城市为‘杭州市’,区县为‘滨江区’,详细地点为‘杭州市滨江区正泰大厦’,数量为‘1’宗,面积为‘50’亩左右,土地用途为‘标准厂房’的地块,所以需要先通过[GisGeocoderAgent]将详细的地址转换为坐标点,再通过[LandSiteSelectionSqlAgent]查询图层信息,最后使用summary的Action来总结并输出。Plan: ```json\n    [{\"action_name\": \"GisGeocoderAgent\", \"instruction\": \"你需要调用 [GisGeocoderAgent],来将‘杭州市滨江区正泰大厦’ 转换为坐标wkt\"},\n {\"action_name\": \"LandSiteSelectionSqlAgent\", \"instruction\": \"你需要调用 [LandSiteSelectionSqlAgent],来查询行政区为‘滨江区’,面积为‘50’亩左右,土地用途为‘标准厂房’的地块\"},   {\"action_name\": \"summary\", \"instruction\": \"你需要根据用户的Question和查询的结果,回答用户问题。\"}]"
   }
 ]

+ 6 - 1
aiAgent_gd/qwen_agent/memory/data/sqls/sql_examples_智能选址.jsonl

@@ -8,5 +8,10 @@
   "query_type": "land_site_selection",
   "query": "帮我在萧山区推荐一宗50亩左右的标准厂房",
   "sql_code": "select id, dkid, xzqmc, dkmc, address, dkmj, tdyt, st_astext(st_centroid(shape)) as center_wkt from sde.ecgap_klyzy where xzqmc = '萧山区' and tdyt ='标准厂房' and abs(dkmj - 50) <= 5 and sfsj=1 order by dkmj nulls last limit 1"
- }
+ },
+ {
+ "query_type": "land_site_selection",
+ "query": "帮我在杭州市滨江区正泰大厦附近推荐一宗50亩左右的标准厂房",
+ "sql_code": "select t.* from (select id, dkid, xzqmc, dkmc, address, dkmj, tdyt, round(st_distance(st_geometryfromtext('POINT (40520795.286336236 3343271.716593298)', 4528), st_transform(shape, 4528))::numeric,0) as distance, st_astext(st_centroid(shape)) as center_wkt from sde.ecgap_klyzy where xzqmc = '萧山区' and tdyt ='标准厂房' and sfsj=1 and abs(dkmj - 50) <= 5) as t where t.distance <= 5000  order by t.dkmj nulls last limit 1"
+}
 ]