摘 要: 对话机器人是使用自然语言处理与生成技术,模拟人类对话逻辑并与人进行交流的计算机程序。作为新一代人工智能产品的人机交互主要入口,逻辑实现方式与交互是对话机器人设计的关键。本文结合对话机器人的技术特点,在实现过程中采用基于Python语言的Django微服务Web应用开发框架,将对话算法模型与逻辑处理过程进行微服务化API封装,使其他应用能够请求对话服务的接口进行功能的二次开发。为了提高对话响应速度,本文采用了关系型 |
关键词: 微服务;Django;MySQL;Redis |
中图分类号: TP311.5
文献标识码: A
|
|
Overview of Chatbot Technology and System Architecture Implementation |
SUN Xiaoyu
|
( 1. Dalian Neusoft University of Information, Dalian 116023, China ; 2. Research Institute, Dalian Neusoft Education Technology Group Co. Limited, Dalian 116023, China)
sunxy@neuedu.com
|
Abstract: A chatbot is a computer program that simulates human conversation and communicates with human through natural language processing and generation technology. As main access to human-computer interaction for a new generation of artificial intelligence products, logical implementation and interaction are critical to the design of chatbots. Based on technical characteristics of chatbots, this paper adopts Python-based Django micro-service web application development framework in the implementation and encapsulates dialogue algorithm model and logic processing process into a microservice API (Application Programming Interface). Thus, other applications can request the interface of dialogue service for a secondary development of functions. In order to improve the efficiency of query processing, a memory-based non-relational database Redis (Remote Dictionary Server) is used with relational database MySQL (Structured Query Language) to reduce the number of reads from hard disk and so to optimize system performance. |
Keywords: micro-services; Django; MySQL; Redis |