Molly:使大型语言模型智能体更合乎逻辑地解决Python问题
Molly: Making Large Language Model Agents Solve Python Problem More Logically
AI总结:
本文提出Molly智能体,通过基于场景的交互解析提问意图并精确检索知识库,在生成阶段反思回答以确保事实准确与有效解答,从而更合乎逻辑地解决学习者在Python编程中遇到的问题。
摘要:
将大型语言模型(LLM)作为教学助手应用作为智能教育(尤其是计算机课程)的重要组成部分,已引起广泛关注。为了缩小LLM与计算机编程教育专家之间的差距,微调和检索增强生成(RAG)是现有研究中的两种主流方法。然而,针对特定任务的微调资源消耗大,且可能削弱模型的泛化能力。RAG在减少LLM幻觉方面表现良好,但在推理过程中生成无关的事实内容会对学习者造成显著困扰。为解决这些问题,我们引入了Molly智能体,专注于解决学习者在学习Python编程语言时遇到的提出问题。我们的智能体通过基于场景的交互自动解析学习者的提问意图,从而能够从构建的知识库中精确检索相关文档。在生成阶段,智能体会对生成的回答进行反思,以确保它们不仅符合事实内容,还能有效回答用户的查询。在构建的中文Python问答数据集上的大量实验表明了Molly智能体的有效性,表明其在为Python问题提供有用回答方面的性能得到了提升。
英文摘要:
Applying large language models (LLMs) as teaching assists has attracted much attention as an integral part of intelligent education, particularly in computing courses. To reduce the gap between the LLMs and the computer programming education expert, fine-tuning and retrieval augmented generation (RAG) are the two mainstream methods in existing researches. However, fine-tuning for specific tasks is resource-intensive and may diminish the model`s generalization capabilities. RAG can perform well on reducing the illusion of LLMs, but the generation of irrelevant factual content during reasoning can cause significant confusion for learners. To address these problems, we introduce the Molly agent, focusing on solving the proposed problem encountered by learners when learning Python programming language. Our agent automatically parse the learners' questioning intent through a scenario-based interaction, enabling precise retrieval of relevant documents from the constructed knowledge base. At generation stage, the agent reflect on the generated responses to ensure that they not only align with factual content but also effectively answer the user's queries. Extensive experimentation on a constructed Chinese Python QA dataset shows the effectiveness of the Molly agent, indicating an enhancement in its performance for providing useful responses to Python questions.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。