CN-122021725-A - Memory management method, equipment and computer readable storage medium
Abstract
The application provides a memory management method, equipment and a computer readable storage medium, wherein the method comprises the steps of responding to the fact that current dialogue information meets preset conditions, determining an associated memory segment corresponding to the current dialogue information from historical dialogue information, generating memory to-be-confirmed information corresponding to the associated memory segment, and receiving user feedback information corresponding to the memory to-be-confirmed information, and updating the associated memory segment based on the user feedback information to obtain the updated associated memory segment.
Inventors
- Han Xiya
- WANG WEN
Assignees
- 联想(北京)有限公司
Dates
- Publication Date
- 20260512
- Application Date
- 20260128
Claims (10)
- 1. A memory management method, the method comprising: Determining an associated memory segment corresponding to the current dialogue information from the historical dialogue information in response to the current dialogue information meeting a preset condition; generating to-be-confirmed memorization information corresponding to the associated memory segment, and receiving user feedback information corresponding to the to-be-confirmed memorization information; and updating the associated memory segment based on the user feedback information to obtain an updated associated memory segment.
- 2. The memory management method according to claim 1, the determining, from the historical dialog information, an associated memory segment corresponding to the current dialog information, comprising: Generating a historical semantic feature vector corresponding to the historical dialogue information and a current semantic feature vector corresponding to the current dialogue information; and calculating the semantic similarity of the historical semantic feature vector and the current semantic feature vector, and determining the associated memory segment from the historical dialogue information based on the semantic similarity.
- 3. The memory management method according to claim 2, wherein the associated memory segment includes at least one memory segment, and wherein the generating the memory to-be-confirmed information corresponding to the associated memory segment includes: acquiring a memory weight value corresponding to the at least one memory segment; combining the memory weight value corresponding to each memory segment with the semantic similarity to determine a priority ordering result corresponding to at least one memory segment; determining a target memory segment from the associated memory segments based on the prioritization results; and generating the memory to-be-confirmed information corresponding to the target memory segment.
- 4. The memory management method of claim 1, the method further comprising: responding to the conversion of the dialogue theme of the current dialogue information, and determining that the preset condition is met; responding to the user problem contained in the current dialogue information to meet an information deletion condition, and determining that the preset condition is met; And responding to the user problem characterization contained in the current dialogue information to have attention to the historical event, and determining that the preset condition is met.
- 5. The memory management method according to claim 1, after the generating of the memory to-be-confirmed information corresponding to the associated memory segment, the method further comprising: and embedding the information to be confirmed in the current dialogue based on the characteristics of the current dialogue.
- 6. The memory management method according to claim 3, wherein the user feedback information includes feedback information corresponding to each of the target memory segments, wherein the updating the associated memory segment based on the user feedback information to obtain an updated associated memory segment comprises: Aiming at the memory segment with the user feedback information being positive feedback, the corresponding memory weight value is enhanced, and the memory content is expanded; Aiming at the target memory segment, the user feedback information is a memory segment which is not fed back in the positive direction, corresponding memory weight values are attenuated, and memory contents are compressed; and aiming at the target memory segment, the user feedback information is a modified memory segment, and the corresponding memory weight value and the modified memory content are updated.
- 7. The memory management method of claim 1, the method further comprising: Determining that the preset condition is met in response to the occurrence times of the first content in the current dialogue information being greater than a preset threshold value; Accordingly, after determining the associated memory segment corresponding to the current dialogue information from the historical dialogue information, the method further comprises: Updating the associated memory segment to obtain the updated associated memory segment.
- 8. The memory management method according to any one of claims 1 to 7, wherein after updating the associated memory segment to obtain an updated associated memory segment, the method further comprises: Acquiring a first problem in the current dialogue information; and combining the updated associated memory segment, replying the first question to generate a first replying result.
- 9. A memory management device comprising a processor and an agent capable of running on the processor, the agent capable of invoking at least one process model deployed in the memory management device to: acquiring current dialogue information, and determining an associated memory segment corresponding to the current dialogue information from historical dialogue information; generating to-be-confirmed memorization information corresponding to the associated memory segment, and receiving user feedback information corresponding to the to-be-confirmed memorization information; And based on the user feedback information, performing memory importance adjustment on the associated memory segment to obtain an adjusted associated memory segment.
- 10. Computer can the storage medium is read and the data is read, the computer readable storage medium stores one or more computer programs, the one or more computer programs are executable by one or more processors to implement the memory management method of any of claims 1 to 8.
Description
Memory management method, equipment and computer readable storage medium Technical Field The present application relates to the field of memory management, and in particular, to a memory management method, apparatus, and computer readable storage medium. Background In the field of intelligent agents, long-term memory management is a key technology for determining the level of intelligence. Currently, the industry generally adopts a 'time decay' strategy to manage memory, i.e. compress historical information according to time sequence, so as to save storage and computing resources. However, this management mode with time as the only dimension has a fundamental difference from the operation mechanism of human memory, so that the accuracy of memory management is low. Disclosure of Invention The embodiment of the application provides a memory management method, memory management equipment and a computer readable storage medium. The technical scheme of the embodiment of the application is realized as follows: The embodiment of the application provides a memory management method, which comprises the following steps: Determining an associated memory segment corresponding to the current dialogue information from the historical dialogue information in response to the current dialogue information meeting a preset condition; generating information to be confirmed corresponding to the associated memory segment, and receiving user feedback information corresponding to the information to be confirmed; based on the user feedback information, updating the associated memory segment to obtain the updated associated memory segment. The embodiment of the application provides a memory management device, which comprises: The determining module is used for determining an associated memory segment corresponding to the current dialogue information from the historical dialogue information in response to the fact that the current dialogue information meets preset conditions; the generation module is used for generating the information to be confirmed corresponding to the associated memory segment and receiving the user feedback information corresponding to the information to be confirmed; And the updating module is used for updating the associated memory segment based on the user feedback information to obtain the updated associated memory segment. The embodiment of the application provides a memory management device, which comprises a processor and an intelligent body capable of running on the processor, wherein the intelligent body can call at least one processing model deployed in the memory management device to acquire current dialogue information, determine an associated memory segment corresponding to the current dialogue information from historical dialogue information, generate memory to-be-confirmed information corresponding to the associated memory segment, and receive user feedback information corresponding to the memory to-be-confirmed information, and adjust the memory importance of the associated memory segment based on the user feedback information to obtain the adjusted associated memory segment. The embodiment of the application provides a computer readable storage medium, which stores a computer program or computer executable instructions for realizing the memory management method provided by the embodiment of the application when being executed by a processor. Drawings FIG. 1 is a flow chart of a memory management method according to an embodiment of the present application; FIG. 2 is a flow chart illustrating an exemplary determination of associative memory segments according to an embodiment of the present application; FIG. 3 is a flow chart illustrating an exemplary generation of a memory to-be-confirmed message according to an embodiment of the present application; FIG. 4 is a flowchart illustrating an exemplary memory segment updating process according to an embodiment of the present application; FIG. 5 is a second flowchart of an exemplary updating of a memory segment according to an embodiment of the present application; FIG. 6 is a flow chart illustrating an exemplary generation of reply results provided by an embodiment of the present application; FIG. 7 is a flow chart of an exemplary memory management method according to an embodiment of the present application; fig. 8 is a schematic structural diagram of a memory management device according to an embodiment of the present application. Detailed Description The present application will be further described in detail with reference to the accompanying drawings, for the purpose of making the objects, technical solutions and advantages of the present application more apparent, and the described embodiments should not be construed as limiting the present application, and all other embodiments obtained by those skilled in the art without making any inventive effort are within the scope of the present application. The embodiment of the application provides a me