MultiAgent进行数据分析
一、目标
自动化生成一篇最近的香氛Brief。为了生成Brief,用户首选需要对感兴趣的数据进行洞察,Mark出感兴趣的部分,然后根据template对感兴趣的部分生成Brief。所以我们设计了2个模块,模块1是Data Insight。模块2是Brief Generate。模块是Concept Testing。

二、Data Insight模块
采用Agent模式,结合数据,根据问题进行使用或创造不同的工具对数据进行分析。
ReAct思考模式解决问题



绘图:


中文的问答和绘图,实现了任意问题,任意绘图




三、Brief Generate
交互式问预设好的问卷,然后用户进行回答。实现原理: 设计2个Agent和3个工具。
Assistant Agent: 助理Agent,负责使用工具,获取新问题,保存用户回答
Brief Agent: 负责对用户的所有回答进行总结,可以使用工具获取所有问答对
Assistant Agent可以使用的工具
def get_question(index) #根据问题序号获取问题
def save_answer(index, answer) #保存用户的答案
Brief Agent: 可以使用的工具
def get_questions_answers() 获取用户提交的问答对




MultiAgent进行数据分析
https://johnson7788.github.io/2024/06/11/MultiAgent%E8%BF%9B%E8%A1%8C%E6%95%B0%E6%8D%AE%E5%88%86%E6%9E%90/