基于LangChain与DeepSeek的JavaScript教学辅助智能体的研究  

Research on Intelligent Teaching Assistant Agent for JavaScript Based on LangChain and DeepSeek

在线阅读下载全文

作  者:刘安骞 LIU Anqian(Shanghai Zhongqiao Vocational and Technical University,Shanghai 201514,China)

机构地区:[1]上海中侨职业技术大学,上海201514

出  处:《现代信息科技》2025年第7期76-82,共7页Modern Information Technology

摘  要:文章提出了一种基于LangChain与DeepSeek-7B-R1的本地化智能教学系统,旨在解决JavaScript和jQuery教学中的异步编程理解与DOM操作错误检测难题。针对传统方案在语义理解、隐私安全与硬件需求上的矛盾,设计双引擎架构(规则预筛+大模型精调),集成动态AST解析与改进的RAG检索机制,构建覆盖57类典型错误的教学知识图谱。实验表明,系统在NVIDIA RTX 3060设备上实现平均2.8 s响应速度,教学建议准确率达91.2%,较传统LSTM方案提升43.7%。企业内训场景部署验证其可将学员问题解决效率提升41%,同时减少76%的教师人工干预。研究为编程教育领域提供了首个支持消费级硬件的高精度本地化智能教学框架,并开源核心组件以降低开发门槛。This paper proposes a localized intelligent teaching system based on LangChain and DeepSeek-7B-R1,aiming to solve the challenges of asynchronous programming comprehension and DOM operation error detection in JavaScript and jQuery teaching.To address the conflicts among semantic understanding,privacy security,and hardware requirements in traditional solutions,this paper designs a dual-engine architecture(rule pre-screening+LLM fine-tuning)that integrates dynamic AST parsing and an enhanced RAG retrieval mechanism,constructing a teaching Knowledge Graph covering 57 types of typical errors.Experiments demonstrate that the system achieves an average response time of 2.8 seconds on NVIDIA RTX 3060 device,and the teaching suggestion accuracy reaching 91.2%,with a 43.7%improvement over conventional LSTM approaches.Deployment in corporate internal training scenarios verifies its capability to enhance learner problem-solving efficiency by 41%while reducing teacher manual intervention by 76%.This research provides the first high-precision and localized intelligent teaching framework supporting consumer-grade hardware for the programming education field,with open-source core components to lower development barriers.

关 键 词:本地化智能教学系统 LangChain规则引擎 DeepSeek-7B-R1精调 RAG增强检索机制 JavaScript教学知识图谱 AST动态解析 消费级硬件部署 编程教育效能优化 

分 类 号:TP311[自动化与计算机技术—计算机软件与理论] TP391.4[自动化与计算机技术—计算机科学与技术]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象