Innovation and entrepreneurship intelligent consultation method based on langchain architecture
Through the entrepreneurial intelligent consulting method based on the langchain architecture, using large language models and natural language processing technology, it solves the problem that existing entrepreneurial intelligent services cannot flexibly interact and meet diverse needs, and achieves efficient and personalized entrepreneurial consulting services, improving The intelligence and real-time nature of the service are enhanced.
Patent Information
- Application Number
- CN202410323170.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-21
- Publication Date
- 2024-08-30
AI Technical Summary
Existing entrepreneurial smart services cannot achieve flexible user interaction, lack in-depth understanding of user needs and personalized responses, and cannot meet the diverse and rapidly changing needs of customers, resulting in insufficient service efficiency and accuracy.
Using a method based on the langchain architecture, intelligent consulting services are realized through knowledge induction, agent tool writing, vectorized storage of knowledge points, question matching and knowledge retrieval, answer generation and rationality review, combined with large language models and natural language processing technology.
It improves the intelligence, personalization and real-time nature of consulting services, can accurately understand and respond to customer needs, provides personalized entrepreneurial guidance and strategies, meets the diverse and rapidly changing needs of customers, and improves service efficiency and accuracy.
Smart Images

Figure CN118568210A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of innovation and entrepreneurship services, and specifically to an innovation and entrepreneurship intelligent consulting method based on a langchain architecture. Background Art
[0002] In recent years, in today's era, the background of innovation and entrepreneurship is extremely rich and diverse. From the policy level, the government has provided tax incentives, financial support and entrepreneurship training to encourage innovation and entrepreneurial activities, creating a good policy environment for entrepreneurs. At the economic level, as traditional industries are facing the pressure of transformation and upgrading, innovation and entrepreneurship have become an important driving force for the transformation of economic development methods. The rapid development of the digital economy, especially emerging fields such as the Internet, big data and artificial intelligence, has provided endless new opportunities for innovative entrepreneurs. The continuous evolution of social needs and consumption upgrades have led to the continuous upgrading of consumer demand for products and services, which has prompted entrepreneurs to continuously innovate and improve products and services. Technological progress has provided strong technical support for innovation and entrepreneurship. For example, technologies such as the Internet, cloud computing and artificial intelligence have been widely used in various fields, bringing more possibilities for entrepreneurs. At the same time, colleges and universities and society have also attached great importance to the cultivation of innovative and entrepreneurial talents, and have provided talent reserves for innovation and entrepreneurship through various training methods. However, the instability and uncertainty of the international economic situation have also brought certain challenges to innovation and entrepreneurship. But at the same time, changes in international market demand and technological development have also brought new opportunities. When ordinary people face entrepreneurship, they often feel that their ideas are unclear and they don't know how to start. This is mainly due to lack of experience and knowledge, as well as lack of understanding of the market and industry.
[0003] In order to solve this problem, this paper provides an intelligent consulting method for innovation and entrepreneurship based on the langchain architecture. It perfectly combines advanced large language model technology with innovation and entrepreneurship consulting services. Through in-depth analysis and processing of rich innovation and entrepreneurship knowledge resources, a comprehensive knowledge base is carefully constructed and plugged into the large model through the RAG mode. Through interactive dialogue with users, relying on the powerful understanding ability of the large model, the user's diverse consulting intentions can be accurately grasped, including knowledge consulting, entrepreneurship guidance, trend analysis and other aspects. Based on these needs, the appropriate tool chain can be quickly and automatically called to generate the accurate results expected by users. This innovative service model not only improves the efficiency of consulting, but also ensures the efficiency and accuracy of the service, providing users with a new and efficient innovation and entrepreneurship consulting service experience.
[0004] 1. Existing entrepreneurial intelligent services cannot interact with users: they may only be able to answer according to fixed instructions or rules, and cannot flexibly respond to users' diverse questions and needs. Secondly, some services lack the understanding of the real intentions and context behind users' questions, making it difficult to conduct in-depth interactive communication. In addition, existing services may not be able to fully tap the information behind user needs, resulting in an inability to accurately match users' actual needs, affecting the accuracy and effectiveness of the service. Finally, conversational interactions often appear stiff and mechanical, lacking personalization and user-friendliness, making it difficult to establish a good user experience. Therefore, it is necessary to further enhance the ability of interactive communication and the level of personalized customization to improve the interactive experience between entrepreneurial intelligent services and users.
[0005] 2. Unable to meet the diverse needs of customers: First, some algorithms use fixed patterns or rules and cannot flexibly adapt to the ever-changing needs and preferences of customers, resulting in the inability to provide personalized services. Secondly, some algorithms lack the ability to perceive and respond to changes in customer needs in real time, and cannot adjust and optimize services in a timely manner, making it difficult to meet the rapidly changing needs of customers. In addition, the existing algorithms may not be able to obtain sufficient information on the diverse needs of customers, and cannot accurately understand the actual needs of customers, and thus cannot provide personalized services that meet customer expectations. Finally, some algorithms lack the ability to predict future customer needs, and cannot make corresponding adjustments and preparations in advance, resulting in the inability to effectively meet the diverse needs of customers. Therefore, it is necessary to further improve the flexibility, real-time performance, information acquisition capabilities, and prediction capabilities of the algorithm to better meet the personalized and diversified needs of customers. Summary of the invention
[0006] 1. An innovative and entrepreneurial intelligent consulting method based on the langchain architecture, the specific steps of which are: Step S1: Knowledge Summarization Step S2: Agent tool writing and rule formulation Step S3: Vectorized storage of knowledge points Step S4: Question matching and knowledge retrieval Step S5: Large model answer generation Step S6: Answer rationality review and optimization The step S1: summarize and organize the innovation and entrepreneurship knowledge according to dimensions such as themes, authors, and fields.
[0007] The step S2 is: writing Agent (agent robot) tools of different knowledge categories, formulating prompt rules, and communicating with the big model on behalf of the user.
[0008] The step S3: generates unstructured text data from knowledge, divides the text into text blocks using a word segmenter, ensures that each text block has relatively complete and independent semantics, and adopts a single knowledge point storage strategy. For each knowledge point, first extract a keyword list, embed these keywords, vectorize them, and store them in the form of key-value pairs.
[0009] Step S4: vectorize each user's innovative question and each knowledge point in the text block, and generate a vector query knowledge vector library to match several answers with the shortest distance and the highest similarity.
[0010] The step S5: will be submitted to the large language model to summarize and generate the answer.
[0011] Step S6: The Agent determines the rationality of the answer according to the prompt requirements. If it does not meet the rules, the query and model summary answer process needs to be repeated until an answer that the Agent believes meets the prompt requirements is generated.
[0012] Compared with the prior art, the present invention has the following beneficial effects: The invention aims to provide consulting entrepreneurship methods that can achieve intelligent interaction with customers, and use Tanford NER and spaCy to effectively understand customer needs and be more intelligent: Intelligence: Entrepreneurship intelligent service algorithms use artificial intelligence technology and have a high level of intelligence. They can understand and analyze customer needs and provide corresponding solutions and suggestions. Through learning and iteration, the algorithm can continuously improve its intelligence level and provide customers with more accurate and personalized services. Personalization: Entrepreneurship intelligent service algorithms can provide personalized entrepreneurship consultation and guidance based on customers' specific needs and preferences. By collecting and analyzing customer data, the algorithm can generate targeted suggestions to help customers develop entrepreneurial methods and strategies that suit them. Real-time: Entrepreneurship intelligent service algorithms have the ability to perceive and respond to changes in customer needs in real time. By continuously monitoring and analyzing customer behavior and feedback, the algorithm can adjust and optimize services in a timely manner to meet customers' changing needs. Experience accumulation: Entrepreneurship intelligent service algorithms can learn from a large number of entrepreneurial cases and experiences and apply these experiences to actual consultations. By accumulating and summarizing best practices in various entrepreneurial situations, the algorithm can provide customers with more effective and feasible entrepreneurial methods. Improve efficiency: Entrepreneurship intelligent service algorithms can automate and optimize the entrepreneurial consulting process and improve the efficiency and accuracy of services. Customers can interact with the algorithm through the intelligent interactive interface anytime and anywhere, without having to wait for a response from a human consultant, saving time and energy.
[0013] This invention aims to solve the problem that consulting algorithms can meet the various needs of customers. By writing knowledge category agents and formulating prompt rules, customers can be given diversified services to meet their various needs: Diversified needs: Entrepreneurial intelligent service algorithms can adapt to the diverse needs of customers. By analyzing data such as customer behavior, preferences and feedback, the algorithm can understand the personalized needs of customers and provide corresponding solutions and suggestions. Whether it is market research, business model design, financing plan or brand promotion, the algorithm can provide corresponding support and guidance according to customer needs. Flexible and flexible: Entrepreneurial intelligent service algorithms are flexible and flexible. The algorithm can be adjusted and optimized according to the real-time needs of customers to adapt to the rapidly changing market environment. Customers can interact with the algorithm at any time and adjust their entrepreneurial strategies and methods according to their own needs to maintain competitiveness and innovation. Personalized customization: Entrepreneurial intelligent service algorithms can provide customized services according to the personalized needs of customers. By collecting and analyzing customer data, the algorithm can generate targeted suggestions and solutions to help customers achieve personalized entrepreneurial goals. The algorithm can provide corresponding entrepreneurial strategies and methods according to the different characteristics of customers such as industry, scale, and funds. Efficiency and accuracy: Entrepreneurial intelligent service algorithms improve the efficiency and accuracy of services through automation and optimization. Customers can access the algorithm at any time, regardless of time and location, and quickly obtain the information and advice they need. The algorithm can update and adjust the solutions provided in real time based on customer input and feedback, ensuring accurate and timely assistance. Experience accumulation and knowledge sharing: Entrepreneurship intelligent service algorithms can learn from a large number of entrepreneurial cases and experiences, and apply these experiences to actual consulting. By accumulating and summarizing the best practices in various entrepreneurial situations, the algorithm can provide customers with more effective and feasible entrepreneurial methods. At the same time, the algorithm can share these experiences and knowledge to benefit more entrepreneurs. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] Figure 1 It is a schematic diagram of the structure of the calculation flow chart of the present invention. DETAILED DESCRIPTION
[0015] In order to make the technical means, creative features, objectives and effects achieved by the present invention easy to understand, the present invention is further explained below in conjunction with specific implementation methods.
[0016] In the description of the present invention, it should be noted that the terms "upper", "lower", "inner", "outer", "front end", "rear end", "two ends", "one end", "the other end" and the like indicate positions or positional relationships based on the positions or positional relationships shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance.
[0017] In the description of the present invention, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "provided with", "connected", etc. should be understood in a broad sense. For example, "connected" can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0018] Example
[0019] The present invention provides a technical solution: 1. An innovative and entrepreneurial intelligent consulting method based on the langchain architecture, the specific steps of which are: Step S1: Knowledge Summarization Step S2: Agent tool writing and rule formulation Step S3: Vectorized storage of knowledge points Step S4: Question matching and knowledge retrieval Step S5: Large model answer generation Step S6: Answer rationality review and optimization The step S1: summarize and organize the innovation and entrepreneurship knowledge according to dimensions such as themes, authors, and fields.
[0020] The step S2 is: writing Agent (agent robot) tools of different knowledge categories, formulating prompt rules, and communicating with the big model on behalf of the user.
[0021] The step S3: generates unstructured text data from knowledge, divides the text into text blocks using a word segmenter, ensures that each text block has relatively complete and independent semantics, and adopts a single knowledge point storage strategy. For each knowledge point, first extract a keyword list, embed these keywords, vectorize them, and store them in the form of key-value pairs.
[0022] Step S4: vectorize each user's innovative question and each knowledge point in the text block, and generate a vector query knowledge vector library to match several answers with the shortest distance and the highest similarity.
[0023] The step S5: will be submitted to the large language model to summarize and generate the answer.
[0024] Step S6: The Agent determines the rationality of the answer according to the prompt requirements. If it does not meet the rules, the query and model summary answer process needs to be repeated until an answer that the Agent believes meets the prompt requirements is generated.
[0025] The technical solution of the present invention is as follows: The method of the present invention breaks through the traditional innovation and entrepreneurship consulting business model, and summarizes and organizes innovation and entrepreneurship knowledge: constructs a knowledge graph database, and collects literature, articles, reports and other resources related to innovation and entrepreneurship from multiple sources through data capture, cleaning and integration technology. Use natural language processing (NLP) technology to perform entity recognition and relationship extraction, and classify and associate knowledge according to multiple dimensions such as subject, author, and field. Use open source tools such as Stanford NER, spaCy or custom algorithms to complete entity recognition tasks, and combine graph databases such as Neo4j and GraphDB to store the relationship structure between knowledge.
[0026] First, in order to write knowledge category agents and formulate prompt rules: develop intelligent agent robots (Agents) based on innovation and entrepreneurship. Agents can set different dialogue processes and strategies according to different knowledge categories, and interact with the big model according to preset prompt rules. Prompt rule design needs to consider how to guide the big model to accurately understand and respond to user questions, including context understanding and question type identification.
[0027] Secondly, knowledge is converted into unstructured text data and word segmentation and keyword embedding: After converting the innovation and entrepreneurship knowledge content into unstructured text form, the word segmentation tool is used to cut the long text into logically independent and complete text blocks. For each knowledge point, the keyword extraction algorithm is applied to obtain the keyword list, and then the word embedding technology is used to convert the keywords into high-dimensional vectors to facilitate the subsequent calculation of similarity. When storing, the knowledge points and their corresponding vectors are stored in the database or search engine system, such as Elasticsearch or Milvus, in the form of key-value pairs.
[0028] In order to better meet the consulting needs of different users, user questions are vectorized and matched with the knowledge base: after users raise innovative questions, they are also converted into vector form through word segmentation, keyword extraction and embedding. After that, an approximate nearest neighbor search is performed in the knowledge vector library to find the knowledge point closest to the question vector. This step usually relies on a specialized vector retrieval engine to achieve efficient and fast similarity matching.
[0029] After the large language model has a deep understanding of the user's intention through continuous conversations, it can generate answers using the large language model: Architecture and Technology: The matched knowledge points with the highest similarity are used as input and submitted to the large-scale pre-trained language model to generate a preliminary answer summary or detailed answer. The model uses its powerful language understanding and generation capabilities to integrate relevant knowledge points to generate coherent and in-depth answers.
[0030] To ensure the efficiency and accuracy of task execution, the agent judges the rationality of the answer and performs loop optimization: the agent is responsible for verifying the rationality of the answer generated by the large model, which can be achieved through a series of set rules, constraints or secondary reasoning mechanisms. If the answer does not meet the prompt requirements, the agent will reorganize the prompt or adjust the query strategy based on the feedback information, and request the answer from the large model again until a satisfactory result is obtained. This process may involve reinforcement learning and other means to continuously optimize the agent's decision logic and dialogue strategy.
[0031] This process overview is about the method of building an intelligent agent robot based on innovation and entrepreneurship knowledge. First, through data capture, cleaning and integration technology, literature, articles and reports related to innovation and entrepreneurship are collected, and then natural language processing technology is used to identify entities and extract relationships to build a knowledge graph database. Next, an intelligent agent robot is developed, and dialogue processes and strategies are set according to different knowledge categories. At the same time, the knowledge content is converted into unstructured text data, and word segmentation, keyword extraction and embedding are performed to store and match user questions. When a user asks a question, the agent robot will vectorize the question and match it with the vector in the knowledge base to find the closest knowledge point. Subsequently, the answer is generated using a large language model, and the agent robot judges the rationality of the answer, and performs cyclic optimization until a satisfactory result is obtained. The whole process involves a large amount of data processing, text analysis and artificial intelligence technology to achieve the goal of the intelligent question-answering system, so that the entire process can meet the requirements of realizing intelligent help for customers and meet the diversified needs of customers.
[0032] The above shows and describes the basic principles and main features of the present invention and the advantages of the present invention. It should be understood by those skilled in the art that the present invention is not limited to the above embodiments. The above embodiments and descriptions are only for explaining the principles of the present invention. Without departing from the spirit and scope of the present invention, the present invention may have various changes and improvements, which fall within the scope of the present invention to be protected. The scope of protection of the present invention is defined by the attached claims and their equivalents.
Claims
1. An innovative and entrepreneurial intelligent consulting method based on the langchain architecture, the specific steps of which are: Step S1: Knowledge Summarization Step S2: Agent tool writing and rule formulation Step S3: Vectorized storage of knowledge points Step S4: Question matching and knowledge retrieval Step S5: Large model answer generation Step S6: Review and optimize the rationality of the answer.
2. According to claim 1, an intelligent consulting method for innovation and entrepreneurship based on the langchain architecture, the steps are: Step S1: Summarize and organize innovation and entrepreneurship knowledge according to dimensions such as themes, authors, and fields.
3. According to claim 1, an intelligent consulting method for innovation and entrepreneurship based on the langchain architecture, the steps are: Step S2: write Agent (agent robot) tools of different knowledge categories, formulate prompt rules, and replace users to communicate with large models.
4. According to the innovation and entrepreneurship intelligent consulting method based on the langchain architecture described in claim 1, the steps are: Step S3: Generate unstructured text data from knowledge, use a word segmenter to divide these texts into text blocks, ensure that each text block has relatively complete and independent semantics, and adopt a single knowledge point storage strategy. For each knowledge point, first extract a keyword list, and embed these keywords (Embedding), vectorize them, and store them in the form of key-value pairs.
5. An intelligent consulting method for innovation and entrepreneurship based on the langchain architecture according to claim 1, wherein the steps are: Step S4: vectorize each user's innovation question and each knowledge point in the text block, and generate a vector query knowledge vector library to match several answers with the closest distance and the highest similarity.
6. According to the innovation and entrepreneurship intelligent consulting method based on the langchain architecture described in claim 1, the steps are: Step S5: will be submitted to the large language model to summarize and generate answers.
7. According to claim 1, an intelligent consulting method for innovation and entrepreneurship based on the langchain architecture, the steps are: Step S6: The Agent judges the rationality of the answer according to the prompt requirements. If it does not meet the rules, the process of querying and summarizing the answer with the model needs to be repeated until an answer that the Agent believes meets the prompt requirements is generated.
Citation Information
Patent Citations
Intelligent question and answer implementation method and system based on large model and semantic map
CN117271724A
Cited By
Literature systematic retrieval enhancement and knowledge mining method based on citation network
CN118861130A
Method for discovering network hot topics in science and technology field
CN118897894A
Automobile intelligent question-answering system and method based on large model and retrieval enhancement
CN119202206A
