[go: up one dir, main page]

CN118708808A - Recommendation method, device, equipment and storage medium based on large model - Google Patents

Recommendation method, device, equipment and storage medium based on large model Download PDF

Info

Publication number
CN118708808A
CN118708808A CN202410804796.XA CN202410804796A CN118708808A CN 118708808 A CN118708808 A CN 118708808A CN 202410804796 A CN202410804796 A CN 202410804796A CN 118708808 A CN118708808 A CN 118708808A
Authority
CN
China
Prior art keywords
user
target
behavior
information
behavior information
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
Application number
CN202410804796.XA
Other languages
Chinese (zh)
Inventor
徐焕旻
尉桢楷
何伯磊
潘秋桐
陈坤斌
和为
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN202410804796.XA priority Critical patent/CN118708808A/en
Publication of CN118708808A publication Critical patent/CN118708808A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9535Search customisation based on user profiles and personalisation
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N5/00Computing arrangements using knowledge-based models
    • G06N5/04Inference or reasoning models

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Evolutionary Computation (AREA)
  • Mathematical Physics (AREA)
  • Software Systems (AREA)
  • Computational Linguistics (AREA)
  • Artificial Intelligence (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

本公开提出了一种基于大模型的推荐方法、装置、设备以及存储介质,涉及数据处理技术领域,尤其涉及自然语言处理以及大数据技术领域。具体实现方案为:通过获取目标用户的历史行为信息;根据历史行为信息,采用大模型确定目标用户的用户画像;基于用户画像和目标用户的实时行为信息,采用大模型确定待执行的目标任务;推荐目标用户所登录客户端执行目标任务。通过生成用户画像提取出目标用户的代表性信息,再结合目标用户的实时行为信息,能够对目标用户的行为信息进行更加准确的描述,以此作为目标任务确定的依据,能够提高目标任务推荐的相关性和准确性,个性化定制工作内容,提高目标用户执行任务的快捷度。

The present disclosure proposes a recommendation method, device, equipment and storage medium based on a big model, which relates to the field of data processing technology, especially to the field of natural language processing and big data technology. The specific implementation scheme is: by obtaining the historical behavior information of the target user; according to the historical behavior information, using the big model to determine the user portrait of the target user; based on the user portrait and the real-time behavior information of the target user, using the big model to determine the target task to be executed; recommending the client logged in by the target user to execute the target task. By generating a user portrait to extract the representative information of the target user, and then combining it with the real-time behavior information of the target user, the behavior information of the target user can be described more accurately, which can be used as the basis for determining the target task, which can improve the relevance and accuracy of the target task recommendation, personalize the work content, and improve the speed of the target user to perform the task.

Description

基于大模型的推荐方法、装置、设备以及存储介质Recommendation method, device, equipment and storage medium based on large model

技术领域Technical Field

本公开涉及数据处理技术领域,尤其涉及自然语言处理以及大数据技术领域。The present disclosure relates to the field of data processing technology, and in particular to the field of natural language processing and big data technology.

背景技术Background Art

在企业办公场景中,员工在处理日常工作任务时,经常需要查找和获取大量信息,并做出各种决策。现有的办公自动化系统大多依赖于被动的用户操作,即用户需要主动去搜索或查询相关信息,推荐过程智能化程度较低。In corporate office scenarios, employees often need to find and obtain a lot of information and make various decisions when handling daily work tasks. Most existing office automation systems rely on passive user operations, that is, users need to actively search or query relevant information, and the recommendation process is less intelligent.

发明内容Summary of the invention

本公开提供了一种基于大模型的推荐方法、装置、设备以及存储介质。The present disclosure provides a recommendation method, apparatus, device and storage medium based on a large model.

根据本公开的第一方面,提供了一种基于大模型的推荐方法,所述方法包括:获取目标用户的历史行为信息;根据所述历史行为信息,采用大模型确定所述目标用户的用户画像;基于所述用户画像和所述目标用户的实时行为信息,采用所述大模型确定待执行的目标任务;推荐所述目标用户所登录客户端执行所述目标任务。According to a first aspect of the present disclosure, a recommendation method based on a big model is provided, the method comprising: obtaining historical behavior information of a target user; determining a user portrait of the target user using a big model based on the historical behavior information; determining a target task to be executed using the big model based on the user portrait and the real-time behavior information of the target user; and recommending the client logged in by the target user to execute the target task.

根据本公开的第二方面,提供了一种基于大模型的推荐装置,包括:获取模块,用于获取目标用户的历史行为信息;第一确定模块,用于根据所述历史行为信息,采用大模型确定所述目标用户的用户画像;第二确定模块,用于基于所述用户画像和所述目标用户的实时行为信息,采用所述大模型确定待执行的目标任务;推荐模块,用于推荐所述目标用户所登录客户端执行所述目标任务。According to a second aspect of the present disclosure, a recommendation device based on a big model is provided, comprising: an acquisition module for acquiring historical behavior information of a target user; a first determination module for determining a user portrait of the target user using a big model based on the historical behavior information; a second determination module for determining a target task to be executed using the big model based on the user portrait and real-time behavior information of the target user; and a recommendation module for recommending that a client logged in by the target user execute the target task.

根据本公开的第三方面,提供了一种电子设备,包括:至少一个处理器;以及与所述至少一个处理器通信连接的存储器;其中,所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行第一方面所述的方法。According to a third aspect of the present disclosure, an electronic device is provided, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method described in the first aspect.

根据本公开的第四方面,提供了一种存储有计算机指令的非瞬时计算机可读存储介质,其中,所述计算机指令用于使所述计算机执行第一方面所述的方法。According to a fourth aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to cause the computer to execute the method described in the first aspect.

根据本公开的第五方面,提供了一种计算机程序产品,包括计算机程序,所述计算机程序在被处理器执行时实现第一方面所述方法的步骤。According to a fifth aspect of the present disclosure, a computer program product is provided, comprising a computer program, wherein the computer program implements the steps of the method according to the first aspect when executed by a processor.

应当理解,本部分所描述的内容并非旨在标识本公开的实施例的关键或重要特征,也不用于限制本公开的范围。本公开的其它特征将通过以下的说明书而变得容易理解。It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

附图用于更好地理解本方案,不构成对本公开的限定。其中:The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present disclosure.

图1是根据本公开一实施例提供的一种基于大模型的推荐方法的流程示意图;FIG1 is a schematic diagram of a flow chart of a recommendation method based on a large model according to an embodiment of the present disclosure;

图2是根据本公开另一实施例提供的一种基于大模型的推荐方法的流程示意图;FIG2 is a flow chart of a large model-based recommendation method according to another embodiment of the present disclosure;

图3是根据本公开另一实施例提供的一种基于大模型的推荐方法的流程示意图;FIG3 is a flow chart of a large model-based recommendation method according to another embodiment of the present disclosure;

图4是根据本公开另一实施例提供的一种基于大模型的推荐方法的流程示意图;FIG4 is a flow chart of a large model-based recommendation method according to another embodiment of the present disclosure;

图5是根据本公开一实施例提供的一种基于大模型的推荐装置的结构示意图;FIG5 is a schematic diagram of a structure of a recommendation device based on a large model according to an embodiment of the present disclosure;

图6是可以用来实施本公开的实施例的示例电子设备600的示意性框图。FIG. 6 is a schematic block diagram of an example electronic device 600 that may be used to implement embodiments of the present disclosure.

具体实施方式DETAILED DESCRIPTION

以下结合附图对本公开的示范性实施例做出说明,其中包括本公开实施例的各种细节以助于理解,应当将它们认为仅仅是示范性的。因此,本领域普通技术人员应当认识到,可以对这里描述的实施例做出各种改变和修改,而不会背离本公开的范围和精神。同样,为了清楚和简明,以下的描述中省略了对公知功能和结构的描述。The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.

数据处理(Data Processing),是从大量的、杂乱无章的、难以理解的数据中抽取并推导出对于某些特定的人来说是有价值、有意义的数据。数据是对事实、概念或指令的一种表达形式,可由人工或自动化装置进行处理,数据经过解释并赋予一定的意义之后,便成为信息,数据处理就是对数据的采集、存储、检索、加工、变换和传输。Data processing is to extract and derive valuable and meaningful data for certain people from a large amount of chaotic and difficult to understand data. Data is a form of expression of facts, concepts or instructions, which can be processed by manual or automatic devices. After the data is interpreted and given a certain meaning, it becomes information. Data processing is the collection, storage, retrieval, processing, transformation and transmission of data.

自然语言处理(Natural Language Processing,NLP),是计算机科学领域和人工智能领域中的一个重要方向,能够实现人与计算机之间用自然语言进行有效通信的各种理论和方法,主要应用于机器翻译、舆情监测、自动摘要、观点提取、文本分类、问题回答、文本语义对比、语音识别、中文OCR等方面。Natural Language Processing (NLP) is an important direction in the fields of computer science and artificial intelligence. It is a variety of theories and methods that can realize effective communication between people and computers using natural language. It is mainly used in machine translation, public opinion monitoring, automatic summarization, opinion extraction, text classification, question answering, text semantic comparison, speech recognition, Chinese OCR and other aspects.

大数据(Big Data),是所涉及的资料量规模巨大到无法透过主流软件工具,在合理时间内达到撷取、管理、处理、并整理成为帮助经营决策更积极的资讯,包括结构化、半结构化和非结构化数据。Big Data refers to the amount of data involved that is so large that it cannot be captured, managed, processed, and organized into information that helps business decisions more proactively within a reasonable time through mainstream software tools, including structured, semi-structured, and unstructured data.

需要说明的是,本公开的技术方案中,所涉及的历史行为信息、用户画像和实时行为信息的采集/收集、更新、分析、使用、传输、存储等方面,均得到用户允许和同意,且符合相关法律法规的规定,被用于合法且合理的用途,不在这些合法使用等方面之外共享、泄露或出售,并且接受国家监管部门的监督管理。应当对上述信息采取必要措施,选择性地阻止使用或访问上述信息数据,以防止对此类信息数据的非法访问,确保有权访问上述信息数据的人员遵守相关法律法规的规定,确保用户信息安全。此外,一旦不再需要上述信息数据,应当通过限制甚至禁止数据收集和/或删除数据的方式将风险降至最低。It should be noted that in the technical solution of the present disclosure, the collection/collection, update, analysis, use, transmission, storage and other aspects of the historical behavior information, user portraits and real-time behavior information involved are all permitted and agreed by the user, and comply with the provisions of relevant laws and regulations, and are used for legal and reasonable purposes. They are not shared, leaked or sold outside of these legal uses, and are subject to supervision and management by national regulatory authorities. Necessary measures should be taken for the above information to selectively block the use or access to the above information data to prevent illegal access to such information data, ensure that persons who have access to the above information data comply with the provisions of relevant laws and regulations, and ensure user information security. In addition, once the above information data is no longer needed, the risk should be minimized by limiting or even prohibiting data collection and/or deleting data.

图1为本公开实施例提供的一种基于大模型的推荐方法的流程示意图。如图1所示,该基于大模型的推荐方法包括但不限于以下步骤:FIG1 is a flow chart of a large model-based recommendation method provided by an embodiment of the present disclosure. As shown in FIG1 , the large model-based recommendation method includes but is not limited to the following steps:

步骤101,获取目标用户的历史行为信息。Step 101, obtaining historical behavior information of the target user.

可选地,目标用户可以是企业员工,目标用户在终端设备上通过登录客户端开展日常工作。Optionally, the target user may be an enterprise employee, and the target user performs daily work by logging into a client on a terminal device.

在本公开实施例中,在目标用户确认允许获取历史行为信息之后,通过调取目标用户登录的客户端的数据,获取目标用户的历史行为信息,其中,历史行为信息是目标用户历史工作行为对应的信息,例如目标用户的会议行为、项目跟踪行为、客户沟通行为、邮件往来行为、文档操作行为等历史工作行为对应的时间、地点、对象、事件等信息。In the embodiment of the present disclosure, after the target user confirms that historical behavior information is allowed to be obtained, the historical behavior information of the target user is obtained by retrieving the data of the client through which the target user logs in, wherein the historical behavior information is information corresponding to the target user's historical work behavior, such as the time, place, object, event, and other information corresponding to the target user's meeting behavior, project tracking behavior, customer communication behavior, email exchange behavior, document operation behavior, and other historical work behaviors.

举例说明,调取的目标用户的数据为:周五员工A撰写周报。则目标用户为员工A,历史工作行为为撰写周报,对应的时间为周五,地点为员工A撰写周报的工作地点B,对象为员工A,该数据对应的历史行为信息包括:周五、工作地点B、员工A、撰写周报。For example, the retrieved target user data is: Employee A writes a weekly report on Friday. Then the target user is Employee A, the historical work behavior is writing a weekly report, the corresponding time is Friday, the location is work location B where Employee A writes the weekly report, and the object is Employee A. The historical behavior information corresponding to the data includes: Friday, work location B, Employee A, and writing a weekly report.

举例说明,调取的目标用户的数据为:周四员工A与所属小组的员工C、员工D、员工E共同召开会议。则目标用户为员工A,历史工作行为为召开会议,对应的时间为周四,地点为召开会议的工作地点F,对象为员工A、员工C、员工D和员工E,该数据对应的历史行为信息包括:周四、工作地点F、员工A、员工C、员工D、员工E、召开会议。For example, the retrieved target user data is: On Thursday, employee A held a meeting with employees C, D, and E in his group. Then the target user is employee A, the historical work behavior is holding a meeting, the corresponding time is Thursday, the location is the work location F where the meeting was held, the objects are employees A, C, D, and E, and the historical behavior information corresponding to the data includes: Thursday, work location F, employee A, employee C, employee D, employee E, and holding a meeting.

步骤102,根据历史行为信息,采用大模型确定目标用户的用户画像。Step 102, based on historical behavior information, a large model is used to determine the user profile of the target user.

在本公开实施例中,在目标用户确认允许获取用户画像的相关信息之后,可以将获取到的历史行为信息输入到大模型中,通过大模型的模型能力对目标用户的历史行为信息进行分析,生成目标用户的用户画像。In the disclosed embodiment, after the target user confirms permission to obtain relevant information of the user portrait, the acquired historical behavior information can be input into the big model, and the historical behavior information of the target user can be analyzed through the model capabilities of the big model to generate a user portrait of the target user.

可选的,用户画像可以是对一定时间内目标用户的历史行为信息进行抽象提取出来的具有代表性的信息,例如可以是对员工A入职至今的所有历史行为信息的抽象提取,或者是对员工A近半年内的历史行为信息的抽象提取。Optionally, the user portrait can be representative information extracted by abstracting the historical behavior information of the target user within a certain period of time, for example, it can be an abstract extraction of all historical behavior information of employee A since he joined the company, or an abstract extraction of historical behavior information of employee A in the past six months.

需要说明的是,本公开实施例中提出的大模型,可以为大语言模型,也可以为其他能够实现确定用户画像的大模型,此处不做具体限定。It should be noted that the large model proposed in the embodiments of the present disclosure may be a large language model or other large models that can realize the determination of user portraits, and no specific limitation is made here.

其中,大语言模型(Large Language Model,LLM)是基于海量文本数据训练的深度学习模型。可以生成自然语言文本,并深入理解文本含义,处理各种自然语言任务,如文本摘要、问答、翻译等。Among them, the Large Language Model (LLM) is a deep learning model trained based on massive text data. It can generate natural language text, deeply understand the meaning of the text, and handle various natural language tasks such as text summarization, question answering, and translation.

步骤103,基于用户画像和目标用户的实时行为信息,采用大模型确定待执行的目标任务。Step 103, based on the user portrait and the real-time behavior information of the target user, a large model is used to determine the target task to be executed.

在本公开实施例中,在目标用户确认允许获取实时行为信息之后,通过调取目标用户登录的客户端的数据,能够获取目标用户的实时行为信息。In the embodiment of the present disclosure, after the target user confirms permission to obtain the real-time behavior information, the real-time behavior information of the target user can be obtained by retrieving data of the client that the target user logs in to.

可选的,用户画像是目标用户的历史信息表征,实时行为信息是目标用户的当前信息表征,通过用户画像和实时行为信息的结合,能够对目标用户的行为信息进行全面的监测。Optionally, the user portrait is a representation of the historical information of the target user, and the real-time behavior information is a representation of the current information of the target user. By combining the user portrait and the real-time behavior information, the behavior information of the target user can be comprehensively monitored.

在本公开实施例中,采用大模型根据目标用户的用户画像和实时行为信息,能够从目标用户所登录客户端可执行的多种候选任务中确定目标用户待执行的目标任务。In the disclosed embodiment, a large model is used to determine the target task to be performed by the target user from a variety of candidate tasks executable by the client logged in by the target user based on the user portrait and real-time behavior information of the target user.

步骤104,推荐目标用户所登录客户端执行目标任务。Step 104: recommend the client logged in by the target user to perform the target task.

可选的,可以通过弹窗、邮件等形式将目标任务推送至目标用户所登录客户端,以提醒目标用户执行目标任务。Optionally, the target task can be pushed to the client logged in by the target user in the form of a pop-up window, email, etc., to remind the target user to perform the target task.

本公开提出的基于大模型的推荐方法,通过获取目标用户的历史行为信息;根据历史行为信息,采用大模型确定目标用户的用户画像;基于用户画像和目标用户的实时行为信息,采用大模型确定待执行的目标任务;推荐目标用户所登录客户端执行目标任务。通过生成用户画像提取出目标用户的代表性信息,再结合目标用户的实时行为信息,使历史信息和当前信息相结合,能够对目标用户的行为信息进行更加准确的描述,以此作为目标任务确定的依据,能够提高目标任务推荐的相关性和准确性,提高目标用户执行任务的快捷度,降低了目标用户进行任务规划的操作复杂度,个性化定制工作内容,提升目标用户针对办公工具的操作体验。The recommendation method based on a big model proposed in the present disclosure obtains the historical behavior information of the target user; determines the user portrait of the target user based on the historical behavior information; determines the target task to be executed based on the user portrait and the real-time behavior information of the target user using the big model; and recommends the client logged in by the target user to execute the target task. By generating a user portrait to extract representative information of the target user, and then combining the real-time behavior information of the target user, the historical information and the current information are combined, so that the behavior information of the target user can be described more accurately, and this can be used as the basis for determining the target task, which can improve the relevance and accuracy of the target task recommendation, improve the speed of the target user to execute the task, reduce the complexity of the target user's task planning operation, personalize the work content, and improve the target user's operation experience for office tools.

本公开还提出另一种基于大模型的推荐方法,图2为本公开实施例提供的另一种基于大模型的推荐方法的流程示意图。如图2所示,该基于大模型的推荐方法包括但不限于以下步骤:The present disclosure also proposes another recommendation method based on a large model. FIG2 is a flow chart of another recommendation method based on a large model provided by an embodiment of the present disclosure. As shown in FIG2, the recommendation method based on a large model includes but is not limited to the following steps:

步骤201,获取目标用户的历史行为信息。Step 201, obtaining historical behavior information of the target user.

上述步骤201的描述说明可以具体参见上述实施例中的步骤101,在此不再赘述。For the description of the above step 201, please refer to step 101 in the above embodiment, which will not be repeated here.

步骤202,获取基于预设行为信息所构建的特征库,特征库用于存储预设行为信息的行为要素以及各行为要素之间的关联关系。Step 202: Acquire a feature library constructed based on the preset behavior information, where the feature library is used to store the behavior elements of the preset behavior information and the associations between the behavior elements.

可选的,特征库可以通过如下步骤构建:Optionally, the feature library can be constructed by the following steps:

提取至少一种预设行为信息的行为要素,行为要素包括下列中的至少一种:预设行为的执行时间、执行地点、执行对象以及行为类型;对任一预设行为信息,确定各行为要素之间的关联关系;将任一预设行为信息的行为要素以及对应的关联关系作为一条记录进行存储,得到特征库。Extract at least one behavior element of preset behavior information, where the behavior element includes at least one of the following: execution time, execution location, execution object and behavior type of the preset behavior; for any preset behavior information, determine the association relationship between the behavior elements; store the behavior element of any preset behavior information and the corresponding association relationship as a record to obtain a feature library.

可选的,预设行为可以是预先设定的多种规律性场景下的行为,例如,部门1内的所有员工每周五开周会,部门2内的所有员工每周四共同编辑工作记录文档,所有员工每周一上午十点之前到达公司。Optionally, the preset behavior may be a pre-set behavior under multiple regular scenarios, for example, all employees in department 1 hold a weekly meeting every Friday, all employees in department 2 jointly edit work record documents every Thursday, and all employees arrive at the company before 10 am every Monday.

在本公开实施例中,根据企业运行规定预设了多种场景下的预设行为,通过提取各预设行为对应的预设行为信息的行为要素以及各行为要素之间的关联关系,构建特征库。In the disclosed embodiment, preset behaviors in various scenarios are preset according to enterprise operation regulations, and a feature library is constructed by extracting the behavior elements of preset behavior information corresponding to each preset behavior and the correlation between the behavior elements.

举例说明,预设行为为:部门1内的所有员工每周五开周会,则提取的行为要素包括为:每周五、周会地点、部门1内的所有员工、开周会。并为该预设行为生成一个序号,将各行为要素作为该序号对应的数据,生成各行为要素的关联关系,组成一条记录,并转换为自然语言类型的数据进行存储。由各预设行为对应的记录组成特征库。For example, if the preset behavior is: all employees in department 1 hold a weekly meeting every Friday, the extracted behavior elements include: every Friday, weekly meeting location, all employees in department 1, and weekly meeting. A serial number is generated for the preset behavior, and each behavior element is used as the data corresponding to the serial number. The association relationship of each behavior element is generated to form a record, which is converted into natural language type data for storage. The records corresponding to each preset behavior form a feature library.

通过基于预设行为信息构建特征库,能够将企业的规律性场景进行统计和监测,为目标用户生成用户画像提供数据基础,以便对目标用户进行行为信息的归纳统筹。By building a feature library based on preset behavioral information, the company's regular scenarios can be counted and monitored, providing a data basis for generating user portraits for target users, so as to summarize and coordinate the behavioral information of target users.

步骤203,通过大模型将历史行为信息在特征库中进行匹配,得到历史行为信息对应的行为要素和关联关系;将历史行为信息对应的行为要素和关联关系作为目标用户的用户画像。Step 203, matching the historical behavior information in the feature library through the big model to obtain the behavior elements and associations corresponding to the historical behavior information; the behavior elements and associations corresponding to the historical behavior information are used as the user profile of the target user.

在本公开实施例中,目标用户的历史行为信息中包括了历史工作行为对应的时间、地点、对象、事件等信息,通过大模型将历史行为信息在特征库中进行查询匹配,通过匹配结果判断历史工作行为是否属于预设行为,在历史工作行为属于预设行为的情况下,确定历史行为信息对应的行为要素和关联关系,即确定历史行为信息在特征库中对应的记录。In the disclosed embodiment, the historical behavior information of the target user includes the time, place, object, event and other information corresponding to the historical work behavior. The historical behavior information is queried and matched in the feature library through the big model, and the matching result is used to determine whether the historical work behavior belongs to the preset behavior. When the historical work behavior belongs to the preset behavior, the behavior elements and associations corresponding to the historical behavior information are determined, that is, the records corresponding to the historical behavior information in the feature library are determined.

可选的,将目标用户的历史行为信息对应的行为要素和关联关系作为目标用户的用户画像。Optionally, the behavior elements and associations corresponding to the historical behavior information of the target user are used as the user profile of the target user.

举例说明,员工A作为目标用户,所在部门为部门1,历史行为信息中包括多个周五开周会,在特征库中匹配到对应的行为要素为每周五、周会地点、部门1内的所有员工、开周会,并将该条记录作为一个序号对应的数据写入员工A的用户画像中。For example, employee A is the target user and belongs to Department 1. His historical behavior information includes weekly meetings on multiple Fridays. The corresponding behavioral elements matched in the feature library are every Friday, weekly meeting location, all employees in Department 1, and weekly meetings. This record is written into the user portrait of employee A as data corresponding to a serial number.

可选的,各历史行为信息进行匹配后得到的行为要素和关联关系依次写入目标用户的用户画像中,最终得到目标用户的用户画像。Optionally, the behavior elements and associations obtained after matching the historical behavior information are sequentially written into the user portrait of the target user, and finally the user portrait of the target user is obtained.

需要说明的是,本公开实施例中可以通过Embedding(嵌入)进行匹配,也可以为其他能够实现文本匹配的方法,此处不做具体限定。It should be noted that in the embodiments of the present disclosure, matching can be performed through Embedding, or other methods that can achieve text matching, which are not specifically limited here.

通过特征库匹配生成目标用户的用户画像,包括了目标用户的行为习惯、工作内容偏好以及注意事项等信息,能够从多个维度抽象出目标用户的代表性信息,对目标用户进行全面的了解,基于历史工作内容对目标用户进行精准定位。The user portrait of the target user is generated through feature library matching, including information such as the target user's behavioral habits, work content preferences, and precautions. It can abstract the representative information of the target user from multiple dimensions, gain a comprehensive understanding of the target user, and accurately locate the target user based on historical work content.

可选的,目标用户的用户画像还可以包括对目标用户生成的账号标识,例如工程师、技术大拿等称呼,作为与目标用户进行交互时的称谓语。Optionally, the user portrait of the target user may also include an account identifier generated for the target user, such as a title such as engineer or technical expert, which is used as a title when interacting with the target user.

在本公开实施例中,生成的用户画像存储在TimelyProfile内,生成的称呼存储在UserInputProfile内,其中,TimelyProfile和UserInputProfile是同一存储数据库内不同的存储字段。In the disclosed embodiment, the generated user portrait is stored in TimelyProfile, and the generated title is stored in UserInputProfile, wherein TimelyProfile and UserInputProfile are different storage fields in the same storage database.

其中,用户画像以自然语言形式和轻量级数据交换JSON格式进行存储。Among them, user portraits are stored in natural language form and lightweight data exchange JSON format.

通过历史行为信息对目标用户进行多维度的信息抽取,能够抽象出目标用户的代表性信息,生成的用户画像能够精准描述目标用户历史工作信息,对目标用户进行全面的了解,基于历史工作内容对目标用户进行精准定位。By extracting multi-dimensional information of the target user through historical behavior information, we can abstract the representative information of the target user. The generated user portrait can accurately describe the historical work information of the target user, gain a comprehensive understanding of the target user, and accurately locate the target user based on the historical work content.

步骤204,基于用户画像和目标用户的实时行为信息,采用大模型确定待执行的目标任务。Step 204, based on the user portrait and the real-time behavior information of the target user, a large model is used to determine the target task to be executed.

步骤205,推荐目标用户所登录客户端执行目标任务。Step 205: recommend the client logged in by the target user to perform the target task.

上述步骤204和步骤205的描述说明可以具体参见上述实施例中的步骤103和步骤104,在此不再赘述。For the description of the above step 204 and step 205, please refer to step 103 and step 104 in the above embodiment, which will not be repeated here.

本公开提出的基于大模型的推荐方法,通过获取目标用户的历史行为信息;获取基于预设行为信息所构建的特征库,特征库用于存储预设行为信息的行为要素以及各行为要素之间的关联关系;通过大模型将历史行为信息在特征库中进行匹配,得到历史行为信息对应的行为要素和关联关系;将历史行为信息对应的行为要素和关联关系作为目标用户的用户画像;基于用户画像和目标用户的实时行为信息,采用大模型确定待执行的目标任务;推荐目标用户所登录客户端执行目标任务。通过历史行为信息对目标用户进行多维度的信息抽取,生成能够精准描述目标用户历史工作信息的用户画像,再结合目标用户的实时行为信息,能够对目标用户的行为信息进行实时性的调整,以此作为目标任务确定的依据,能够提高目标任务推荐的相关性和准确性,提高目标用户针对办公工具的操作体验。The recommendation method based on a big model proposed in the present disclosure obtains the historical behavior information of the target user; obtains a feature library constructed based on the preset behavior information, the feature library is used to store the behavior elements of the preset behavior information and the associations between the behavior elements; matches the historical behavior information in the feature library through the big model to obtain the behavior elements and associations corresponding to the historical behavior information; uses the behavior elements and associations corresponding to the historical behavior information as the user portrait of the target user; based on the user portrait and the real-time behavior information of the target user, uses the big model to determine the target task to be performed; and recommends the client logged in by the target user to perform the target task. Through the historical behavior information, multi-dimensional information extraction of the target user is performed to generate a user portrait that can accurately describe the historical work information of the target user. Combined with the real-time behavior information of the target user, the behavior information of the target user can be adjusted in real time. This is used as the basis for determining the target task, which can improve the relevance and accuracy of the target task recommendation and improve the target user's operating experience for office tools.

本公开还提出另一种基于大模型的推荐方法,图3为本公开实施例提供的另一种基于大模型的推荐方法的流程示意图。如图3所示,该基于大模型的推荐方法包括但不限于以下步骤:The present disclosure also proposes another recommendation method based on a large model. FIG3 is a flow chart of another recommendation method based on a large model provided by an embodiment of the present disclosure. As shown in FIG3, the recommendation method based on a large model includes but is not limited to the following steps:

步骤301,获取目标用户的历史行为信息。Step 301, obtaining historical behavior information of the target user.

步骤302,根据历史行为信息,采用大模型确定目标用户的用户画像。Step 302: Based on the historical behavior information, a large model is used to determine the user profile of the target user.

上述步骤301和步骤302的描述说明可以具体参见上述实施例中的步骤101和步骤102,在此不再赘述。For the description of the above step 301 and step 302, please refer to step 101 and step 102 in the above embodiment, which will not be repeated here.

步骤303,基于用户画像和实时行为信息,生成第一提示词;基于第一提示词,采用大模型调用用户画像更新工具,对用户画像进行更新。Step 303: Generate a first prompt word based on the user portrait and real-time behavior information; based on the first prompt word, use the big model to call the user portrait update tool to update the user portrait.

可选的,在大模型监控到目标用户出现最新的实时行为之后,基于用户画像和实时行为信息,生成第一提示词,第一提示词用于指示大模型发起思考,判断实时行为是否会对用户画像产生改变,在判断实时行为会对用户发生改变的情况下,调用用户画像更新工具,对用户画像进行更新。Optionally, after the big model monitors the latest real-time behavior of the target user, a first prompt word is generated based on the user portrait and real-time behavior information. The first prompt word is used to instruct the big model to initiate thinking to determine whether the real-time behavior will cause changes to the user portrait. When it is determined that the real-time behavior will cause changes to the user, the user portrait update tool is called to update the user portrait.

其中,第一提示词至少包括角色信息、指令、可使用的工具信息、所有工具使用限制条件、历史行为信息、大模型输出结果的输出格式以及当前任务。The first prompt word includes at least role information, instructions, information about available tools, restrictions on the use of all tools, historical behavior information, output format of the large model output results, and the current task.

作为一个示例,目标用户出现最新的实时行为之后,生成的第一提示词为:As an example, after the target user has the latest real-time behavior, the first prompt word generated is:

角色信息:Character Information:

你的名字是:用户画像更新助手Your name is: User Profile Update Assistant

你的任务描述是:根据用户的行为,以及用户目前的用户画像,判断是否需要更新该用户的用户画像。Your task description is: Based on the user's behavior and the user's current user profile, determine whether the user's user profile needs to be updated.

你的指令是:Your instruction is:

你有一下几点需要进行思考:You have a few things to think about:

1、这次行为是否显示出用户新的兴趣或偏好?1. Does this behavior reveal new interests or preferences?

2、这次行为是否显示出用户行为模式的变化?2. Does this behavior show a change in user behavior patterns?

3、这次行为是否需要更新画像中的个人属性?3. Does this behavior require updating the personal attributes in the portrait?

如果判断需要进行更新,则使用用户画像更新工具进行画像更新。If it is determined that an update is necessary, use the user portrait update tool to update the portrait.

可使用的工具信息:Information about available tools:

你只可以使用的工具:The only tools you can use are:

[用户画像更新工具]:基于用户目前的用户画像和用户当前的行为,更新用户的用户画像信息。[User portrait update tool]: Update the user's user portrait information based on the user's current user portrait and current behavior.

所有工具使用限制条件:All tool usage restrictions:

1、请在满足用户要求下,尽量减少工具调用的次数。1. Please try to reduce the number of tool calls while meeting user requirements.

2、只能选择候选工具,只能使用提供给你的信息!2. Only select candidate tools and only use the information provided to you!

输出格式要求:Output format requirements:

1、必须使用工具时,按照下面格式输出:1. When the tool must be used, output in the following format:

Thought:[选择该工具的理由,不超过30个字]Thought: [Reason for choosing this tool, no more than 30 words]

Action:[工具名字。不得捏造]Action: [Tool name. Do not make it up]

Action Input:[工具参数]Action Input:[Tool parameters]

Observation:[工具的执行结果]Observation:[Tool execution results]

2、任务完成或者无须调用任何工具时,按照下面格式输出:2. When the task is completed or no tool needs to be called, the output is in the following format:

Thought:[输出"任务已完成"]Thought:[output "task completed"]

Final Answer:[给用户的回答,请用markdown格式输出。必须遵循事实,给用户提供完整的解决方案和建议。]Final Answer: [Please output the answer to the user in markdown format. It must follow the facts and provide users with complete solutions and suggestions.]

开始!start!

历史行为信息:[多轮历史行为信息按照时间从新到老排序,作为参考。]Historical behavior information: [Multiple rounds of historical behavior information are sorted from new to old for reference.]

[history][history]

当前任务:Current tasks:

用户信息:[name]User information: [name]

当前时间:[time]Current time: [time]

实时行为信息:[user_input]Real-time behavior information: [user_input]

更新用户画像:[user_profile]Update user profile: [user_profile]

Thought:Thought:

在该示例中,角色信息用于指示大模型进行角色信息确认,指令用于指示大模型进行指令执行,可使用的工具信息用于指示大模型进行工具调用的选取,所有工具使用限制条件用于限制大模型进行工具调用的条件,历史行为信息作为大模型输出结果的参考条件,当前任务包括用户画像和实时行为信息,大模型输出结果的输出格式用于规定不同判断结果对应的输出格式。In this example, role information is used to instruct the big model to confirm role information, instructions are used to instruct the big model to execute instructions, available tool information is used to instruct the big model to select tool calls, all tool usage restrictions are used to restrict the conditions for the big model to call tools, historical behavior information is used as a reference condition for the output results of the big model, the current task includes user portraits and real-time behavior information, and the output format of the big model output results is used to specify the output format corresponding to different judgment results.

在本公开实施例中,通过将第一提示词输入到大模型中,以使大模型判断实时行为是否会对用户画像产生改变,并在判断实时行为会对用户发生改变的情况下,调用用户画像更新工具。In the disclosed embodiment, the first prompt word is input into the big model so that the big model determines whether the real-time behavior will change the user portrait, and calls the user portrait update tool when it is determined that the real-time behavior will change the user.

作为一个示例,调用用户画像更新工具可以通过提示词实现:As an example, calling the user profile update tool can be achieved through the prompt word:

用户画像更新工具的提示词为:The prompt words of the user portrait update tool are:

你的任务是根据用户的行为、用户当前的画像,以及之前的思考信息,更新用户画像。Your task is to update the user profile based on the user's behavior, the user's current profile, and previous thinking information.

用户行为:[user_input]User Action: [user_input]

用户当前画像:[user_profile]Current user profile: [user_profile]

思考信息:[thought]Thought information: [thought]

注意:Notice:

1、该任务之前已经判断过是否需要进行画像更新,所以请你根据以上信息进行画像更新,不要拒绝或做其他操作。1. This task has already determined whether a portrait update is required, so please update the portrait based on the above information and do not refuse or perform other operations.

2、用户画像内不能包含黄赌毒、暴力、政治等敏感信息。2. User portraits cannot contain sensitive information such as pornography, gambling, drugs, violence, and politics.

3、用户画像应该保持客观,不要有主观的对用户的评价信息。3. User portraits should remain objective and should not contain subjective evaluation information about users.

4、不要总结没有价值或没有意义的画像信息。4. Do not summarize profile information that is worthless or meaningless.

根据以上信息和要求,请直接输出更新后的用户画像。Based on the above information and requirements, please directly output the updated user portrait.

更新后的用户画像:Updated user profile:

其中,注意的内容可以理解为大模型输出结果的参考条件。Among them, the content of attention can be understood as the reference conditions of the output results of the large model.

在本公开实施例中,用户画像更新工具基于用户画像和大模型的思考结果对用户画像进行更新,对目标用户的行为信息进行实时性的调整,得到对目标用户最及时的精确描述。In the disclosed embodiment, the user portrait update tool updates the user portrait based on the thinking results of the user portrait and the big model, and makes real-time adjustments to the behavior information of the target user to obtain the most timely and accurate description of the target user.

作为一个示例,进行用户画像更新可以通过如下步骤实现:As an example, updating a user profile can be achieved through the following steps:

在特征库中存在与实时行为信息匹配的行为要素和关联关系,且用户画像中不存在与实时行为信息匹配的行为要素和关联关系的情况下,在用户画像中写入实时行为信息对应的行为要素和关联关系。When there are behavioral elements and associations matching the real-time behavioral information in the feature library, and there are no behavioral elements and associations matching the real-time behavioral information in the user portrait, the behavioral elements and associations corresponding to the real-time behavioral information are written into the user portrait.

通过写入用户画像中不存在的实时行为信息的行为要素和关联关系,对用户画像进行实时更新,能够对目标用户的用户画像进行个性化调整,及时把控目标用户的相关工作的变动,获取动态的用户画像,以便为目标任务的确定提供准确的数据支持。By writing behavioral elements and associations of real-time behavioral information that do not exist in the user portrait, the user portrait can be updated in real time. This allows personalized adjustments to the user portrait of the target user, timely control of changes in the target user's related work, and acquisition of dynamic user portraits to provide accurate data support for the determination of target tasks.

进一步的,大模型还具备反思能力,通过提示词指示大模型对自己的输出结果进行反思。Furthermore, the big model also has the ability to reflect, and prompt words can be used to instruct the big model to reflect on its own output results.

作为一个示例,反思的提示词为:As an example, the reflection prompts are:

你是一个反思助手,你当前的任务是根据用户当前画像和用户更新后的画像,以及用户行为,判断本次更新行为是否成功有效。You are a reflection assistant. Your current task is to determine whether the update behavior is successful and effective based on the user's current profile, the user's updated profile, and the user's behavior.

用户行为:[user_input]User Action: [user_input]

用户当前画像:[user_profile]Current user profile: [user_profile]

用户更新后的画像:[updated_user_profile]User updated profile: [updated_user_profile]

请输出你的判断和思考,按照先思考后判断的格式输出。判断请输出更新成功或者更新失败。Please output your judgment and thinking in the format of thinking first and then judging. Please output whether the update is successful or failed.

思考:think:

判断:judge:

通过反思提示词,使大模型对输出结果进行思考和判断,确定输出结果的有效性。Through reflection prompts, the large model can think and judge the output results to determine the validity of the output results.

作为另一个示例,在大模型调用的工具报错的情况下,将运行历史和运行错误信息返回至大模型,以使大模型根据错误信息进行反思纠错。As another example, when a tool called by the large model reports an error, the operation history and operation error information are returned to the large model so that the large model can reflect and correct the error based on the error information.

步骤304,基于更新后的用户画像,通过大模型在推荐候选集中筛选目标任务,其中,推荐候选集存储有目标用户所登录客户端可执行的多种候选任务。Step 304 , based on the updated user profile, the target task is screened in the recommendation candidate set through the large model, wherein the recommendation candidate set stores a variety of candidate tasks executable by the client logged in by the target user.

可选的,基于更新后的用户画像,生成第二提示词;基于第二提示词,采用大模型调用目标任务筛选工具和排序工具,确定待执行的目标任务。Optionally, a second prompt word is generated based on the updated user portrait; based on the second prompt word, the large model is used to call the target task screening tool and the sorting tool to determine the target task to be executed.

在确定第二提示词之后,大模型可以通过提示词进行工具调用,确定待执行的目标任务。After determining the second prompt word, the large model can call the tool through the prompt word to determine the target task to be executed.

在本公开实施例中,采用大模型调用目标任务筛选工具基于第二提示词提取更新后的用户画像的语义信息,并映射为第一向量;提取推荐候选集中的任一候选任务的语义信息并映射为第二向量;采用大模型调用排序工具对第一向量和第二向量之间的相似度进行排序;按照相似度的排序选取目标数量的目标任务。In the disclosed embodiment, a large model is used to call a target task screening tool to extract semantic information of the updated user portrait based on the second prompt word and map it to a first vector; the semantic information of any candidate task in the recommended candidate set is extracted and mapped to a second vector; the large model is used to call a sorting tool to sort the similarity between the first vector and the second vector; and a target number of target tasks are selected according to the similarity sorting.

可选的,第二提示词至少包括角色信息、指令、可使用的工具信息、所有工具使用限制条件、输出格式要求以及当前任务。Optionally, the second prompt word includes at least role information, instructions, information about available tools, restrictions on the use of all tools, output format requirements, and the current task.

作为一个示例,第二提示词可以为:As an example, the second prompt word may be:

角色信息:Character Information:

你的名字是:主动推荐助手Your name is: Active Recommendation Assistant

你的任务描述是:根据用户的行为,合理使用几个工具,最终给用户推荐他最可能感兴趣或相关的推荐结果。Your task description is: Based on the user's behavior, use several tools reasonably to ultimately recommend the results that the user is most likely to be interested in or related to.

你的指令是:Your instruction is:

根据用户当前的行为,判断应该依次使用哪些工具,最终给用户推荐结果。也有可能不需要进行推荐,你可以直接结束任务。Based on the user's current behavior, determine which tools should be used in sequence and finally recommend results to the user. It is also possible that no recommendation is needed and you can end the task directly.

请你严格按照要求返回信息。Please return the information strictly according to the requirements.

可使用的工具信息:Information about available tools:

你只可以使用的工具:The only tools you can use are:

[用户画像筛选工具]:获取目标用户更新后的用户画像,用户画像筛选工具还会从用户画像信息中筛选出与本次行为更相关的画像信息。[User portrait filtering tool]: Get the updated user portrait of the target user. The user portrait filtering tool will also filter out the portrait information that is more relevant to the current behavior from the user portrait information.

[目标任务筛选工具]:根据已知的信息,从推荐候选集中,筛选出本次应该给用户推荐的内容。[Target Task Screening Tool]: Based on known information, filter out the content that should be recommended to the user from the recommendation candidate set.

[排序工具]:将候选的推荐结果,根据用户画像信息进行排序。[Sorting tool]: Sort the candidate recommendation results according to user portrait information.

所有工具使用限制条件:All tool usage restrictions:

1、请在满足用户要求下,尽量减少工具调用的次数。1. Please try to reduce the number of tool calls while meeting user requirements.

2、只能选择候选工具,只能使用提供给你的信息!2. Only select candidate tools and only use the information provided to you!

输出格式要求:Output format requirements:

1、必须使用工具时,按照下面格式输出:1. When the tool must be used, output in the following format:

Thought:[选择该工具的理由,不超过30个字]Thought: [Reason for choosing this tool, no more than 30 words]

Action:[工具名字。不得捏造]Action: [Tool name. Do not make it up]

Action Input:[工具参数]Action Input:[Tool parameters]

Observation:[工具的执行结果]Observation:[Tool execution results]

2、任务完成或者无须调用任何工具时,按照下面格式输出:2. When the task is completed or no tool needs to be called, the output is in the following format:

Thought:[输出"任务已完成"]Thought:[output "task completed"]

Final Answer:[给用户的回答,请用markdown格式输出。必须遵循事实,给用户提供完整的解决方案和建议。]Final Answer: [Please output the answer to the user in markdown format. It must follow the facts and provide users with complete solutions and suggestions.]

开始!start!

历史用户行为信息:[多轮历史行为按照时间从新到老排序,作为参考。]Historical user behavior information: [Multiple rounds of historical behaviors are sorted from new to old for reference.]

[history][history]

当前任务:Current tasks:

用户信息:[name]User information: [name]

当前时间:[time]Current time: [time]

实时行为信息:[user_input]Real-time behavior information: [user_input]

用户当前画像:[user_profile]Current user profile: [user_profile]

Thought:Thought:

在该示例中,角色信息用于指示大模型进行角色信息确认,指令用于指示大模型进行指令执行,可使用的工具信息用于指示大模型进行工具调用的选取,所有工具使用限制条件用于限制大模型进行工具调用的条件,历史行为信息作为大模型输出结果的参考条件,当前任务包括更新后的用户画像(用户当前画像)和实时行为信息,大模型输出结果的输出格式用于规定不同判断结果对应的输出格式。In this example, role information is used to instruct the big model to confirm role information, instructions are used to instruct the big model to execute instructions, available tool information is used to instruct the big model to select tool calls, all tool usage restrictions are used to restrict the conditions for the big model to call tools, historical behavior information is used as a reference condition for the output results of the big model, the current task includes the updated user portrait (user's current portrait) and real-time behavior information, and the output format of the big model's output results is used to specify the output format corresponding to different judgment results.

其中,目标任务筛选工具,用于:提取更新后的用户画像的语义信息并映射为第一向量;提取推荐候选集中的任一候选任务的语义信息并映射为第二向量;基于第一向量和任一第二向量之间的相似度,确定目标任务。Among them, the target task screening tool is used to: extract the semantic information of the updated user portrait and map it into a first vector; extract the semantic information of any candidate task in the recommended candidate set and map it into a second vector; determine the target task based on the similarity between the first vector and any second vector.

作为一个示例,调用目标任务筛选工具的提示词为:As an example, the prompt word for calling the target task screening tool is:

你是一个推荐内容筛选工具,请根据用户画像和用户行为,筛选出更应该给用户推荐的内容。You are a recommendation content screening tool. Please filter out the content that should be recommended to users based on user portraits and user behaviors.

用户信息:[name]User information: [name]

当前时间:[time]Current time: [time]

用户当前行为:[user_input]User's current action: [user_input]

用户当前画像:[user_profile]Current user profile: [user_profile]

推荐候选集:[data]Recommended candidate set: [data]

根据以上信息,从推荐候选集中筛选出[n]条结果,作为更应该给用户推荐的内容,请按照原格式进行输出,并且先输出你的思考。Based on the above information, select [n] results from the recommendation candidate set. Please output them in the original format as the content that should be recommended to users, and output your thoughts first.

思考:think:

筛选后的推荐集:Filtered recommendations:

其中,推荐候选集中包括目标用户所登录客户端可执行的多种推荐任务。The recommendation candidate set includes a variety of recommended tasks that can be executed by the client logged in by the target user.

通过调用目标任务筛选工具,基于更新后的用户画像的语义信息与任一候选任务的语义信息之间的相似度,确定目标任务,能够通过推荐候选集与更新后的用户画像之间的相关性筛选出最适合推荐给目标用户的目标任务,及时进行任务推荐,减少目标用户的查找以及等待时间,提升目标用户针对办公工具的操作体验。By calling the target task screening tool, the target task can be determined based on the similarity between the semantic information of the updated user portrait and the semantic information of any candidate task. The most suitable target task for the target user can be screened out through the correlation between the recommended candidate set and the updated user portrait, and task recommendations can be made in a timely manner, reducing the target user's search and waiting time, and improving the target user's operating experience for office tools.

排序工具,用于:对相似度进行排序;按照相似度的排序选取目标数量的目标任务。The sorting tool is used to: sort the similarities; select the target number of target tasks according to the similarity sorting.

作为一个示例,按照从大到小的顺序将相似度进行排序,选取TOP-N的相似度对应的候选任务作为目标任务,并按照相似度的排列顺序对目标任务进行推荐排列。As an example, the similarities are sorted in descending order, candidate tasks corresponding to the TOP-N similarities are selected as target tasks, and the target tasks are recommended and arranged in the order of similarity.

作为另一个示例,预设相似度阈值,选取大于相似度阈值的相似度对应的候选任务作为目标任务,在目标任务为多个的情况下,调用排序工具对目标任务对应的相似度按照数值大小进行排序,将相似度更高的目标任务作为更相关的目标任务优先推荐,能够提高目标任务推荐的相关性和准确性,或者帮助目标用户合理安排工作内容,降低了目标用户进行任务规划的操作复杂度。As another example, a similarity threshold is preset, and candidate tasks corresponding to similarities greater than the similarity threshold are selected as target tasks. When there are multiple target tasks, a sorting tool is called to sort the similarities corresponding to the target tasks according to numerical values, and target tasks with higher similarities are recommended as more relevant target tasks in a priority manner. This can improve the relevance and accuracy of target task recommendations, or help target users arrange their work content reasonably, thereby reducing the operational complexity of task planning for target users.

通过实时行为信息对用户画像进行实时更新,能够对目标用户的用户画像进行个性化调整,获取动态、细化且准确的用户画像,以此作为目标任务确定的数据支持,能够提高目标任务推荐的相关性和准确性。By updating the user portrait in real time through real-time behavior information, the user portrait of the target user can be personalized to obtain a dynamic, detailed and accurate user portrait, which can be used as data support for determining the target task and improve the relevance and accuracy of the target task recommendation.

通过调用多个工具实现目标任务的筛选,能够根据不同的场景灵活选取相应的工具进行任务处理,在复杂场景下快速执行相关任务,提高执行能力,在推荐候选集中选取最适合目标用户的一个或多个目标任务,能够为目标用户智能化提供相关的目标任务。By calling multiple tools to screen target tasks, it is possible to flexibly select corresponding tools for task processing according to different scenarios, quickly execute related tasks in complex scenarios, improve execution capabilities, select one or more target tasks that are most suitable for the target user from the recommended candidate set, and intelligently provide relevant target tasks for the target user.

进一步的,在生成第二提示词之前,还可以对更新后的用户画像进行初步筛选。Furthermore, before generating the second prompt word, the updated user portrait may be preliminarily screened.

作为一个示例,用户画像筛选工具的提示词为:As an example, the prompt words for the user portrait screening tool are:

你是一个用户画像筛选工具,根据用户行为,筛选出此次比较相关的用户画像。You are a user portrait screening tool that screens out the more relevant user portraits based on user behavior.

用户信息:[name]User information: [name]

当前时间:[time]Current time: [time]

实时行为信息:[user_input]Real-time behavior information: [user_input]

用户画像:[user_profile]User profile: [user_profile]

要求:Require:

筛选出与行为比较相关或可能相关的画像,过滤掉完全无关的画像。Filter out portraits that are relatively relevant or potentially relevant to the behavior, and filter out completely irrelevant portraits.

在此基础上保障画像信息的丰富性和完整性。On this basis, the richness and completeness of the portrait information is guaranteed.

请根据要求,你输出筛选后的画像:Please output the filtered image as required:

筛选后的用户画像:User portrait after screening:

通过对更新后的用户画像进行筛选,选取更加相关的画像内容,进一步精确目标用户的工作情况。By screening the updated user portraits and selecting more relevant portrait content, we can further refine the work status of the target users.

进一步的,在获取了用户画像之后,还可以基于历史行为数据所对应的用户画像通过大模型在推荐候选集中选取初始任务作为目标任务,在初始任务为多个的情况下,通过Embedding进行排序。Furthermore, after obtaining the user portrait, the initial task can be selected as the target task from the recommended candidate set through the large model based on the user portrait corresponding to the historical behavior data. If there are multiple initial tasks, they can be sorted through Embedding.

通过选取初始任务,在注重速度、稳定性和成本的前提下为目标用户生成冷启动的推荐内容,保障目标用户的初始体验。By selecting the initial tasks, cold start recommendation content is generated for target users while focusing on speed, stability and cost, thus ensuring the initial experience of target users.

步骤305,推荐目标用户所登录客户端执行目标任务。Step 305: recommend the client logged in by the target user to perform the target task.

上述步骤305的描述说明可以具体参见上述实施例中的步骤104,在此不再赘述。For the description of the above step 305, please refer to step 104 in the above embodiment, which will not be repeated here.

本公开提出的基于大模型的推荐方法,通过获取目标用户的历史行为信息;根据历史行为信息,采用大模型确定目标用户的用户画像;基于用户画像和实时行为信息,生成第一提示词;基于第一提示词,采用大模型调用用户画像更新工具,对用户画像进行更新;基于更新后的用户画像,通过大模型在推荐候选集中筛选目标任务;推荐目标用户所登录客户端执行目标任务。通过对用户画像进行实时更新,能够对目标用户的用户画像进行个性化调整,及时把控目标用户的相关工作的变动,获取动态、细化且准确的用户画像,作为目标任务确定的依据,能够提高目标任务推荐的相关性和准确性,提高目标用户针对办公工具的操作体验。The recommendation method based on the big model proposed in the present disclosure obtains the historical behavior information of the target user; determines the user portrait of the target user using the big model according to the historical behavior information; generates the first prompt word based on the user portrait and real-time behavior information; calls the user portrait update tool based on the first prompt word using the big model to update the user portrait; screens the target task from the recommendation candidate set based on the updated user portrait through the big model; and recommends the client logged in by the target user to perform the target task. By updating the user portrait in real time, the user portrait of the target user can be personalized, the changes in the relevant work of the target user can be controlled in time, and a dynamic, detailed and accurate user portrait can be obtained as the basis for determining the target task, which can improve the relevance and accuracy of the target task recommendation and improve the target user's operating experience for office tools.

本公开还提出另一种基于大模型的推荐方法,图4为本公开实施例提供的另一种基于大模型的推荐方法的流程示意图。如图4所示,该基于大模型的推荐方法包括但不限于以下步骤:The present disclosure also proposes another recommendation method based on a large model. FIG4 is a flow chart of another recommendation method based on a large model provided by an embodiment of the present disclosure. As shown in FIG4, the recommendation method based on a large model includes but is not limited to the following steps:

步骤401,获取目标用户的历史行为信息。Step 401, obtaining historical behavior information of the target user.

步骤402,获取基于预设行为信息所构建的特征库,特征库用于存储预设行为信息的行为要素以及各行为要素之间的关联关系。Step 402: Acquire a feature library constructed based on the preset behavior information, where the feature library is used to store the behavior elements of the preset behavior information and the associations between the behavior elements.

步骤403,通过大模型将历史行为信息在特征库中进行匹配,得到历史行为信息对应的行为要素和关联关系;将历史行为信息对应的行为要素和关联关系作为目标用户的用户画像。Step 403, the historical behavior information is matched in the feature library through the big model to obtain the behavior elements and associations corresponding to the historical behavior information; the behavior elements and associations corresponding to the historical behavior information are used as the user profile of the target user.

步骤404,基于用户画像和实时行为信息,生成第一提示词;基于第一提示词,采用大模型调用用户画像更新工具,对用户画像进行更新。Step 404, based on the user portrait and real-time behavior information, a first prompt word is generated; based on the first prompt word, a user portrait update tool is called using a large model to update the user portrait.

步骤405,基于更新后的用户画像,通过大模型在推荐候选集中筛选目标任务,其中,推荐候选集存储有目标用户所登录客户端可执行的多种候选任务。Step 405 , based on the updated user portrait, the target task is screened in the recommendation candidate set through the large model, wherein the recommendation candidate set stores a variety of candidate tasks executable by the client logged in by the target user.

步骤406,推荐目标用户所登录客户端执行目标任务。Step 406: recommend the client logged in by the target user to perform the target task.

上述步骤401至步骤406的描述说明可以具体参见上述实施例中的相关说明,在此不再赘述。For the description of the above steps 401 to 406, please refer to the relevant description in the above embodiment, which will not be repeated here.

需要说明的是,在企业办公场景中,目标用户处理的工作任务包括但不限于文件管理、会议安排、项目进展跟踪、知识获取和交流协作。It should be noted that in an enterprise office scenario, the work tasks handled by the target users include but are not limited to file management, meeting scheduling, project progress tracking, knowledge acquisition, and communication and collaboration.

通过本公开提出的基于大模型的推荐方法能够根据目标用户的工作内容和习惯,主动推荐相关的文件和资料,简化查找过程;基于目标用户的日程和工作重点,智能提醒合适的会议时间和相关参与人员,优化会议安排;及时提醒目标用户关注重要的项目进展和里程碑,确保项目按时推进;根据目标用户的专业领域和当前任务,主动推送相关的研究成果、行业动态和培训资料,提升目标用户的知识水平;分析目标用户的沟通记录和合作关系,推荐潜在的合作伙伴和交流机会,促进团队合作。使企业办公更加智能化,促进企业的高效运行。The recommendation method based on the big model proposed in this disclosure can actively recommend relevant files and materials according to the work content and habits of the target user, simplify the search process; intelligently remind the appropriate meeting time and relevant participants based on the target user's schedule and work focus to optimize the meeting arrangement; timely remind the target user to pay attention to important project progress and milestones to ensure that the project is advanced on time; actively push relevant research results, industry trends and training materials according to the target user's professional field and current tasks to improve the target user's knowledge level; analyze the target user's communication records and cooperative relationships, recommend potential partners and communication opportunities, and promote teamwork. Make corporate office more intelligent and promote the efficient operation of enterprises.

本公开提出的基于大模型的推荐方法,通过获取目标用户的历史行为信息;获取基于预设行为信息所构建的特征库,特征库用于存储预设行为信息的行为要素以及各行为要素之间的关联关系;通过大模型将历史行为信息在特征库中进行匹配,得到历史行为信息对应的行为要素和关联关系;将历史行为信息对应的行为要素和关联关系作为目标用户的用户画像;基于用户画像和实时行为信息,生成第一提示词;基于第一提示词,采用大模型调用用户画像更新工具,对用户画像进行更新;基于更新后的用户画像,通过大模型在推荐候选集中筛选目标任务,其中,推荐候选集存储有目标用户所登录客户端可执行的多种候选任务;推荐目标用户所登录客户端执行目标任务。通过历史行为信息对目标用户进行多维度的信息抽取,生成能够精准描述目标用户历史工作信息的用户画像,进一步对用户画像进行实时更新,能够对目标用户的用户画像进行个性化调整,及时把控目标用户的任务操作变动,获取动态的用户画像,以此作为目标任务确定的依据,能够提高目标任务推荐的相关性和准确性,提高目标用户针对办公工具的操作体验。The big model-based recommendation method proposed in the present disclosure obtains the historical behavior information of the target user; obtains a feature library constructed based on the preset behavior information, the feature library is used to store the behavior elements of the preset behavior information and the associations between the behavior elements; matches the historical behavior information in the feature library through the big model to obtain the behavior elements and associations corresponding to the historical behavior information; uses the behavior elements and associations corresponding to the historical behavior information as the user portrait of the target user; generates a first prompt word based on the user portrait and real-time behavior information; based on the first prompt word, uses the big model to call the user portrait update tool to update the user portrait; based on the updated user portrait, uses the big model to filter the target task in the recommendation candidate set, wherein the recommendation candidate set stores a variety of candidate tasks executable by the client logged in by the target user; and recommends the client logged in by the target user to execute the target task. Through multi-dimensional information extraction of target users based on historical behavior information, a user portrait is generated that can accurately describe the target user's historical work information. The user portrait is further updated in real time, and personalized adjustments can be made to the user portrait of the target user. The target user's task operation changes can be controlled in a timely manner, and dynamic user portraits can be obtained. This is used as the basis for determining the target task, which can improve the relevance and accuracy of the target task recommendation and enhance the target user's operating experience for office tools.

本公开的一个实施例还提出了一种基于大模型的推荐装置,由于本公开实施例提出的基于大模型的推荐装置与上述几种实施例提出的基于大模型的推荐方法相对应,因此上述的基于大模型的推荐方法的实施方式也适用于本公开实施例提出的基于大模型的推荐装置,在下述实施例中不再详细描述。An embodiment of the present disclosure further proposes a recommendation device based on a large model. Since the recommendation device based on a large model proposed in the embodiment of the present disclosure corresponds to the recommendation methods based on a large model proposed in the above-mentioned embodiments, the implementation methods of the above-mentioned recommendation methods based on a large model are also applicable to the recommendation device based on a large model proposed in the embodiment of the present disclosure, and will not be described in detail in the following embodiments.

图5为本公开实施例提供的一种基于大模型的推荐装置的结构示意图。如图5所示,基于大模型的推荐装置500包括:获取模块501、第一确定模块502、第二确定模块503和推荐模块504。Fig. 5 is a schematic diagram of a large model-based recommendation device according to an embodiment of the present disclosure. As shown in Fig. 5 , the large model-based recommendation device 500 includes: an acquisition module 501 , a first determination module 502 , a second determination module 503 and a recommendation module 504 .

获取模块501,用于获取目标用户的历史行为信息;Acquisition module 501, used to acquire historical behavior information of target users;

第一确定模块502,用于根据历史行为信息,采用大模型确定目标用户的用户画像;A first determination module 502 is used to determine a user profile of a target user using a large model based on historical behavior information;

第二确定模块503,用于基于用户画像和目标用户的实时行为信息,采用大模型确定待执行的目标任务;The second determination module 503 is used to determine the target task to be executed using a large model based on the user portrait and the real-time behavior information of the target user;

推荐模块504,用于推荐目标用户所登录客户端执行目标任务。The recommendation module 504 is used to recommend the client logged in by the target user to perform the target task.

本公开实施例中,第一确定模块,用于:In the embodiment of the present disclosure, the first determining module is used to:

获取基于预设行为信息所构建的特征库,特征库用于存储预设行为信息的行为要素以及各行为要素之间的关联关系;Acquire a feature library constructed based on the preset behavior information, the feature library being used to store the behavior elements of the preset behavior information and the association relationship between the behavior elements;

通过大模型将历史行为信息在特征库中进行匹配,得到历史行为信息对应的行为要素和关联关系;The historical behavior information is matched in the feature library through the big model to obtain the behavior elements and associations corresponding to the historical behavior information;

将历史行为信息对应的行为要素和关联关系作为目标用户的用户画像。The behavioral elements and associations corresponding to the historical behavioral information are used as the user profile of the target user.

本公开实施例中,第二确定模块,用于:In the embodiment of the present disclosure, the second determining module is used to:

基于用户画像和实时行为信息,生成第一提示词;Generate the first prompt word based on the user portrait and real-time behavior information;

基于第一提示词,采用大模型调用用户画像更新工具,对用户画像进行更新;Based on the first prompt word, the user portrait update tool is called by the large model to update the user portrait;

基于更新后的用户画像,通过大模型在推荐候选集中筛选目标任务,其中,推荐候选集存储有客户端可执行的多种候选任务。Based on the updated user profile, the target task is filtered out from the recommendation candidate set through the large model, where the recommendation candidate set stores a variety of candidate tasks that can be executed by the client.

在特征库中存在与实时行为信息匹配的行为要素和关联关系,且用户画像中不存在与实时行为信息匹配的行为要素和关联关系的情况下,在用户画像中写入实时行为信息对应的行为要素和关联关系。When there are behavioral elements and associations matching the real-time behavioral information in the feature library, and there are no behavioral elements and associations matching the real-time behavioral information in the user portrait, the behavioral elements and associations corresponding to the real-time behavioral information are written into the user portrait.

基于更新后的用户画像,生成第二提示词;Generate a second prompt word based on the updated user portrait;

基于第二提示词,采用大模型调用目标任务筛选工具和排序工具,确定待执行的目标任务。Based on the second prompt word, the large model is used to call the target task screening tool and the sorting tool to determine the target task to be executed.

采用大模型调用目标任务筛选工具基于第二提示词提取更新后的用户画像的语义信息,并映射为第一向量;The target task screening tool is called by the large model to extract the semantic information of the updated user portrait based on the second prompt word, and is mapped into the first vector;

提取推荐候选集中的任一候选任务的语义信息并映射为第二向量;Extracting semantic information of any candidate task in the recommendation candidate set and mapping it into a second vector;

采用大模型调用排序工具对第一向量和所述第二向量之间的相似度进行排序;Using the large model to call a sorting tool to sort the similarity between the first vector and the second vector;

按照相似度的排序选取目标数量的目标任务。Select the target tasks with the target number sorted by similarity.

本公开提出的基于大模型的推荐装置,通过获取目标用户的历史行为信息;根据历史行为信息,采用大模型确定目标用户的用户画像;基于用户画像和目标用户的实时行为信息,采用大模型确定待执行的目标任务;推荐目标用户所登录客户端执行目标任务。通过生成用户画像提取出目标用户的代表性信息,再结合目标用户的实时行为信息,历史信息和当前信息相结合,能够对目标用户的行为信息进行更加准确的描述,以此作为目标任务确定的依据,能够提高目标任务推荐的相关性和准确性,提高目标用户执行任务的快捷度,降低了目标用户进行任务规划的操作复杂度,个性化定制工作内容,提升目标用户针对办公工具的操作体验。The recommendation device based on a big model proposed in the present disclosure obtains the historical behavior information of the target user; determines the user portrait of the target user based on the historical behavior information; determines the target task to be executed based on the user portrait and the real-time behavior information of the target user using the big model; and recommends the client logged in by the target user to execute the target task. By generating a user portrait to extract representative information of the target user, and then combining the real-time behavior information of the target user, the historical information and the current information, the behavior information of the target user can be described more accurately, which can be used as the basis for determining the target task, and can improve the relevance and accuracy of the target task recommendation, improve the speed of the target user to execute the task, reduce the complexity of the target user's task planning operation, personalize the work content, and improve the target user's operation experience for office tools.

根据本公开的实施例,本公开还提供了一种电子设备、一种可读存储介质和一种计算机程序产品。According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium, and a computer program product.

图6示出了可以用来实施本公开的实施例的示例电子设备600的示意性框图。电子设备旨在表示各种形式的数字计算机,诸如,膝上型计算机、台式计算机、工作台、个人数字助理、服务器、刀片式服务器、大型计算机、和其它适合的计算机。电子设备还可以表示各种形式的移动装置,诸如,个人数字处理、蜂窝电话、智能电话、可穿戴设备和其它类似的计算装置。本文所示的部件、它们的连接和关系、以及它们的功能仅仅作为示例,并且不意在限制本文中描述的和/或者要求的本公开的实现。FIG6 shows a schematic block diagram of an example electronic device 600 that can be used to implement an embodiment of the present disclosure. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and/or required herein.

如图6所示,设备600包括计算单元601,其可以根据存储在ROM(Read-OnlyMemory,只读存储器)602中的计算机程序或者从存储单元608加载到RAM(Random AccessMemory,随机访问/存取存储器)603中的计算机程序,来执行各种适当的动作和处理。在RAM603中,还可存储设备600操作所需的各种程序和数据。计算单元601、ROM 602以及RAM 603通过总线604彼此相连。I/O(Input/Output,输入/输出)接口605也连接至总线604。As shown in FIG6 , the device 600 includes a computing unit 601, which can perform various appropriate actions and processes according to a computer program stored in a ROM (Read-Only Memory) 602 or a computer program loaded from a storage unit 608 into a RAM (Random Access Memory) 603. In the RAM 603, various programs and data required for the operation of the device 600 can also be stored. The computing unit 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An I/O (Input/Output) interface 605 is also connected to the bus 604.

设备600中的多个部件连接至I/O接口605,包括:输入单元606,例如键盘、鼠标等;输出单元607,例如各种类型的显示器、扬声器等;存储单元608,例如磁盘、光盘等;以及通信单元609,例如网卡、调制解调器、无线通信收发机等。通信单元609允许设备600通过诸如因特网的计算机网络和/或各种电信网络与其他设备交换信息/数据。A number of components in the device 600 are connected to the I/O interface 605, including: an input unit 606, such as a keyboard, a mouse, etc.; an output unit 607, such as various types of displays, speakers, etc.; a storage unit 608, such as a disk, an optical disk, etc.; and a communication unit 609, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 609 allows the device 600 to exchange information/data with other devices through a computer network such as the Internet and/or various telecommunication networks.

计算单元601可以是各种具有处理和计算能力的通用和/或专用处理组件。计算单元601的一些示例包括但不限于CPU(Central Processing Unit,中央处理单元)、GPU(Graphic Processing Units,图形处理单元)、各种专用的AI(Artificial Intelligence,人工智能)计算芯片、各种运行机器学习模型算法的计算单元、DSP(Digital SignalProcessor,数字信号处理器)、以及任何适当的处理器、控制器、微控制器等。计算单元601执行上文所描述的各个方法和处理,例如基于大模型的推荐方法。例如,在一些实施例中,基于大模型的推荐方法可被实现为计算机软件程序,其被有形地包含于机器可读介质,例如存储单元608。在一些实施例中,计算机程序的部分或者全部可以经由ROM 602和/或通信单元609而被载入和/或安装到设备600上。当计算机程序加载到RAM 603并由计算单元601执行时,可以执行上文描述的基于大模型的推荐方法的一个或多个步骤。备选地,在其他实施例中,计算单元601可以通过其他任何适当的方式(例如,借助于固件)而被配置为执行基于大模型的推荐方法。The computing unit 601 may be a variety of general and/or special processing components with processing and computing capabilities. Some examples of the computing unit 601 include, but are not limited to, a CPU (Central Processing Unit), a GPU (Graphic Processing Units), various dedicated AI (Artificial Intelligence) computing chips, various computing units running machine learning model algorithms, a DSP (Digital Signal Processor), and any appropriate processor, controller, microcontroller, etc. The computing unit 601 performs the various methods and processes described above, such as a recommendation method based on a large model. For example, in some embodiments, the recommendation method based on a large model may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 608. In some embodiments, part or all of the computer program may be loaded and/or installed on the device 600 via the ROM 602 and/or the communication unit 609. When the computer program is loaded into the RAM 603 and executed by the computing unit 601, one or more steps of the recommendation method based on the large model described above may be performed. Alternatively, in other embodiments, the computing unit 601 may be configured to execute the large model-based recommendation method in any other appropriate manner (eg, by means of firmware).

本文中以上描述的系统和技术的各种实施方式可以在数字电子电路系统、集成电路系统、FPGA(Field Programmable Gate Array,现场可编程门阵列)、ASIC(Application-Specific Integrated Circuit,专用集成电路)、ASSP(Application Specific StandardProduct,专用标准产品)、SOC(System On Chip,芯片上系统的系统)、CPLD(ComplexProgrammable Logic Device,复杂可编程逻辑设备)、计算机硬件、固件、软件、和/或它们的组合中实现。这些各种实施方式可以包括:实施在一个或者多个计算机程序中,该一个或者多个计算机程序可在包括至少一个可编程处理器的可编程系统上执行和/或解释,该可编程处理器可以是专用或者通用可编程处理器,可以从存储系统、至少一个输入装置、和至少一个输出装置接收数据和指令,并且将数据和指令传递至该存储系统、该至少一个输入装置、和该至少一个输出装置。Various embodiments of the systems and techniques described above herein may be implemented in digital electronic circuit systems, integrated circuit systems, FPGAs (Field Programmable Gate Arrays), ASICs (Application-Specific Integrated Circuits), ASSPs (Application Specific Standard Products), SOCs (System On Chips), CPLDs (Complex Programmable Logic Devices), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: being implemented in one or more computer programs that may be executed and/or interpreted on a programmable system including at least one programmable processor that may be a dedicated or general-purpose programmable processor that may receive data and instructions from a storage system, at least one input device, and at least one output device, and may transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

用于实施本公开的方法的程序代码可以采用一个或多个编程语言的任何组合来编写。这些程序代码可以提供给通用计算机、专用计算机或其他可编程数据处理装置的处理器或控制器,使得程序代码当由处理器或控制器执行时使流程图和/或框图中所规定的功能/操作被实施。程序代码可以完全在机器上执行、部分地在机器上执行,作为独立软件包部分地在机器上执行且部分地在远程机器上执行或完全在远程机器或服务器上执行。The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, implements the functions/operations specified in the flow chart and/or block diagram. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

在本公开的上下文中,机器可读介质可以是有形的介质,其可以包含或存储以供指令执行系统、装置或设备使用或与指令执行系统、装置或设备结合地使用的程序。机器可读介质可以是机器可读信号介质或机器可读储存介质。机器可读介质可以包括但不限于电子的、磁性的、光学的、电磁的、红外的、或半导体系统、装置或设备,或者上述内容的任何合适组合。机器可读存储介质的更具体示例会包括基于一个或多个线的电气连接、便携式计算机盘、硬盘、RAM、ROM、EPROM(Electrically Programmable Read-Only-Memory,可擦除可编程只读存储器)或快闪存储器、光纤、CD-ROM(Compact Disc Read-Only Memory,便捷式紧凑盘只读存储器)、光学储存设备、磁储存设备、或上述内容的任何合适组合。In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any suitable combination of the foregoing. More specific examples of machine-readable storage media may include electrical connections based on one or more lines, portable computer disks, hard disks, RAM, ROM, EPROM (Electrically Programmable Read-Only-Memory) or flash memory, optical fiber, CD-ROM (Compact Disc Read-Only Memory), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.

为了提供与用户的交互,可以在计算机上实施此处描述的系统和技术,该计算机具有:用于向用户显示信息的显示装置(例如,CRT(Cathode-Ray Tube,阴极射线管)或者LCD(Liquid Crystal Display,液晶显示器)监视器);以及键盘和指向装置(例如,鼠标或者轨迹球),用户可以通过该键盘和该指向装置来将输入提供给计算机。其它种类的装置还可以用于提供与用户的交互;例如,提供给用户的反馈可以是任何形式的传感反馈(例如,视觉反馈、听觉反馈、或者触觉反馈);并且可以用任何形式(包括声输入、语音输入或者、触觉输入)来接收来自用户的输入。To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (Cathode-Ray Tube) or LCD (Liquid Crystal Display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

可以将此处描述的系统和技术实施在包括后台部件的计算系统(例如,作为数据服务器)、或者包括中间件部件的计算系统(例如,应用服务器)、或者包括前端部件的计算系统(例如,具有图形用户界面或者网络浏览器的用户计算机,用户可以通过该图形用户界面或者该网络浏览器来与此处描述的系统和技术的实施方式交互)、或者包括这种后台部件、中间件部件、或者前端部件的任何组合的计算系统中。可以通过任何形式或者介质的数字数据通信(例如,通信网络)来将系统的部件相互连接。通信网络的示例包括:LAN(LocalArea Network,局域网)、WAN(Wide Area Network,广域网)、互联网和区块链网络。The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: LAN (Local Area Network), WAN (Wide Area Network), the Internet, and blockchain networks.

计算机系统可以包括客户端和服务器。客户端和服务器一般远离彼此并且通常通过通信网络进行交互。通过在相应的计算机上运行并且彼此具有客户端-服务器关系的计算机程序来产生客户端和服务器的关系。服务器可以是云服务器,又称为云计算服务器或云主机,是云计算服务体系中的一项主机产品,以解决了传统物理主机与VPS服务("Virtual Private Server",或简称"VPS")中,存在的管理难度大,业务扩展性弱的缺陷。服务器也可以为分布式系统的服务器,或者是结合了区块链的服务器。A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship between the client and the server is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services ("Virtual Private Server", or "VPS" for short). The server may also be a server of a distributed system, or a server combined with a blockchain.

其中,需要说明的是,人工智能是研究使计算机来模拟人的某些思维过程和智能行为(如学习、推理、思考、规划等)的学科,既有硬件层面的技术也有软件层面的技术。人工智能硬件技术一般包括如传感器、专用人工智能芯片、云计算、分布式存储、大数据处理等技术;人工智能软件技术主要包括计算机视觉技术、语音识别技术、自然语言处理技术以及机器学习/深度学习、大数据处理技术、知识图谱技术等几大方向。It should be noted that artificial intelligence is a discipline that studies how computers can simulate certain human thought processes and intelligent behaviors (such as learning, reasoning, thinking, planning, etc.), and includes both hardware-level and software-level technologies. Artificial intelligence hardware technologies generally include technologies such as sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, and big data processing; artificial intelligence software technologies mainly include computer vision technology, speech recognition technology, natural language processing technology, as well as machine learning/deep learning, big data processing technology, knowledge graph technology, and other major directions.

应该理解,可以使用上面所示的各种形式的流程,重新排序、增加或删除步骤。例如,本发公开中记载的各步骤可以并行地执行也可以顺序地执行也可以不同的次序执行,只要能够实现本公开公开的技术方案所期望的结果,本文在此不进行限制。It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.

上述具体实施方式,并不构成对本公开保护范围的限制。本领域技术人员应该明白的是,根据设计要求和其他因素,可以进行各种修改、组合、子组合和替代。任何在本公开的精神和原则之内所作的修改、等同替换和改进等,均应包含在本公开保护范围之内。The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.

Claims (17)

1. A large model-based recommendation method, the method comprising:
Acquiring historical behavior information of a target user;
Determining a user portrait of the target user by adopting a large model according to the historical behavior information;
Determining a target task to be executed by adopting the large model based on the user portrait and the real-time behavior information of the target user;
And recommending the client logged in by the target user to execute the target task.
2. The method of claim 1, wherein said determining a user representation of the target user using a large model based on the historical behavior information comprises:
Acquiring a feature library constructed based on preset behavior information, wherein the feature library is used for storing behavior elements of the preset behavior information and association relations among the behavior elements;
matching the historical behavior information in the feature library through the large model to obtain behavior elements and association relations corresponding to the historical behavior information;
and taking the behavior elements and the association relations corresponding to the historical behavior information as user portraits of the target user.
3. The method of claim 2, wherein the obtaining a feature library constructed based on preset behavior information comprises:
extracting at least one behavior element of the preset behavior information, wherein the behavior element comprises at least one of the following components: presetting execution time, execution place, execution object and behavior type of a behavior;
determining the association relation between all behavior elements for any preset behavior information;
and storing the behavior elements of any preset behavior information and the corresponding association relations as a record to obtain the feature library.
4. The method of claim 2, wherein the determining the target task to be performed using the large model based on the user representation and real-time behavioral information of the target user comprises:
generating a first prompt word based on the user portrait and the real-time behavior information;
Based on the first prompt word, calling a user portrait updating tool by adopting the large model to update the user portrait;
And screening the target tasks in a recommendation candidate set through the large model based on the updated user portraits, wherein the recommendation candidate set stores a plurality of candidate tasks executable by the client.
5. The method of claim 4, wherein the invoking a user representation update tool with the large model based on the first prompt word to update the user representation comprises:
And writing the behavior elements and the association relations corresponding to the real-time behavior information in the user portrait under the condition that the behavior elements and the association relations matched with the real-time behavior information exist in the feature library and the behavior elements and the association relations matched with the real-time behavior information do not exist in the user portrait.
6. The method of claim 4, wherein the determining the target task to be performed using the large model based on the user representation and real-time behavioral information of the target user comprises:
Generating a second prompt word based on the updated user portrait;
And based on the second prompt word, calling a target task screening tool and a sequencing tool by adopting the large model, and determining a target task to be executed.
7. The method of claim 6, wherein the determining the target task to be performed based on the second prompt word using the large model to invoke a target task screening tool and a ranking tool comprises:
Invoking the target task screening tool by adopting the large model, extracting semantic information of the updated user portrait based on the second prompt word, and mapping the semantic information into a first vector;
extracting semantic information of any candidate task in the recommended candidate set and mapping the semantic information into a second vector;
invoking the ranking tool to rank the similarity between the first vector and the second vector using the large model;
and selecting the target tasks with target quantity according to the sequence of the similarity.
8. A large model-based recommendation device, comprising:
the acquisition module is used for acquiring historical behavior information of the target user;
the first determining module is used for determining the user portrait of the target user by adopting a large model according to the historical behavior information;
The second determining module is used for determining a target task to be executed by adopting the large model based on the user portrait and the real-time behavior information of the target user;
And the recommending module is used for recommending the client logged in by the target user to execute the target task.
9. The apparatus of claim 8, wherein the first determining module is configured to:
Acquiring a feature library constructed based on preset behavior information, wherein the feature library is used for storing behavior elements of the preset behavior information and association relations among the behavior elements;
matching the historical behavior information in the feature library through the large model to obtain behavior elements and association relations corresponding to the historical behavior information;
and taking the behavior elements and the association relations corresponding to the historical behavior information as user portraits of the target user.
10. The apparatus of claim 9, wherein the first determining module is further configured to:
extracting at least one behavior element of the preset behavior information, wherein the behavior element comprises at least one of the following components: presetting execution time, execution place, execution object and behavior type of a behavior;
determining the association relation between all behavior elements for any preset behavior information;
and storing the behavior elements of any preset behavior information and the corresponding association relations as a record to obtain the feature library.
11. The apparatus of claim 9, wherein the second determining module is configured to:
generating a first prompt word based on the user portrait and the real-time behavior information;
Based on the first prompt word, calling a user portrait updating tool by adopting the large model to update the user portrait;
And screening the target tasks in a recommendation candidate set through the large model based on the updated user portraits, wherein the recommendation candidate set stores a plurality of candidate tasks executable by the client.
12. The apparatus of claim 11, wherein the second determination module is further configured to:
And writing the behavior elements and the association relations corresponding to the real-time behavior information in the user portrait under the condition that the behavior elements and the association relations matched with the real-time behavior information exist in the feature library and the behavior elements and the association relations matched with the real-time behavior information do not exist in the user portrait.
13. The apparatus of claim 11, wherein the second determination module is further configured to:
Generating a second prompt word based on the updated user portrait;
And based on the second prompt word, calling a target task screening tool and a sequencing tool by adopting the large model, and determining a target task to be executed.
14. The apparatus of claim 13, wherein the second determination module is further configured to:
Invoking the target task screening tool by adopting the large model, extracting semantic information of the updated user portrait based on the second prompt word, and mapping the semantic information into a first vector;
extracting semantic information of any candidate task in the recommended candidate set and mapping the semantic information into a second vector;
invoking the ranking tool to rank the similarity between the first vector and the second vector using the large model;
and selecting the target tasks with target quantity according to the sequence of the similarity.
15. An electronic device, comprising:
At least one processor; and
A memory communicatively coupled to the at least one processor; wherein,
The memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-7.
16. A non-transitory computer readable storage medium storing computer instructions for causing the computer to perform the method of any one of claims 1-7.
17. A computer program product comprising a computer program which, when executed by a processor, implements the method according to any of claims 1-7.
CN202410804796.XA 2024-06-20 2024-06-20 Recommendation method, device, equipment and storage medium based on large model Pending CN118708808A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410804796.XA CN118708808A (en) 2024-06-20 2024-06-20 Recommendation method, device, equipment and storage medium based on large model

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410804796.XA CN118708808A (en) 2024-06-20 2024-06-20 Recommendation method, device, equipment and storage medium based on large model

Publications (1)

Publication Number Publication Date
CN118708808A true CN118708808A (en) 2024-09-27

Family

ID=92805284

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410804796.XA Pending CN118708808A (en) 2024-06-20 2024-06-20 Recommendation method, device, equipment and storage medium based on large model

Country Status (1)

Country Link
CN (1) CN118708808A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN119378936A (en) * 2024-12-27 2025-01-28 西安理工大学 Task execution method and system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN119378936A (en) * 2024-12-27 2025-01-28 西安理工大学 Task execution method and system

Similar Documents

Publication Publication Date Title
US11403464B2 (en) Method and system for implementing semantic technology
US10565234B1 (en) Ticket classification systems and methods
US10025904B2 (en) Systems and methods for managing a master patient index including duplicate record detection
US9390176B2 (en) System and method for recursively traversing the internet and other sources to identify, gather, curate, adjudicate, and qualify business identity and related data
US10397157B2 (en) Message management in a social networking environment
US20120303661A1 (en) Systems and methods for information extraction using contextual pattern discovery
CN104036004B (en) Search for error correction method and search error correction device
CN114090634A (en) A method and device for hotel data management based on data warehouse
CN119205338A (en) Contract risk identification method, device, equipment, storage medium and program product
US11308177B2 (en) System and method for accessing and managing cognitive knowledge
US9996529B2 (en) Method and system for generating dynamic themes for social data
CN120067243A (en) Method, device and equipment for generating reply information based on large language model
CN113010664B (en) Data processing method, device and computer equipment
CN110399431A (en) A kind of incidence relation construction method, device and equipment
KR102155877B1 (en) Method for providing information of projects matching qualifications of crowdsourcing platform for artificial intelligence training data generation
CN118708808A (en) Recommendation method, device, equipment and storage medium based on large model
CN113326363A (en) Searching method and device, prediction model training method and device, and electronic device
CN104992318A (en) Method for actively recommending events by calendar
CN101203847B (en) System and method for managing lists
WO2019008394A1 (en) Digital information capture and retrieval
US12001456B2 (en) Mutual exclusion data class analysis in data governance
US20190244174A1 (en) System for Inspecting Message Logs Using an Interaction Engine
JP2021033860A (en) Server and computer program
US20250328525A1 (en) Divide-and-conquer prompt for LLM-based text-to-SQL conversion
KR20180137394A (en) A device for extracting and managing terms from a document and a method for extracting and managing terms using the same

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