Chatbot Source Code Explanation via Intermediary Database
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Current chatbots struggle to provide accurate answers when questions contain source code or technical terms not stored in their databases, leading to inadequate responses due to limited recognition and translation issues.
Innovation Solution
A method and system that analyze source code text using a source code database to generate commentary information, which is then processed through natural language processing to provide accurate answers, including source code commentary, to users via a communication connection between a terminal and a server.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Productivity
If a chatbot uses standard natural language processing to answer questions, then it can provide quick responses to common queries, but it fails to accurately understand and respond to questions containing source code or technical terms
Solution Approach 1:
The patent introduces a source code database as an intermediary component between the chatbot and the user's question. When the chatbot detects source code or technical terms in a question, it queries the source code database to retrieve relevant commentary and meaning information, which then informs the final answer. This intermediary mechanism enables the chatbot to accurately understand technical content while maintaining efficient response times.
2Ease of operation
If a chatbot database stores only common terminology, then the system remains simple and fast to operate, but it cannot provide appropriate answers when questions use technical source code terms
Solution Approach 1:
The patent segments the knowledge base into two distinct parts: a standard chatbot database for common terminology and a specialized source code database for technical terms and code commentary. This segmentation allows the system to maintain simplicity for general operations while adding specialized capabilities for technical queries without complicating the overall system architecture.
Solution Approach 2:
The source code database is pre-populated with commentary and meaning information for various source code snippets and technical terms before the chatbot needs to answer questions. This preliminary action ensures that when the chatbot encounters technical terms, the interpretation and context are already prepared and available, enabling immediate accurate responses without real-time complex analysis.
3Productivity
If machine translation is used to translate source code comments, then basic understanding is achieved, but the translated meaning often differs from the actual source code meaning reducing answer quality
Solution Approach 1:
Instead of relying on machine translation to interpret source code meaning, the patent directly copies the original commentary and meaning information from the source code database. This copying approach preserves the exact intended meaning of the source code without the distortions introduced by automated translation, ensuring high accuracy in the chatbot's responses.
Data Source
AI summary
An embodiment provides a method of providing a question-answer service including source code commentary based on a communication connection between a terminal and a server. The method includes receiving, by the server, request data including source code text from the terminal; generating, by the server, commentary information of the source code text by analyzing the source code text based on a source code database; and performing, by the server, natural language processing on the request data based on the commentary information of the source code text to generate answer data corresponding to the request data and provide the answer data to the terminal.


