Large-model-based low-cost picture and formula display method and system for automobile service industry
Through the large-model-based method, processing and displaying pictures and formulas of the automotive service industry, the problems of high costs and resource limitations in the existing technology are solved, and the low-cost multimodal information display and model semantic understanding ability are improved.
Patent Information
- Application Number
- CN202411118486.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-15
- Publication Date
- 2024-11-29
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
When processing and displaying non-text information such as pictures and formulas, existing knowledge question and answer systems require complex algorithms and a large number of computing resources, resulting in high operating costs and difficult to meet the needs of large-scale applications.
Using a big model-based method, it converts it into vector form to upload to the vector library through user file upload, front-end processing, back-end file reception and storage, file analysis and slicing, pictures and formula processing, and uses the big model during the knowledge question and answer process. Generate prompts, support display of HTML tags, and realize low-cost display of pictures and formulas.
It improves the standardization and readability of the document, realizes low-cost picture and formula display, enhances the semantic understanding ability of the model, and improves the understanding of specific format propts.
Smart Images

Figure CN119046243A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of large model text processing, and in particular to a method and system for low-cost display of pictures and formulas for the automobile service industry based on large models. Background Art
[0002] With the rapid development of artificial intelligence technology, general knowledge question-answering systems are increasingly used in daily life. Knowledge question-answering systems not only need to process and understand text questions raised by users, but also need to be able to display multimodal information such as pictures and formulas related to the questions. The introduction of these multimodal information has greatly enriched the functions of the question-answering system and improved the user experience.
[0003] Most existing knowledge question-answering systems rely on vector libraries to store and retrieve information. These vector libraries usually only support data in plain text form and have limited processing capabilities for non-text information such as images and formulas. When it is necessary to process these non-text information, multimodal processing technology is often used to convert image information into plain text. Although this can solve the problem of information representation, this conversion process often requires complex algorithms and a large amount of computing resources. For enterprises, this not only increases operating costs, but may also fail to meet the needs of large-scale applications due to resource limitations. Summary of the invention
[0004] The purpose of the present invention is to provide a method and system for displaying pictures and formulas at low cost for the automobile service industry based on a large model, so as to solve the problems raised in the above-mentioned background technology.
[0005] To achieve the above object, the present invention provides the following technical solution: a method for displaying pictures and formulas at low cost for the automotive service industry based on a large model, the method comprising the following steps:
[0006] Knowledge construction, converting files uploaded by users into knowledge resources that can be searched and used in the knowledge base, including: user file uploading, front-end processing, back-end file receiving and storage, calling the knowledge base upload interface, file content organization, file parsing and slicing, and uploading to the vector library;
[0007] Knowledge question and answer, including user questions, knowledge base retrieval, prompt generation, large model submission and front-end display of results.
[0008] Preferably, the specific operations of knowledge construction include:
[0009] User file upload: Users select and upload files they wish to convert into knowledge resources through the user interface. These files include text documents, PDFs, PPT slides, and Excel spreadsheets.
[0010] Front-end processing: After receiving the file uploaded by the user, the front-end application calls the file upload interface provided by the back-end to ensure that the file is securely transmitted from the user end to the server end;
[0011] Back-end file reception and storage: After the back-end server receives the file, it performs the file storage operation. The file is saved in the server's file system and a unique file identifier is generated for subsequent operations.
[0012] Calling the knowledge base upload interface: The backend server calls the knowledge base upload interface to pass the file identifier to the knowledge base system to trigger the file parsing and knowledge extraction process;
[0013] File parsing and slicing: After receiving the file identifier, the knowledge base system parses the file. The parsing process includes text extraction, format conversion, content analysis, etc., and divides the file content into indexable and searchable units. When slicing, the integrity of the paragraphs is maintained to prevent image tags, formula tags and text from being divided into different segments.
[0014] Upload to Vector Library: The parsed content is further processed, converted into vector form, and then uploaded to Vector Library, a system for storing and indexing file vector data, which allows fast retrieval and similarity comparison.
[0015] Preferably, the specific operations of arranging the file contents include:
[0016] Image placeholder conversion: Identify all images in the document and convert them into a unified placeholder format. <img id="rIdx"> Indicates that rIdx is the relative index of the image in the document, which ensures the consistency of the document and facilitates subsequent image management and reference. The corresponding image is saved in minio, and the address where the image is saved in minio is replaced with the text, such as <img id=”rIdx”src=”https: www.xxx.com xxx.png”> ;
[0017] Formula processing: When processing simple formulas, for formulas that only contain basic arithmetic operations and superscripts and subscripts, the formatting function of the document editing software should be used to convert the superscript and subscript formats into HTML. 和标签;复杂公式处理时,转换为图片:将复杂公式转换为图片,并使用<img id="rIdx">标签进行标记,处理过程和"图片占位符转换”部分保持一致;转换为LaTeX格式:通过光学字符识别技术,将复杂公式转换为LaTeX格式,以便于在文档中以文本形式呈现,并保持其可编辑性和可检索性;页面页脚去除:在进行文档整理时,直接移除页面页脚的格式。
[0018] 优选的,知识问答的具体操作包括:
[0019] 用户提问:用户选用知识库并且进行提问;
[0020] 知识库检索:系统接收到用户的提问后,在向量库中检索相关知识片段;
[0021] 生成提示语:见检索到的知识片段和问题进行结合,生成提示语,在这个过程中,使用提示语如下,要求大模型将引用的标签返回;
[0022] 提交到大模型:生成的提示语随后被提交给大模型,大模型根据提示语中的指令和上下文信息,生成回答或执行相关的任务。
[0023] 优选的,还包括对模型的提示语输出格式进行精细调整,具体操作如下:
[0024] 数据集制定:收集与特殊格式prompt相关的数据集,确保这些数据反映prompt的多样性和复杂性,使用这些数据对模型进行再训练,以增强其对特定格式的适应性;
[0025] 标注增强:对数据集中的prompt进行详细的标注,明确指出模型需要识别和理解的关键元素,如实体、关键词、语法结构;
[0026] 特征工程:分析特殊格式prompt的特征,并设计相应的特征提取方法,以便模型能够更有效地捕捉这些特征;
[0027] 评估和迭代:在微调过程中,持续评估模型对特殊格式prompt的理解能力,并根据评估结果进行迭代优化;
[0028] 前端显示结果:大模型返回结果,前端进行展示时,由于标签属于标准的html格式,使用支持html展示方式的输入框进行展示,以此达到低成本且不引用多模态模型的情况下,支持图片、公式展示的要求。
[0029] 一种基于大模型的面向汽车服务行业的低成本展示图片和公式的系统,所述系统由知识构建模块以及只是回答模块组成;
[0030] 知识构建模块,将用户上传的文件转化为知识库中可检索和利用的知识资源,包括:用户文件上传、前端处理、后端文件接收与存储、调用知识库上传接口、文件内容整理、文件解析与切片以及上传到向量库;
[0031] 知识问答模块,包括用户提问、知识库检索、生成提示语、提交大模型以及前端显示结果。
[0032] 优选的,知识构建模块包括:
[0033] 用户文件上传:用户通过用户界面选择并上传他们希望转化为知识资源的文件,这些文件包括文本文档、PDF、PPT幻灯片、Excel电子表格格式;
[0034] 前端处理:前端应用接收到用户上传的文件后,调用后端提供的文件上传接口,确保文件从用户端安全地传输到服务器端;
[0035] 后端文件接收与存储:后端服务器接收到文件后,进行文件存储操作,文件被保存在服务器的文件系统中,并生成一个唯一的文件标识符,用于后续操作;
[0036] 调用知识库上传接口:后端服务器通过调用知识库的上传接口,将文件标识符传递给知识库系统,以触发文件解析和知识提取的过程;
[0037] 文件解析与切片:知识库系统接收到文件标识符后,对文件进行解析,解析过程包括文本提取、格式转换、内容分析等,将文件内容分割成可索引和检索的单元;在切片时,保持段落的完整性,防止图片标签、公式标签与正文分到不同片段中;
[0038] 上传到向量库:解析后的内容被进一步处理,转换成向量形式,然后上传到向量库中,向量库是一个存储和索引文件向量数据的系统,它允许快速检索和相似性比较。
[0039] 优选的,文件内容整理的具体操作包括:
[0040] 图片占位符转换:将文档中的所有图片进行识别,并转换为统一的占位符格式,以<img id="rIdx">表示,其中rIdx为图片在文档中的相对索引,确保文档的一致性,并便于后续的图片管理和引用,对应图片保存到minio中,将图片在minio中的保存地址,替换到文本中,如<img id=”rIdx”src=”https: www.xxx.com xxx.png”>;
[0041] 公式处理:简单公式处理时,对于只包含基本算术运算和上下标的公式,应利用文档编辑软件的格式功能,将上下标的格式转换为HTML的和标签;复杂公式处理时,转换为图片:将复杂公式转换为图片,并使用<img id="rIdx">标签进行标记,处理过程和"图片占位符转换”部分保持一致;转换为LaTeX格式:通过光学字符识别技术,将复杂公式转换为LaTeX格式,以便于在文档中以文本形式呈现,并保持其可编辑性和可检索性;页面页脚去除:在进行文档整理时,直接移除页面页脚的格式。
[0042] 优选的,知识问答模块包括:
[0043] 用户提问:用户选用知识库并且进行提问;
[0044] 知识库检索:系统接收到用户的提问后,在向量库中检索相关知识片段;
[0045] 生成提示语:见检索到的知识片段和问题进行结合,生成提示语,在这个过程中,使用提示语如下,要求大模型将引用的标签返回;
[0046] 提交到大模型:生成的提示语随后被提交给大模型,大模型根据提示语中的指令和上下文信息,生成回答或执行相关的任务。
[0047] 优选的,还包括调整模块,用于对模型的提示语输出格式进行精细调整,具体操作如下:
[0048] 数据集制定:收集与特殊格式prompt相关的数据集,确保这些数据反映prompt的多样性和复杂性,使用这些数据对模型进行再训练,以增强其对特定格式的适应性;
[0049] 标注增强:对数据集中的prompt进行详细的标注,明确指出模型需要识别和理解的关键元素,如实体、关键词、语法结构;
[0050] 特征工程:分析特殊格式prompt的特征,并设计相应的特征提取方法,以便模型能够更有效地捕捉这些特征;
[0051] 评估和迭代:在微调过程中,持续评估模型对特殊格式prompt的理解能力,并根据评估结果进行迭代优化;
[0052] 前端显示结果:大模型返回结果,前端进行展示时,由于标签属于标准的html格式,使用支持html展示方式的输入框进行展示,以此达到低成本且不引用多模态模型的情况下,支持图片、公式展示的要求。
[0053] 与现有技术相比,本发明的有益效果是:
[0054] 本发明提出的基于大模型的面向汽车服务行业的低成本展示图片和公式的方法及系统,通过文件内容整理,包括图片占位符转换、公式处理和页面页脚去除,提高了文档的规范性和可读性;实现低成本下,对于知识问答中引用图片、公式的展示;增强模型的语义理解:通过微调策略,如数据集定制、标注增强、特征工程和评估迭代,提升了模型对特定格式prompt的语义理解能力。附图说明
[0055] 图1为本发明方法流程图;
[0056] 图2为本发明知识构建流程图。具体实施方式
[0057] 为了使本发明的目的、技术方案进行清楚、完整地描述,及优点更加清楚明白,以下结合附图对本发明实施例进行进一步详细说明。应当理解,此处所描述的具体实施例是本发明一部分实施例,而不是全部的实施例,仅仅用以解释本发明实施例,并不用于限定本发明实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
[0058] 实施例一,请参阅图1至图2,本发明提供一种技术方案:一种基于大模型的面向汽车服务行业的低成本展示图片和公式的方法,所述方法包括以下步骤:
[0059] 一、知识构建的流程主要是以下过程:
[0060] 1、用户文件上传:用户通过用户界面选择并上传他们希望转化为知识资源的文件。这些文件可能包括文本文档、PDF、PPT幻灯片、Excel电子表格等格式。
[0061] 2、前端处理:前端应用接收到用户上传的文件后,调用后端提供的文件上传接口。这一步骤确保了文件从用户端安全地传输到服务器端。
[0062] 3、后端文件接收与存储:后端服务器接收到文件后,进行文件存储操作。文件被保存在服务器的文件系统中,并生成一个唯一的文件标识符(如文件URL和文件名),用于后续操作。
[0063] 4、调用知识库上传接口:后端服务器通过调用知识库的上传接口,将文件标识符传递给知识库系统,以触发文件解析和知识提取的过程。
[0064] 5、文件内容整理:在本过程中,需要对文档内容进行整理。主要做的操作是:
[0065] (1)图片占位符转换:
[0066] 将文档中的所有图片进行识别,并转换为统一的占位符格式,以<img id="rIdx">表示,其中rIdx为图片在文档中的相对索引。这一步骤确保了文档的一致性,并便于后续的图片管理和引用。同时,在此过程中将对应图片保存到minio中,将图片在minio中的保存地址,替换到文本中,如<img id=”rIdx”src=”https: www.xxx.com xxx.png”>。
[0067] (2)公式处理:
[0068] 简单公式:对于只包含基本算术运算(加减乘除)和上下标的公式,应利用文档编辑软件(如Word)的格式功能,将上下标的格式转换为HTML的和标签。这一步骤简化了公式的表示,同时保持了其可读性。
[0069] 复杂公式:对于包含分子分母等复杂结构的公式,有以下两种处理方式:
[0070] 1)转换为图片:将复杂公式转换为图片,并使用<img id="rIdx"
[0071] / >标签进行标记,处理过程和"图片占位符转换”部分保持一致。这种方法适用于需要保留公式精确布局的情况。
[0072] 2)转换为LaTeX格式:通过光学字符识别(OCR)技术,将复杂公式转换为LaTeX格式,以便于在文档中以文本形式呈现,并保持其可编辑性和可检索性。
[0073] (3)页面页脚去除:
[0074] 在进行文档整理时,我们将直接移除页面页脚的格式。鉴于某些文档,特别是从PDF转换至Word格式的文档,可能存在页眉页脚信息混入正文的问题,我们将采取以下措施:对文档中每一页的首行和末行进行逐一检查,以识别和确认是否存在重复内容。若发现大量重复的文本,我们将认定其为页眉或页脚,并将其从正文中清除,以确保文档的规范性和内容的准确性。这一过程将通过精确的文本分析和比对来执行,以维护文档的专业性和可读性。
[0075] 6、文件解析与切片:知识库系统接收到文件标识符后,对文件进行解析。解析过程可能包括文本提取、格式转换、内容分析等,将文件内容分割成可索引和检索的单元。在切片时,需要注意保持段落的完整性,防止图片标签、公式标签与正文分到不同片段中。
[0076] 7、上传到向量库:解析后的内容被进一步处理,转换成向量形式,然后上传到向量库中。向量库是一个存储和索引文件向量数据的系统,它允许快速检索和相似性比较。
[0077] 二、知识问答
[0078] 知识问答的主要流程是用户提问、知识库检索、生成提示语、提交大模型、前端显示结果。
[0079] 1、用户提问:用户选用知识库并且进行提问。
[0080] 2、知识库检索:系统接收到用户的提问后,在向量库中检索相关知识片段。
[0081] 3、生成提示语:见检索到的知识片段和问题进行结合,生成提示语。在这个过程中,可使用提示语如下,要求大模型将引用的标签返回:
[0082]
[0083]
[0084] 4、提交到大模型:生成的提示语随后被提交给大模型。大模型根据提示语中的指令和上下文信息,生成回答或执行相关的任务。
[0085] 在低参数配置下运行的大型语言模型可能面临语义理解能力不足的问题,这可能导致在生成回答时出现不一致性和不稳定性。为了提高模型的响应质量和一致性,有必要对模型的提示语输出格式进行精细调整。同时,为了提升模型对特定格式prompt的理解能力,可以采取以下微调策略:
[0086] 1)数据集制定:收集与特殊格式prompt相关的数据集,确保这些数据能够反映prompt的多样性和复杂性。使用这些数据对模型进行再训练,以增强其对特定格式的适应性。
[0087] 2)标注增强:对数据集中的prompt进行详细的标注,明确指出模型需要识别和理解的关键元素,如实体、关键词、语法结构等。
[0088] 3)特征工程:分析特殊格式prompt的特征,并设计相应的特征提取方法,以便模型能够更有效地捕捉这些特征。
[0089] 4)评估和迭代:在微调过程中,持续评估模型对特殊格式prompt的理解能力,并根据评估结果进行迭代优化。
[0090] 5、前端显示结果:大模型返回结果,前端进行展示时,由于标签属于标准的html格式,可使用支持html展示方式的输入框进行展示,以此达到低成本且不引用多模态模型的情况下,支持图片、公式展示的要求。
[0091] 实施例二
[0092] 在实施例一的基础上,提出了一种基于大模型的面向汽车服务行业的低成本展示图片和公式的系统,所述系统由知识构建模块以及只是回答模块组成;
[0093] 知识构建模块,将用户上传的文件转化为知识库中可检索和利用的知识资源,包括:用户文件上传、前端处理、后端文件接收与存储、调用知识库上传接口、文件内容整理、文件解析与切片以及上传到向量库;知识构建模块包括:
[0094] 用户文件上传:用户通过用户界面选择并上传他们希望转化为知识资源的文件,这些文件包括文本文档、PDF、PPT幻灯片、Excel电子表格格式;
[0095] 前端处理:前端应用接收到用户上传的文件后,调用后端提供的文件上传接口,确保文件从用户端安全地传输到服务器端;
[0096] 后端文件接收与存储:后端服务器接收到文件后,进行文件存储操作,文件被保存在服务器的文件系统中,并生成一个唯一的文件标识符,用于后续操作;
[0097] 调用知识库上传接口:后端服务器通过调用知识库的上传接口,将文件标识符传递给知识库系统,以触发文件解析和知识提取的过程;
[0098] 文件解析与切片:知识库系统接收到文件标识符后,对文件进行解析,解析过程包括文本提取、格式转换、内容分析等,将文件内容分割成可索引和检索的单元;在切片时,保持段落的完整性,防止图片标签、公式标签与正文分到不同片段中;
[0099] 上传到向量库:解析后的内容被进一步处理,转换成向量形式,然后上传到向量库中,向量库是一个存储和索引文件向量数据的系统,它允许快速检索和相似性比较。
[0100] 文件内容整理的具体操作包括:
[0101] 图片占位符转换:将文档中的所有图片进行识别,并转换为统一的占位符格式,以<img id="rIdx">表示,其中rIdx为图片在文档中的相对索引,确保文档的一致性,并便于后续的图片管理和引用,对应图片保存到minio中,将图片在minio中的保存地址,替换到文本中,如<img id=”rIdx”src=”https: www.xxx.com xxx.png”>;
[0102] 公式处理:简单公式处理时,对于只包含基本算术运算和上下标的公式,应利用文档编辑软件的格式功能,将上下标的格式转换为HTML的和标签;复杂公式处理时,转换为图片:将复杂公式转换为图片,并使用<img id="rIdx">标签进行标记,处理过程和"图片占位符转换”部分保持一致;转换为LaTeX格式:通过光学字符识别技术,将复杂公式转换为LaTeX格式,以便于在文档中以文本形式呈现,并保持其可编辑性和可检索性;页面页脚去除:在进行文档整理时,直接移除页面页脚的格式。
[0103] 知识问答模块,包括用户提问、知识库检索、生成提示语、提交大模型以及前端显示结果。知识问答模块包括:
[0104] 用户提问:用户选用知识库并且进行提问;
[0105] 知识库检索:系统接收到用户的提问后,在向量库中检索相关知识片段;
[0106] 生成提示语:见检索到的知识片段和问题进行结合,生成提示语,在这个过程中,使用提示语如下,要求大模型将引用的标签返回;
[0107] 提交到大模型:生成的提示语随后被提交给大模型,大模型根据提示语中的指令和上下文信息,生成回答或执行相关的任务。
[0108] 还包括调整模块,用于对模型的提示语输出格式进行精细调整,具体操作如下:
[0109] 数据集制定:收集与特殊格式prompt相关的数据集,确保这些数据反映prompt的多样性和复杂性,使用这些数据对模型进行再训练,以增强其对特定格式的适应性;
[0110] 标注增强:对数据集中的prompt进行详细的标注,明确指出模型需要识别和理解的关键元素,如实体、关键词、语法结构;
[0111] 特征工程:分析特殊格式prompt的特征,并设计相应的特征提取方法,以便模型能够更有效地捕捉这些特征;
[0112] 评估和迭代:在微调过程中,持续评估模型对特殊格式prompt的理解能力,并根据评估结果进行迭代优化;
[0113] 前端显示结果:大模型返回结果,前端进行展示时,由于标签属于标准的html格式,使用支持html展示方式的输入框进行展示,以此达到低成本且不引用多模态模型的情况下,支持图片、公式展示的要求。
[0114] 尽管已经示出和描述了本发明的实施例,对于本领域的普通技术人员而言,可以理解在不脱离本发明的原理和精神的情况下可以对这些实施例进行多种变化、修改、替换和变型,本发明的范围由所附权利要求及其等同物限定。
Claims
1. A low-cost method for displaying images and formulas in the automotive service industry based on a large model, characterized by: The method comprises the following steps: Knowledge construction: converting user-uploaded files into knowledge resources that can be searched and utilized in the knowledge base, including: user file uploading, front-end processing, back-end file reception and storage, calling the knowledge base upload interface, file content organization, file parsing and slicing, and uploading to the vector library; Knowledge question and answer, including user questions, knowledge base retrieval, prompt generation, large model submission and front-end display of results.
2. The low-cost method for displaying pictures and formulas based on a large model for the automotive service industry according to claim 1, characterized in that: The specific operations of knowledge construction include: User file upload: Users select and upload files they wish to convert into knowledge resources through the user interface. These files include text documents, PDFs, PPT slides, and Excel spreadsheets. Front-end processing: After receiving the file uploaded by the user, the front-end application calls the file upload interface provided by the back-end to ensure that the file is securely transmitted from the user end to the server end; Back-end file reception and storage: After the back-end server receives the file, it performs file storage operations. The file is saved in the server's file system and a unique file identifier is generated for subsequent operations. Calling the knowledge base upload interface: The backend server calls the knowledge base upload interface and passes the file identifier to the knowledge base system to trigger the file parsing and knowledge extraction process; File parsing and slicing: After receiving the file identifier, the knowledge base system parses the file. The parsing process includes text extraction, format conversion, and content analysis, segmenting the file content into indexable and searchable units. When slicing, the integrity of the paragraphs is maintained to prevent image tags, formula tags, and the main text from being divided into different segments. Upload to Vector Library: The parsed content is further processed, converted into vector form, and then uploaded to Vector Library, a system for storing and indexing file vector data, which allows fast retrieval and similarity comparison.
3. The low-cost method for displaying pictures and formulas based on a large model for the automotive service industry according to claim 1, characterized in that: The specific operations for file content organization include: Image placeholder conversion: Identify all images in the document and convert them into a unified placeholder format.<imgid="rIdx" / > Indicates that rIdx is the relative index of the image in the document, which ensures the consistency of the document and facilitates subsequent image management and reference. The corresponding image is saved in minio, and the image's save address in minio is replaced with the text, such as <img id=”rIdx”src=”https: www.xxx.com xxx.png”> ; Formula processing: When processing simple formulas, for formulas that only contain basic arithmetic operations and superscripts and subscripts, you should use the formatting function of the document editing software to convert the superscript and subscript formats to HTML. 和标签;复杂公式处理时,转换为图片:将复杂公式转换为图片,并使用<img id="rIdx">标签进行标记,处理过程和"图片占位符转换”部分保持一致;转换为LaTeX格式:通过光学字符识别技术,将复杂公式转换为LaTeX格式,以便于在文档中以文本形式呈现,并保持其可编辑性和可检索性;页面页脚去除:在进行文档整理时,直接移除页面页脚的格式。 4. The low-cost method for displaying pictures and formulas based on a large model for the automotive service industry according to claim 1, characterized in that: The specific operations of Knowledge Question Answering include: User questions: Users select a knowledge base and ask questions; Knowledge base retrieval: After receiving the user's question, the system searches for relevant knowledge fragments in the vector library; Generate prompts: Combine the retrieved knowledge fragments with the questions to generate prompts. In this process, the prompts are as follows, requiring the large model to 标签返回; Submit to the big model: The generated prompt is then submitted to the big model, which generates answers or performs related tasks based on the instructions and context information in the prompt.
5. The low-cost method for displaying pictures and formulas based on a large model for the automotive service industry according to claim 1, characterized in that: It also includes fine-tuning the output format of the model's prompts. The specific operations are as follows: Dataset development: Collect datasets related to special prompt formats, ensuring that these datasets reflect the diversity and complexity of prompts. Use these datasets to retrain the model to enhance its adaptability to specific formats. Annotation enhancement: Detailed annotation of prompts in the dataset to clearly indicate the key elements that the model needs to recognize and understand, such as entities, keywords, and grammatical structures; Feature engineering: Analyze the characteristics of special format prompts and design corresponding feature extraction methods so that the model can capture these characteristics more effectively; Evaluation and iteration: During fine-tuning, continuously evaluate the model's ability to understand specially formatted prompts and iterate based on the evaluation results. Front-end display results: When the large model returns the results, the front-end displays them. 标签属于标准的html格式,使用支持html展示方式的输入框进行展示,以此达到低成本且不引用多模态模型的情况下,支持图片、公式展示的要求。 6. A method for displaying images and formulas at low cost based on a large model for the automotive service industry according to any one of claims 1 to 5, characterized in that: The system consists of a knowledge building module and a just answering module; The knowledge construction module converts user-uploaded files into knowledge resources that can be searched and utilized in the knowledge base, including: user file uploading, front-end processing, back-end file reception and storage, calling the knowledge base upload interface, file content organization, file parsing and slicing, and uploading to the vector library; The knowledge question and answer module includes user questions, knowledge base retrieval, prompt generation, large model submission, and front-end display of results.
7. The low-cost large-scale model-based system for displaying images and formulas for the automotive service industry according to claim 6, characterized in that: The knowledge building blocks include: User file upload: Users select and upload files they wish to convert into knowledge resources through the user interface. These files include text documents, PDFs, PPT slides, and Excel spreadsheets. Front-end processing: After receiving the file uploaded by the user, the front-end application calls the file upload interface provided by the back-end to ensure that the file is securely transmitted from the user end to the server end; Back-end file reception and storage: After the back-end server receives the file, it performs file storage operations. The file is saved in the server's file system and a unique file identifier is generated for subsequent operations. Calling the knowledge base upload interface: The backend server calls the knowledge base upload interface and passes the file identifier to the knowledge base system to trigger the file parsing and knowledge extraction process; File parsing and slicing: After receiving the file identifier, the knowledge base system parses the file. The parsing process includes text extraction, format conversion, and content analysis, segmenting the file content into indexable and searchable units. When slicing, the integrity of the paragraphs is maintained to prevent image tags, formula tags, and the main text from being divided into different segments. Upload to Vector Library: The parsed content is further processed, converted into vector form, and then uploaded to Vector Library, a system for storing and indexing file vector data, which allows fast retrieval and similarity comparison.
8. The low-cost large-scale model-based system for displaying images and formulas for the automotive service industry according to claim 6, characterized in that: The specific operations for file content organization include: Image placeholder conversion: Identify all images in the document and convert them into a unified placeholder format.<imgid="rIdx" / > Indicates that rIdx is the relative index of the image in the document, which ensures the consistency of the document and facilitates subsequent image management and reference. The corresponding image is saved in minio, and the image's save address in minio is replaced with the text, such as <img id=”rIdx”src=”https: www.xxx.com xxx.png”> ; Formula processing: When processing simple formulas, for formulas that only contain basic arithmetic operations and superscripts and subscripts, you should use the formatting function of the document editing software to convert the superscript and subscript formats to HTML. 和标签;复杂公式处理时,转换为图片:将复杂公式转换为图片,并使用<img id="rIdx">标签进行标记,处理过程和"图片占位符转换”部分保持一致;转换为LaTeX格式:通过光学字符识别技术,将复杂公式转换为LaTeX格式,以便于在文档中以文本形式呈现,并保持其可编辑性和可检索性;页面页脚去除:在进行文档整理时,直接移除页面页脚的格式。 9. The low-cost system for displaying pictures and formulas based on a large model for the automotive service industry according to claim 6, characterized in that: The knowledge question and answer module includes: User questions: Users select a knowledge base and ask questions; Knowledge base retrieval: After receiving the user's question, the system searches for relevant knowledge fragments in the vector library; Generate prompts: Combine the retrieved knowledge fragments with the questions to generate prompts. In this process, the prompts are as follows, requiring the large model to 标签返回; Submit to the big model: The generated prompt is then submitted to the big model, which generates answers or performs related tasks based on the instructions and context information in the prompt.
10. The low-cost system for displaying pictures and formulas based on a large model for the automotive service industry according to claim 6, characterized in that: It also includes an adjustment module for fine-tuning the prompt output format of the model. The specific operations are as follows: Dataset development: Collect datasets related to special prompt formats, ensuring that these datasets reflect the diversity and complexity of prompts. Use these datasets to retrain the model to enhance its adaptability to specific formats. Annotation enhancement: Detailed annotation of prompts in the dataset to clearly indicate the key elements that the model needs to recognize and understand, such as entities, keywords, and grammatical structures; Feature engineering: Analyze the characteristics of special format prompts and design corresponding feature extraction methods so that the model can capture these characteristics more effectively; Evaluation and iteration: During fine-tuning, continuously evaluate the model's ability to understand specially formatted prompts and iterate based on the evaluation results. Front-end display results: When the large model returns the results, the front-end displays them. 标签属于标准的html格式,使用支持html展示方式的输入框进行展示,以此达到低成本且不引用多模态模型的情况下,支持图片、公式展示的要求。
Citation Information
Patent Citations
Word-based knowledge base construction method and Word-based knowledge base control method
CN113779931A
Question and answer retrieval method and system fusing document knowledge and question and answer pair data
CN117407505A
Examination question bank construction method and system based on large language model and electronic equipment
CN117473037A
Intelligent document question and answer method based on large model
CN117932018A
Vector knowledge base-based large-model question-answer dialogue method and system and storage medium
CN118484526A
