CN118839606A - Product intelligent design method and system based on domain knowledge enhanced large language model - Google Patents
Product intelligent design method and system based on domain knowledge enhanced large language model Download PDFInfo
- Publication number
- CN118839606A CN118839606A CN202410909921.3A CN202410909921A CN118839606A CN 118839606 A CN118839606 A CN 118839606A CN 202410909921 A CN202410909921 A CN 202410909921A CN 118839606 A CN118839606 A CN 118839606A
- Authority
- CN
- China
- Prior art keywords
- design
- product
- task
- knowledge
- language model
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F30/00—Computer-aided design [CAD]
- G06F30/20—Design optimisation, verification or simulation
- G06F30/27—Design optimisation, verification or simulation using machine learning, e.g. artificial intelligence, neural networks, support vector machines [SVM] or training a model
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/004—Artificial life, i.e. computing arrangements simulating life
- G06N3/006—Artificial life, i.e. computing arrangements simulating life based on simulated virtual individual or collective life forms, e.g. social simulations or particle swarm optimisation [PSO]
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/30—Computing systems specially adapted for manufacturing
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Evolutionary Computation (AREA)
- Software Systems (AREA)
- Artificial Intelligence (AREA)
- General Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Health & Medical Sciences (AREA)
- Mathematical Physics (AREA)
- Computational Linguistics (AREA)
- Molecular Biology (AREA)
- Computing Systems (AREA)
- Biophysics (AREA)
- Biomedical Technology (AREA)
- Data Mining & Analysis (AREA)
- Life Sciences & Earth Sciences (AREA)
- Health & Medical Sciences (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Medical Informatics (AREA)
- Computer Hardware Design (AREA)
- Geometry (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
本发明公开一种基于领域知识增强大语言模型的产品智能设计方法及系统,包括:步骤S1、获取产品设计领域内的设计任务数据集;步骤S2、根据设计任务数据集和产品设计领域知识,得到基于多任务适应和知识增强的大语言模型;步骤S3、根据基于多任务适应和知识增强的大语言模型,通过产品设计任务工具集,得到产品设计生成代理;步骤S4、产品设计生成代理根据用户反馈实时调整产品设计方案。采用本发明的技术方案,解决了现有的产品设计流程存在碎片化、缺乏系统性和自动化的问题。
The present invention discloses a product intelligent design method and system based on a domain knowledge enhanced large language model, including: step S1, obtaining a design task data set in the product design field; step S2, obtaining a large language model based on multi-task adaptation and knowledge enhancement according to the design task data set and product design domain knowledge; step S3, obtaining a product design generation agent through a product design task tool set according to the large language model based on multi-task adaptation and knowledge enhancement; step S4, the product design generation agent adjusts the product design plan in real time according to user feedback. The technical solution of the present invention solves the problems of fragmentation, lack of systematicness and automation in the existing product design process.
Description
技术领域Technical Field
本发明属于产品设计技术领域,尤其涉及一种基于领域知识增强大语言模型的产品智能设计方法及系统。The present invention belongs to the technical field of product design, and in particular relates to a product intelligent design method and system based on domain knowledge enhanced large language model.
背景技术Background Art
现有的产品设计流程是一个线性的、功能导向的方法,存在碎片化、缺乏系统性和自动化的问题,难以适应市场竞争加剧和用户需求多样化带来的挑战。The existing product design process is a linear, function-oriented approach that suffers from fragmentation, lack of systematicity and automation, and is difficult to adapt to the challenges brought about by intensified market competition and diversified user needs.
发明内容Summary of the invention
本发明要解决的技术问题是,提供一种基于领域知识增强大语言模型的产品智能设计方法及系统,解决了现有的产品设计流程存在碎片化、缺乏系统性和自动化的问题。The technical problem to be solved by the present invention is to provide a product intelligent design method and system based on domain knowledge enhanced large language model, which solves the problems of fragmentation, lack of systematicness and automation in the existing product design process.
为实现上述目的,本发明采用如下的技术方案:To achieve the above object, the present invention adopts the following technical solution:
一种基于领域知识增强大语言模型的产品智能设计方法,包括:A product intelligent design method based on domain knowledge-enhanced large language model, comprising:
步骤S1、获取产品设计领域内的设计任务数据集;Step S1, obtaining a design task dataset in the product design field;
步骤S2、根据设计任务数据集和产品设计领域知识,得到基于多任务适应和知识增强的大语言模型;Step S2: obtaining a large language model based on multi-task adaptation and knowledge enhancement according to the design task dataset and product design domain knowledge;
步骤S3、根据基于多任务适应和知识增强的大语言模型,通过产品设计任务工具集,得到产品设计生成代理;Step S3, obtaining a product design generation agent through a product design task tool set according to a large language model based on multi-task adaptation and knowledge enhancement;
步骤S4、产品设计生成代理根据用户反馈实时调整产品设计方案。Step S4: The product design generation agent adjusts the product design plan in real time according to user feedback.
作为优选,设计任务数据集包含:设计图纸、产品规格说明、市场分析报告、消费者反馈和评论、材料数据库和制造和工艺参数;产品设计领域知识包含:知识图谱和专家知识;产品设计任务工具集包含:竞品分析、设计图生成、专业知识检索和设计方案生成。Preferably, the design task data set includes: design drawings, product specifications, market analysis reports, consumer feedback and comments, material databases, and manufacturing and process parameters; product design domain knowledge includes: knowledge graphs and expert knowledge; the product design task toolset includes: competitive product analysis, design drawing generation, professional knowledge retrieval, and design solution generation.
作为优选,步骤S2包括:Preferably, step S2 comprises:
根据设计任务数据集和产品设计领域知识,训练基于Transformer模型的多设计任务适应器;According to the design task dataset and product design domain knowledge, train a multi-design task adapter based on the Transformer model;
根据训练好的基于Transformer模型的多设计任务适应器和产品设计领域知识,基于语义检索构建基于多任务适应和知识增强的大语言模型。According to the trained Transformer-based multi-design task adapter and product design domain knowledge, a large language model based on multi-task adaptation and knowledge enhancement is constructed based on semantic retrieval.
作为优选,所述产品为油烟机。Preferably, the product is a range hood.
本发明还提供一种基于领域知识增强大语言模型的产品智能设计系统,包括:The present invention also provides a product intelligent design system based on domain knowledge enhanced large language model, comprising:
获取装置,用于获取产品设计领域内的设计任务数据集;An acquisition device, used for acquiring a design task data set in the field of product design;
训练装置,用于根据设计任务数据集和产品设计领域知识,训练基于多任务适应和知识增强的大语言模型;A training device, used for training a large language model based on multi-task adaptation and knowledge enhancement according to a design task dataset and product design domain knowledge;
生成装置,用于根据训练好的基于多任务适应和知识增强的大语言模型,通过产品设计任务工具集,得到产品设计生成代理;A generating device, for obtaining a product design generating agent through a product design task tool set according to a trained large language model based on multi-task adaptation and knowledge enhancement;
设计装置,用于通过产品设计生成代理根据用户反馈实时调整产品设计方案。The design device is used to adjust the product design scheme in real time according to user feedback through the product design generation agent.
作为优选,设计任务数据集包含:设计图纸、产品规格说明、市场分析报告、消费者反馈和评论、材料数据库和制造和工艺参数;产品设计领域知识包含:知识图谱和专家知识;产品设计任务工具集包含:竞品分析、设计图生成、专业知识检索和设计方案生成。Preferably, the design task data set includes: design drawings, product specifications, market analysis reports, consumer feedback and comments, material databases, and manufacturing and process parameters; product design domain knowledge includes: knowledge graphs and expert knowledge; the product design task toolset includes: competitive product analysis, design drawing generation, professional knowledge retrieval, and design solution generation.
作为优选,处理装置包括:Preferably, the processing device comprises:
训练单元,用于根据设计任务数据集和产品设计领域知识,训练基于Transformer模型的多设计任务适应器;A training unit, used to train a multi-design task adapter based on the Transformer model according to the design task dataset and product design domain knowledge;
构建单元,用于根据训练好的基于Transformer模型的多设计任务适应器和产品设计领域知识,基于语义检索构建基于多任务适应和知识增强的大语言模型。A construction unit is used to build a large language model based on multi-task adaptation and knowledge enhancement based on semantic retrieval according to the trained Transformer-based multi-design task adapter and product design domain knowledge.
作为优选,所述产品为油烟机。Preferably, the product is a range hood.
本发明根据设计任务数据集、产品设计领域知识和产品设计任务工具集,得到基于多任务适应和知识增强的大语言模型,得到产品设计生成代理;产品设计生成代理根据用户反馈实时调整产品设计方案;本发明能够克服现有线性和功能导向的设计方法的缺点,扩展到更广泛的需求研究、用户参与、市场分析、创新设计和用户体验方面,实现产品设计过程的自动化、智能化和系统化。The present invention obtains a large language model based on multi-task adaptation and knowledge enhancement according to a design task data set, product design domain knowledge and a product design task toolset, and obtains a product design generation agent; the product design generation agent adjusts the product design plan in real time according to user feedback; the present invention can overcome the shortcomings of existing linear and function-oriented design methods, and expand to a wider range of demand research, user participation, market analysis, innovative design and user experience, thereby realizing the automation, intelligence and systematization of the product design process.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据提供的附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
图1为本发明实施例基于领域知识增强大语言模型的产品智能设计方法的流程图;FIG1 is a flow chart of a method for intelligent product design based on domain knowledge-enhanced large language model according to an embodiment of the present invention;
图2为本发明实施例基于领域知识增强大语言模型的产品智能设计方法的工作原理示意图;FIG2 is a schematic diagram of the working principle of the product intelligent design method based on domain knowledge enhanced large language model according to an embodiment of the present invention;
图3为多设计任务适应器的结构示意图;FIG3 is a schematic diagram of the structure of a multi-design task adapter;
图4为训练基于Transformer模型的多设计任务适应器示意图;FIG4 is a schematic diagram of training a multi-design task adapter based on a Transformer model;
图5为构建基于多任务适应和知识增强的大语言模型的示意图。FIG5 is a schematic diagram of building a large language model based on multi-task adaptation and knowledge enhancement.
具体实施方式DETAILED DESCRIPTION
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
为使本发明的上述目的、特征和优点能够更加明显易懂,下面结合附图和具体实施方式对本发明作进一步详细的说明。In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
实施例1:Embodiment 1:
如图1、2所示,本发明实施例提供一种基于领域知识增强大语言模型的产品智能设计方法,包括:As shown in FIGS. 1 and 2 , an embodiment of the present invention provides a product intelligent design method based on domain knowledge-enhanced large language model, including:
步骤S1、获取产品设计领域内的设计任务数据集;Step S1, obtaining a design task dataset in the product design field;
步骤S2、根据设计任务数据集和产品设计领域知识,得到基于多任务适应和知识增强的大语言模型;Step S2: obtaining a large language model based on multi-task adaptation and knowledge enhancement according to the design task dataset and product design domain knowledge;
步骤S3、根据基于多任务适应和知识增强的大语言模型,通过产品设计任务工具集,得到产品设计生成代理;Step S3, obtaining a product design generation agent through a product design task tool set according to a large language model based on multi-task adaptation and knowledge enhancement;
步骤S4、产品设计生成代理根据用户反馈实时调整产品设计方案。Step S4: The product design generation agent adjusts the product design plan in real time according to user feedback.
作为本发明实施例的一种实施方式,所述产品为油烟机;设计任务数据集包含:设计图纸、产品规格说明、市场分析报告、消费者反馈和评论、材料数据库和制造和工艺参数;产品设计领域知识包含:知识图谱和专家知识。As an implementation manner of an embodiment of the present invention, the product is a range hood; the design task data set includes: design drawings, product specifications, market analysis reports, consumer feedback and comments, material databases, and manufacturing and process parameters; the product design domain knowledge includes: knowledge graphs and expert knowledge.
进一步,设计图纸:油烟机的设计图纸,如2D和3D CAD模型;油烟机标注信息,例如组件名称、尺寸、材料。Further, design drawings: design drawings of the range hood, such as 2D and 3D CAD models; range hood annotation information, such as component names, sizes, and materials.
产品规格说明:文档形式的产品规格说明,如功率、尺寸、使用的材料、风力和噪音水平;产品手册和装配指南。Product Specifications: Product specifications in documented form, such as power, dimensions, materials used, wind and noise levels; product manuals and assembly guides.
市场分析报告:竞争产品的分析、用户订单、用户偏好及市场趋势。Market analysis report: analysis of competitive products, user orders, user preferences and market trends.
消费者反馈和评论:来自电商平台、调查的用户评论和评级;用户的情感倾向、偏好和产品的改进点。Consumer feedback and reviews: User reviews and ratings from e-commerce platforms and surveys; user sentiment, preferences, and product improvement points.
材料数据库:各种材料的物理及化学属性,如耐热性、强度、颜色和质感;材料供应商及其产品目录数据。Materials database: physical and chemical properties of various materials, such as heat resistance, strength, color and texture; material suppliers and their product catalog data.
制造和工艺参数:涉及制造过程的参数,如机器类型、加工时间、耗能。Manufacturing and process parameters: Parameters related to the manufacturing process, such as machine type, processing time, and energy consumption.
作为本发明实施例的一种实施方式,步骤S2包括:As an implementation of the embodiment of the present invention, step S2 includes:
根据设计任务数据集和产品设计领域知识,训练基于Transformer模型的多设计任务适应器;According to the design task dataset and product design domain knowledge, train a multi-design task adapter based on the Transformer model;
根据训练好的基于Transformer模型的多设计任务适应器和产品设计领域知识,基于语义检索构建基于多任务适应和知识增强的大语言模型。According to the trained Transformer-based multi-design task adapter and product design domain knowledge, a large language model based on multi-task adaptation and knowledge enhancement is constructed based on semantic retrieval.
进一步,如图3、4所示,多设计任务适应器包括:Further, as shown in FIGS. 3 and 4 , the multi-design task adapter includes:
1、多模态设计任务数据集和产品设计领域知识处理:1. Multimodal design task dataset and product design domain knowledge processing:
1)多模态设计任务数据集:文本数据处理:使用jieba、THULAC等工具进行分词,使用HanLP工具进行词性标注和命名实体识别(NER),通过TF-IDF和TextRank算法提取关键词和短语,并使用Stanford CoreNLP进行依存句法分析。图像数据处理:利用ViT(视觉Transformer)自注意力机制,识别和定位图像中的目标物体,并通过语义分割任务实现精准的像素级分类。在特征提取方面,ViT逐层编码图像的深层特征,生成丰富且有区分度的向量表示。此外,结合文本生成技术,ViT能够生成准确描述图像内容的自然语言,桥接视觉信息与语言表述之间的差距。结构化数据处理:对于如Excel表格等结构化数据,首先进行数据清洗(去除空值、格式化等预处理操作),然后提取特定字段及其对应值作为实体和关系,并将其转换为通用格式(如RDF、JSON-LD)。1) Multimodal design task dataset: Text data processing: Use tools such as jieba and THULAC for word segmentation, use HanLP for part-of-speech tagging and named entity recognition (NER), extract keywords and phrases through TF-IDF and TextRank algorithms, and use Stanford CoreNLP for dependency syntax analysis. Image data processing: Use ViT (Visual Transformer) self-attention mechanism to identify and locate target objects in images, and achieve accurate pixel-level classification through semantic segmentation tasks. In terms of feature extraction, ViT encodes the deep features of the image layer by layer to generate rich and discriminative vector representations. In addition, combined with text generation technology, ViT can generate natural language that accurately describes the content of the image, bridging the gap between visual information and language expression. Structured data processing: For structured data such as Excel tables, first perform data cleaning (remove null values, formatting and other preprocessing operations), then extract specific fields and their corresponding values as entities and relationships, and convert them into common formats (such as RDF, JSON-LD).
2)产品设计领域知识:知识图谱构建:利用Neo4j工具,从处理后的数据中提取三元组(实体-关系-实体),构建包含风格、空间等多视角知识的图谱。知识图谱提供了产品设计领域的系统性知识,可以用于后续的模型训练和知识增强。2) Product design domain knowledge: Knowledge graph construction: Using Neo4j tools, triples (entity-relationship-entity) are extracted from the processed data to construct a graph containing multi-perspective knowledge such as style and space. The knowledge graph provides systematic knowledge in the field of product design, which can be used for subsequent model training and knowledge enhancement.
2、任务-知识(Prompt模版)模块:2. Task-Knowledge (Prompt Template) Module:
1)Prompt模板设计与实例生成:1) Prompt template design and instance generation:
·设计Prompt模板:基于设计任务数据集和知识图谱,分析任务目标,设计包含[mask]等占位符的Prompt模板。Design a prompt template: Based on the design task dataset and knowledge graph, analyze the task objectives and design a prompt template containing placeholders such as [mask].
·生成Prompt实例:遍历知识图谱,根据设计好的Prompt模板自动生成大量Prompt实例。对于[mask]位置,从知识图谱中查找并填充相应的实体;对于[图像特征]等,从图像数据中提取对应的特征填充到占位符处。最终,生成大量融合了任务语义描述、领域知识引用和多模态数据特征的Prompt实例,提供高质量的训练数据,确保模型能够同步学习语义理解、知识融合和多模态表示。Generate Prompt instances: Traverse the knowledge graph and automatically generate a large number of Prompt instances based on the designed Prompt template. For the [mask] position, find and fill the corresponding entity from the knowledge graph; for [image features], extract the corresponding features from the image data and fill them in the placeholder. Finally, generate a large number of Prompt instances that integrate task semantic descriptions, domain knowledge references, and multimodal data features, provide high-quality training data, and ensure that the model can simultaneously learn semantic understanding, knowledge fusion, and multimodal representation.
3、知识注入与多任务适配模块:3. Knowledge injection and multi-task adaptation module:
·任务语义向量编码:使用预训练语言模型(如BERT)对Prompt描述任务语义的部分进行编码,生成任务语义向量,并输入到图4所示多设计任务适应器1(任务语义适应模块)中。Task semantic vector encoding: Use a pre-trained language model (such as BERT) to encode the part of the prompt that describes the task semantics, generate a task semantic vector, and input it into the multi-design task adapter 1 (task semantic adaptation module) shown in Figure 4.
·领域知识向量编码:使用知识图谱嵌入技术(如TransE、RotatE等)对知识图谱中的实体和关系进行编码,融合获得领域知识向量表示,并输入到图4所示多设计任务适应器2(知识适应模块)中。Domain knowledge vector encoding: Use knowledge graph embedding technology (such as TransE, RotatE, etc.) to encode entities and relationships in the knowledge graph, fuse them to obtain domain knowledge vector representation, and input it into the multi-design task adapter 2 (knowledge adaptation module) shown in Figure 4.
·多模态特征向量编码:对于Prompt中的[图像特征]和[设计描述]等多模态数据,分别使用视觉Transformer(如ViT)和语言模型(如BERT)进行编码,并将编码后的多模态特征向量拼接或融合,作为输入注入到多设计任务适应器中。将多个多设计任务适应器的输出合并起来作为特征与语言模型一起训练。Multimodal feature vector encoding: For multimodal data such as [image features] and [design description] in Prompt, use visual transformer (such as ViT) and language model (such as BERT) to encode them respectively, and concatenate or fuse the encoded multimodal feature vectors and inject them into the multi-design task adapter as input. The outputs of multiple multi-design task adapters are combined as features and trained together with the language model.
进一步,如图4所示,训练基于Transformer模型的多设计任务适应器包括:Further, as shown in FIG4 , training a multi-design task adapter based on the Transformer model includes:
1、多设计任务适应器:多设计任务适应器由N个Transformer层构成,这些Transformer层用于捕捉输入数据中的复杂模式和依赖关系。此外,加入两个投影层,用于将Transformer层的高维输出转换为适应特定任务的低维表示。多设计任务适应器作为轻量级的附加组件插入,它们位于每个Transformer层之后,专门用于引入特定领域的知识,而无需修改主模型的权重,从而保持了预训练模型的泛化能力。1. Multi-design task adapter: The multi-design task adapter consists of N Transformer layers, which are used to capture complex patterns and dependencies in the input data. In addition, two projection layers are added to convert the high-dimensional output of the Transformer layer into a low-dimensional representation adapted to a specific task. The multi-design task adapter is inserted as a lightweight additional component, which is located after each Transformer layer and is specifically used to introduce domain-specific knowledge without modifying the weights of the main model, thereby maintaining the generalization ability of the pre-trained model.
2、知识注入机制:每种设计任务相关的知识(设计任务数据集和产品设计领域知识)被单独编码并通过预训练注入到特定的多设计任务适应器中,而不是直接融入到主模型中。这样做允许针对不同任务(如产品需求分析、用户行为分析)定制化知识的灵活添加和更新,而不会干扰模型的基础架构。2. Knowledge injection mechanism: The knowledge related to each design task (design task dataset and product design domain knowledge) is encoded separately and injected into a specific multi-design task adapter through pre-training, rather than directly integrated into the main model. This allows for the flexible addition and update of customized knowledge for different tasks (such as product demand analysis, user behavior analysis) without interfering with the model's infrastructure.
3、参数冻结与持续学习:预训练模型的原始参数被冻结,确保了模型的稳定性和一致性。多设计任务适应器则独立进行预训练,专注于学习特定领域的判别性特征,这使得模型能够在不干扰基础模型的情况下持续吸收3. Parameter freezing and continuous learning: The original parameters of the pre-trained model are frozen to ensure the stability and consistency of the model. The multi-design task adapter is pre-trained independently and focuses on learning the discriminative features of specific fields, which enables the model to continuously absorb without interfering with the basic model.
4、融合模块:融合层的结构是一个注意力模块。查询是原来Transformer层中全连接层的输出,值和键都是各个任务对应的多设计任务适应器的输出。先进行一层线性映射,然后查询和键点乘并归一化,再用输出把来自不同任务的多设计任务适应器的输出加权组合起来。4. Fusion module: The structure of the fusion layer is an attention module. The query is the output of the fully connected layer in the original Transformer layer, and the value and key are the outputs of the multi-design task adapters corresponding to each task. First, a linear mapping is performed, then the query and key are dot-multiplied and normalized, and then the output is used to weight the outputs of the multi-design task adapters from different tasks.
进一步,如图5所示,构建基于多任务适应和知识增强的大语言模型,包括:Furthermore, as shown in FIG5 , a large language model based on multi-task adaptation and knowledge enhancement is constructed, including:
1.需求分析与知识整合1. Demand analysis and knowledge integration
定义领域范围:包括产品设计原理、市场趋势分析、用户行为研究、材料、生产技术、销售策略。Define the scope of the field: including product design principles, market trend analysis, user behavior research, materials, production technology, and sales strategy.
知识资源收集:相关的书籍、论文、行业报告、设计规范、案例研究资料(格式word、ppt、txt等)。Knowledge resource collection: relevant books, papers, industry reports, design specifications, case study materials (in word, ppt, txt, etc. format).
知识结构化:将收集到的知识进行整理分类,部分形成结构化的知识图谱,便于后续的索引和检索。Knowledge structuring: The collected knowledge is sorted and classified, and part of it forms a structured knowledge graph to facilitate subsequent indexing and retrieval.
2.LangChain框架下的语义检索模块构建2. Construction of semantic retrieval module under LangChain framework
数据预处理:对知识库中的文本进行清洗、分词、去除停用词预处理操作,为构建向量表示做准备。Data preprocessing: Clean, segment, and remove stop words from the text in the knowledge base to prepare for constructing vector representation.
向量化表示:利用M3E(Moka Massive Mixed Embedding)、TransE模型,将文本转换为高维向量空间中的点,以便计算相似度。Vectorized representation: Use the M3E (Moka Massive Mixed Embedding) and TransE models to convert text into points in a high-dimensional vector space to calculate similarity.
构建索引:使用如FAISS工具,基于向量表示构建高效的近似最近邻索引,加速检索过程。Build an index: Use tools such as FAISS to build an efficient approximate nearest neighbor index based on vector representation to speed up the retrieval process.
检索逻辑实现:通过检索算法,结合关键词匹配和向量相似性搜索,确保既能捕捉到直接相关的知识,也能发现语义上相近的内容。Retrieval logic implementation: Through the retrieval algorithm, combined with keyword matching and vector similarity search, it is ensured that both directly related knowledge and semantically similar content can be captured.
3.LangChain集成与信息传递3. LangChain integration and information transmission
集成LangChain:LangChain是一个促进语言模型与各种数据源、工具和服务集成的框架。通过LangChain的接口,将检索到的信息组织成适合大语言模型理解的格式。Integration with LangChain: LangChain is a framework that facilitates the integration of language models with various data sources, tools, and services. Through the LangChain interface, the retrieved information is organized into a format suitable for large language models to understand.
上下文管理:利用LangChain的ContextualRetriever,根据用户查询动态地从知识库中提取最相关的信息片段,作为大语言模型的输入上下文。Context Management: Using LangChain’s ContextualRetriever, the most relevant information fragments are dynamically extracted from the knowledge base based on user queries as the input context of the large language model.
作为本发明实施例的一种实施方式,步骤S3中,产品设计任务工具集包含:竞品分析、设计图生成、专业知识检索和设计方案生成;基于多任务适应和知识增强的大语言模型调用产品设计任务工具集,得到产品设计生成代理,产品设计生成代理包含:设计方案的文本描述、设计图的生成、销售统计分析。As an implementation method of an embodiment of the present invention, in step S3, the product design task toolset includes: competitive product analysis, design drawing generation, professional knowledge retrieval and design solution generation; the product design task toolset is called based on a large language model with multi-task adaptation and knowledge enhancement to obtain a product design generation agent, and the product design generation agent includes: text description of the design solution, generation of design drawings, and sales statistical analysis.
作为本发明实施例的一种实施方式,步骤S4中,产品设计生成代理响应用户即时提出的设计查询或特殊要求,并根据用户的反馈实时调整产品设计方案;这种交互式设计有助于缩小用户期望与最终产品之间的差距,增强用户的参与度和设计满意度。As an implementation method of an embodiment of the present invention, in step S4, the product design generation agent responds to the design query or special request immediately raised by the user, and adjusts the product design plan in real time according to the user's feedback; this interactive design helps to narrow the gap between user expectations and the final product, and enhances user participation and design satisfaction.
实施例2:Embodiment 2:
本发明实施例还提供一种基于领域知识增强大语言模型的产品智能设计系统,包括:The embodiment of the present invention further provides a product intelligent design system based on domain knowledge enhanced large language model, including:
获取装置,用于获取产品设计领域内的设计任务数据集;An acquisition device, used for acquiring a design task data set in the field of product design;
训练装置,用于根据设计任务数据集和产品设计领域知识,得到基于多任务适应和知识增强的大语言模型;A training device, used to obtain a large language model based on multi-task adaptation and knowledge enhancement according to a design task dataset and product design domain knowledge;
生成装置,用于根据基于多任务适应和知识增强的大语言模型,通过产品设计任务工具集,得到产品设计生成代理;A generating device for obtaining a product design generating agent through a product design task tool set according to a large language model based on multi-task adaptation and knowledge enhancement;
设计装置,用于通过产品设计生成代理根据用户反馈实时调整产品设计方案。The design device is used to adjust the product design scheme in real time according to user feedback through the product design generation agent.
作为本发明实施例的一种实施方式,设计任务数据集包含:设计图纸、产品规格说明、市场分析报告、消费者反馈和评论、材料数据库和制造和工艺参数;产品设计领域知识包含:知识图谱和专家知识;产品设计任务工具集包含:竞品分析、设计图生成、专业知识检索和设计方案生成。As an implementation mode of an embodiment of the present invention, the design task data set includes: design drawings, product specifications, market analysis reports, consumer feedback and comments, material databases, and manufacturing and process parameters; the product design domain knowledge includes: knowledge graphs and expert knowledge; the product design task toolset includes: competitive product analysis, design drawing generation, professional knowledge retrieval, and design solution generation.
作为本发明实施例的一种实施方式,处理装置包括:As an implementation of an embodiment of the present invention, the processing device includes:
训练单元,用于根据设计任务数据集和产品设计领域知识,训练基于Transformer模型的多设计任务适应器;A training unit, used to train a multi-design task adapter based on the Transformer model according to the design task dataset and product design domain knowledge;
构建单元,用于根据训练好的基于Transformer模型的多设计任务适应器和产品设计领域知识,基于语义检索构建基于多任务适应和知识增强的大语言模型。A construction unit is used to build a large language model based on multi-task adaptation and knowledge enhancement based on semantic retrieval according to the trained Transformer-based multi-design task adapter and product design domain knowledge.
作为本发明实施例的一种实施方式,所述产品为油烟机。As an implementation manner of the embodiment of the present invention, the product is a range hood.
以上所述的实施例仅是对本发明优选方式进行的描述,并非对本发明的范围进行限定,在不脱离本发明设计精神的前提下,本领域普通技术人员对本发明的技术方案做出的各种变形和改进,均应落入本发明权利要求书确定的保护范围内。The embodiments described above are only descriptions of the preferred embodiments of the present invention and are not intended to limit the scope of the present invention. Without departing from the design spirit of the present invention, various modifications and improvements made to the technical solutions of the present invention by ordinary technicians in this field should all fall within the protection scope determined by the claims of the present invention.
Claims (8)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410909921.3A CN118839606A (en) | 2024-07-09 | 2024-07-09 | Product intelligent design method and system based on domain knowledge enhanced large language model |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410909921.3A CN118839606A (en) | 2024-07-09 | 2024-07-09 | Product intelligent design method and system based on domain knowledge enhanced large language model |
Publications (1)
Publication Number | Publication Date |
---|---|
CN118839606A true CN118839606A (en) | 2024-10-25 |
Family
ID=93138393
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202410909921.3A Pending CN118839606A (en) | 2024-07-09 | 2024-07-09 | Product intelligent design method and system based on domain knowledge enhanced large language model |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN118839606A (en) |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116522912A (en) * | 2023-07-05 | 2023-08-01 | 大家智合(北京)网络科技股份有限公司 | Training method, device, medium and equipment for package design language model |
CN116541911A (en) * | 2023-07-05 | 2023-08-04 | 大家智合(北京)网络科技股份有限公司 | Packaging design system based on artificial intelligence |
US20230336823A1 (en) * | 2023-06-21 | 2023-10-19 | Cole Brayton Johnson | Real-Time Adaptive Content Generation with Dynamic Sentiment Prediction |
CN116955613A (en) * | 2023-06-12 | 2023-10-27 | 广州数说故事信息科技有限公司 | Method for generating product concept based on research report data and large language model |
CN117151338A (en) * | 2023-09-08 | 2023-12-01 | 安徽大学 | Multi-unmanned aerial vehicle task planning method based on large language model |
CN117610424A (en) * | 2023-12-01 | 2024-02-27 | 广东工业大学 | Product design and manufacturing methods driven by blockchain and large models |
CN117993052A (en) * | 2023-12-27 | 2024-05-07 | 清华大学 | Architectural structure design method based on text-image multimodal fusion diffusion model |
CN118036322A (en) * | 2024-03-06 | 2024-05-14 | 东华大学 | An evaluation and recommendation system for textile pattern design based on AIGC |
-
2024
- 2024-07-09 CN CN202410909921.3A patent/CN118839606A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116955613A (en) * | 2023-06-12 | 2023-10-27 | 广州数说故事信息科技有限公司 | Method for generating product concept based on research report data and large language model |
US20230336823A1 (en) * | 2023-06-21 | 2023-10-19 | Cole Brayton Johnson | Real-Time Adaptive Content Generation with Dynamic Sentiment Prediction |
CN116522912A (en) * | 2023-07-05 | 2023-08-01 | 大家智合(北京)网络科技股份有限公司 | Training method, device, medium and equipment for package design language model |
CN116541911A (en) * | 2023-07-05 | 2023-08-04 | 大家智合(北京)网络科技股份有限公司 | Packaging design system based on artificial intelligence |
CN117151338A (en) * | 2023-09-08 | 2023-12-01 | 安徽大学 | Multi-unmanned aerial vehicle task planning method based on large language model |
CN117610424A (en) * | 2023-12-01 | 2024-02-27 | 广东工业大学 | Product design and manufacturing methods driven by blockchain and large models |
CN117993052A (en) * | 2023-12-27 | 2024-05-07 | 清华大学 | Architectural structure design method based on text-image multimodal fusion diffusion model |
CN118036322A (en) * | 2024-03-06 | 2024-05-14 | 东华大学 | An evaluation and recommendation system for textile pattern design based on AIGC |
Non-Patent Citations (2)
Title |
---|
ZHAOXI HONG等: "Reliability Topology Optimization of Collaborative Design for Complex Products Under Uncertainties Based on the TLBO Algorithm", 《RESEARCH INTELLIGENT MANUFACTURING》, 19 October 2021 (2021-10-19), pages 71 * |
王文斌: "人工智能商务分析", 31 December 2023, 上海财经大学出版社, pages: 128 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN114911951B (en) | Knowledge graph construction method for man-machine cooperation assembly task | |
CN111428053B (en) | Construction method of tax field-oriented knowledge graph | |
CN109829104B (en) | Semantic similarity based pseudo-correlation feedback model information retrieval method and system | |
CN114218400B (en) | Data lake query system and method based on semantics | |
CN106845645B (en) | Method and system for generating semantic network and for media composition | |
CN102947842B (en) | For analyzing and synthesize the system and method that complicated knowledge represents | |
CN115034224B (en) | A news event detection method and system integrating multiple text semantic structure graph representations | |
CN112734881B (en) | Text synthesis image method and system based on saliency scene graph analysis | |
CN113971222B (en) | A multi-modal composite coding image retrieval method and system | |
CN118569237A (en) | Personalized complex report generation method based on multi-agent system | |
CN118779469B (en) | A method for constructing a multimodal knowledge base of a domain-wide large model based on feature representation | |
CN113343125A (en) | Academic-precision-recommendation-oriented heterogeneous scientific research information integration method and system | |
CN115269865A (en) | Knowledge graph construction method for auxiliary diagnosis | |
CN115714001A (en) | Method for constructing multi-modal knowledge graph service platform for healthy diet | |
CN114661914A (en) | Contract examination method, device, equipment and storage medium based on deep learning and knowledge graph | |
CN118656469A (en) | A multimodal contract question-answering method | |
CN118551046A (en) | Method for enhancing document processing flow based on large language model | |
CN119830200A (en) | Dynamic data pipeline construction method based on artificial intelligence and multi-mode data processing | |
CN118820778A (en) | A DCS intelligent decision-making method and system integrating large language model and knowledge graph | |
CN114997181A (en) | Intelligent question-answering method and system based on user feedback correction | |
CN116361438A (en) | Question-answering method and system based on text-knowledge expansion graph collaborative reasoning network | |
Huang et al. | Using knowledge graphs and deep learning algorithms to enhance digital cultural heritage management | |
CN119128170A (en) | A knowledge representation method for equipment maintenance combining knowledge distillation and semantic parsing | |
CN117786052A (en) | A power grid intelligent question and answer system based on domain knowledge graph | |
CN116187323A (en) | Knowledge graph in field of numerical control machine tool and construction method thereof |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |