From 0f2b0e7986e469919a05ded193dade5cf1094bab Mon Sep 17 00:00:00 2001 From: jerryjzhang Date: Tue, 8 Oct 2024 19:13:05 +0800 Subject: [PATCH] [improvement][launcher]Add some examples to demo agent. --- .../java/com/tencent/supersonic/demo/S2VisitsDemo.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/launchers/standalone/src/main/java/com/tencent/supersonic/demo/S2VisitsDemo.java b/launchers/standalone/src/main/java/com/tencent/supersonic/demo/S2VisitsDemo.java index f8f78fc82..1f73a9962 100644 --- a/launchers/standalone/src/main/java/com/tencent/supersonic/demo/S2VisitsDemo.java +++ b/launchers/standalone/src/main/java/com/tencent/supersonic/demo/S2VisitsDemo.java @@ -155,8 +155,13 @@ public class S2VisitsDemo extends S2BaseDemo { agent.setDescription("帮助您用自然语言查询指标,支持时间限定、条件筛选、下钻维度以及聚合统计"); agent.setStatus(1); agent.setEnableSearch(1); - agent.setExamples(Lists.newArrayList("超音数访问次数", "近15天超音数访问次数汇总", "按部门统计超音数的访问人数", - "对比alice和lucy的停留时长", "超音数访问次数最高的部门")); + agent.setExamples(Lists.newArrayList( + "近15天超音数访问次数汇总", + "按部门统计超音数的访问人数", + "对比alice和lucy的停留时长", + "过去30天访问次数最高的部门top3", + "近1个月总访问次数超过100次的部门有几个", + "过去半个月每个核心用户的总停留时长")); AgentConfig agentConfig = new AgentConfig(); RuleParserTool ruleQueryTool = new RuleParserTool(); ruleQueryTool.setType(AgentToolType.NL2SQL_RULE);