Memory recall and update method, apparatus, and device

By using tree graph structure and semantic structured compression technology, the problems of correlation and redundancy in traditional memory systems are solved, enabling more accurate and efficient memory retrieval and updating, and simulating human associative memory.

CN123138402APending Publication Date: 2026-11-20ALIPAY (HANGZHOU) INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611239753.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-14
Publication Date
2026-11-20

AI Technical Summary

Technical Problem

Traditional memory systems lack associative memory, are fragmented, lack context, have redundant storage, and employ static retrieval strategies, making it difficult to simulate human associative memory and resulting in inaccurate and inefficient memory retrieval.

Method used

The system uses a tree graph structure for storage and memory, with keywords in the structured language as nodes, directed edges to represent relationships, and edge weights to represent the strength of the relationships. This enables multi-hop association and dynamic updates and retrieval through semantic structure compression technology.

Benefits of technology

It supports multi-hop association, improves the accuracy and efficiency of memory retrieval, reduces storage redundancy, dynamically adjusts retrieval depth and breadth, simulates human memory mechanisms, and provides memory content in a complete context.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123138402A_ABST
    Figure CN123138402A_ABST
Patent Text Reader

Abstract

The embodiment of the specification discloses a memory recall and updating method, device and equipment. The scheme comprises: for the current unstructured natural language, converting into the current structured language through the preset multi-dimensional memory structure, and determining the tree graph structure constructed in advance through the historical structured language; based on the tree graph structure, performing memory retrieval on the current structured language, and updating the tree graph structure based on the similarity between the current structured language in the retrieval process and each node in the tree graph structure; restoring according to the structured memory retrieval result, recalling the corresponding unstructured memory content.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This specification relates to the field of computer technology, and in particular to methods, apparatus and devices for memory retrieval and updating. Background Technology

[0002] With the rapid development of Large Language Models (LLMs) and Agentic Systems, memory systems have become a core component for achieving truly intelligent interaction.

[0003] In traditional solutions, Long Short-Term Memory (LSTM) systems store memories as independent vectors and retrieve them using keyword similarity. When a user mentions a relevant keyword, the system retrieves the original text related to that keyword by using a fixed similarity threshold.

[0004] Therefore, a more accurate and comprehensive memory retrieval and update solution is needed. Summary of the Invention

[0005] This specification provides one or more embodiments of a memory retrieval and update method, apparatus, device, and storage medium to solve the following technical problem: the need for a more accurate and complete memory retrieval and update scheme.

[0006] To solve the above-mentioned technical problems, one or more embodiments of this specification are implemented as follows: This specification provides one or more embodiments of a memory recall and update method, including: For the current unstructured natural language, it is transformed into the current structured language through a pre-set multi-dimensional memory structure, and a tree diagram structure pre-constructed through historical structured language is determined. Based on the tree graph structure, a memory retrieval is performed on the current structured language, and the tree graph structure is updated based on the similarity between the current structured language and each node in the tree graph structure during the retrieval process. The structured memory retrieval results are used to restore and recall the corresponding unstructured memory content.

[0007] This specification provides one or more embodiments of a memory recall and update device, including: The structured transformation module transforms the current unstructured natural language into the current structured language through a preset multidimensional memory structure, and determines the tree diagram structure pre-constructed using historical structured language. The memory retrieval and update module performs memory retrieval of the current structured language based on the tree graph structure, and updates the tree graph structure based on the similarity between the current structured language and each node in the tree graph structure during the retrieval process. The memory retrieval module restores the corresponding unstructured memory content based on the structured memory retrieval results.

[0008] This specification provides one or more embodiments of a memory recall and update device, including: 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, which, when executed by the at least one processor, enable the at least one processor to: For the current unstructured natural language, it is transformed into the current structured language through a pre-set multi-dimensional memory structure, and a tree diagram structure pre-constructed through historical structured language is determined. Based on the tree graph structure, a memory retrieval is performed on the current structured language, and the tree graph structure is updated based on the similarity between the current structured language and each node in the tree graph structure during the retrieval process. The structured memory retrieval results are used to restore and recall the corresponding unstructured memory content.

[0009] This specification provides one or more embodiments of a non-volatile computer storage medium storing computer-executable instructions, wherein the computer-executable instructions are configured as follows: For the current unstructured natural language, it is transformed into the current structured language through a pre-set multi-dimensional memory structure, and a tree diagram structure pre-constructed through historical structured language is determined. Based on the tree graph structure, a memory retrieval is performed on the current structured language, and the tree graph structure is updated based on the similarity between the current structured language and each node in the tree graph structure during the retrieval process. The structured memory retrieval results are used to restore and recall the corresponding unstructured memory content.

[0010] The above-described at least one technical solution adopted in one or more embodiments of this specification can achieve the following beneficial effects: It uses a tree graph structure to store memories, taking keywords in structured language as nodes, using directed edges to represent relationships, and using edge weights to represent the strength of the relationships. It can support multi-hop association through graph traversal, simulating the human memory mechanism of "associating context with words".

[0011] Semantic structuring compression technology transforms unstructured text into structured memory containing multi-dimensional memory structures, thereby preserving the complete context with minimal storage space. Furthermore, through mechanisms such as multiple edge types, dynamic edge weights, and semantic deduplication, it achieves finer-grained memory associations and dynamic evolution. Attached Figure Description

[0012] To more clearly illustrate the technical solutions in the embodiments or prior art of this specification, the drawings used in the description of the embodiments or prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in this specification. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0013] Figure 1 A flowchart illustrating a memory recall and update method provided in one or more embodiments of this specification; Figure 2 A schematic diagram of the architecture of a memory retrieval and update system in an application scenario, provided for one or more embodiments of this specification. Figure 3 A schematic diagram of a memory writing and updating process in an application scenario, provided for one or more embodiments of this specification; Figure 4 A schematic diagram of a memory retrieval process in an application scenario, provided for one or more embodiments of this specification; Figure 5 This is a schematic diagram illustrating dynamic configuration adjustment in an application scenario, provided for one or more embodiments of this specification. Figure 6 A schematic diagram of a memory recall and update device provided in one or more embodiments of this specification; Figure 7 This is a schematic diagram of the structure of a memory recall and update device provided for one or more embodiments of this specification. Detailed Implementation

[0014] This specification provides a method, apparatus, device, and storage medium for memory recall and updating.

[0015] To enable those skilled in the art to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this specification, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of this application.

[0016] The traditional approach has the following main problems: 1. Lack of relevance: Long short-term memory systems primarily rely on keyword similarity for retrieval, making it difficult to simulate the human ability to associate keywords with relevant scene fragments. For example, when a user mentions "birthday," traditional systems can only recall memories containing the word "birthday," but struggle to associate specific birthday party scenes, the weather at the time, or the people present.

[0017] 2. Fragmented memory: Traditional solutions store memories as independent vectors, lacking structured connections across multiple dimensions such as time, space, and events. This results in information silos between memories, making it difficult to construct a coherent personal memory map.

[0018] 3. Lack of context: Traditional retrieval-augmented generation (RAG) systems recall memory fragments that lack complete contextual information (time, place, people, events), resulting in the agent lacking the necessary background support when using memory for reasoning.

[0019] 4. Storage redundancy: Traditional solutions store the original text completely without a structured compression mechanism, resulting in duplicate information occupying a large amount of storage space and low retrieval efficiency.

[0020] 5. Static retrieval strategy: Traditional solutions use fixed similarity thresholds for memory retrieval, which makes it difficult to dynamically adjust the retrieval depth and breadth according to the current dialogue intent, resulting in either too many memories (high noise) or too few memories (insufficient information).

[0021] Meanwhile, in neurological research, human memory exhibits associative and contextual characteristics: when people recall an event, they often do not recall the facts in isolation, but rather activate the entire event context through a clue (keyword), including multi-dimensional information such as time, place, relevant people, and emotions at the time. This associative memory mechanism is lacking in traditional memory systems.

[0022] Based on this traditional approach, a corresponding solution is provided here.

[0023] For example, memory text can be encoded as vectors, and nearest neighbor retrieval can be performed using cosine similarity or Euclidean distance. However, this approach still has some shortcomings: lack of structural association: memories are stored as independent vectors, with no temporal, spatial, or semantic associations between them, making associative recall difficult; single dimension: relying solely on semantic similarity makes it difficult to express complex relationships such as "simultaneous occurrence," "causal relationship," and "emotional association"; loss of context: retrieval results are fragmented texts, lacking complete event background (time, place, people); storage redundancy: the original text is stored in its entirety, lacking a compression mechanism, resulting in low storage efficiency; fixed weights: it is difficult to dynamically adjust memory weights based on time decay, importance, and association strength.

[0024] For example, memory can be divided into multiple layers such as core memory, dialogue context, and document storage. However, this approach still has some shortcomings: fixed layers: memory layers are preset by the system design and are difficult to dynamically adjust according to user characteristics; simple retrieval mechanism: each layer still relies on similarity retrieval and lacks the associative ability of a tree diagram structure; static writing rules: the rules for memory to sink from the upper layer to the lower layer are fixed and lack flexibility; duplicate storage: the same information may be stored repeatedly in different layers, without effective compression.

[0025] Based on this Figure 1 This diagram illustrates a memory retrieval and update method provided in one or more embodiments of this specification. This method can be applied to various business domains, such as large-scale modeling, internet finance, e-commerce, instant messaging, gaming, and government services. The process can be executed by computing devices relevant to the domain (e.g., intelligent customer service servers or intelligent mobile terminals corresponding to large language models). Certain input parameters or intermediate results in the process can be manually adjusted to help improve accuracy.

[0026] Figure 1 The process may include the following steps: S102: For the current unstructured natural language, transform it into the current structured language through a pre-defined multi-dimensional memory structure, and determine the tree diagram structure pre-constructed through historical structured language.

[0027] Figure 2This specification provides an architectural diagram of a memory retrieval and update system for one or more embodiments in an application scenario. Unstructured natural language refers to natural language text that lacks a fixed structure, does not conform to specific grammatical or semantic organization rules, and is difficult for a computer to directly parse according to preset structured rules. Its sources can include: input content when users at the business layer communicate with the interaction system associated with the memory system (e.g., the interaction system containing large language models, artificial intelligence (AI) agents, etc.); or, with the user's permission, the user's statements, comments, etc., obtained through third-party social applications, or the interaction system being initiated through a third-party social application. The input methods for this unstructured natural language can include multiple modalities such as text, voice, images, and video. The unstructured natural language is converted into text form for processing through image recognition, audio-to-text conversion, and other methods.

[0028] A multidimensional memory structure refers to a semantic storage framework that uses multiple pre-defined core dimensions as index axes to standardize and map unstructured natural language. These core dimensions are used to summarize and describe unstructured natural language across different dimensions; for example, core dimensions may include: time, location, weather, people, and events.

[0029] This multidimensional memory structure transforms unstructured natural language into structured language, which we'll call the current structured language for ease of description. For example, if the current unstructured natural language is "This afternoon, my colleague A and I discussed a new product design in a coffee shop. The weather was nice," and the core dimensions include: time, location, weather, people, and event, then the extracted current structured language could include: The data structure is as follows: time: { date: "2024-03-05", period: "afternoon"}; location: { venue: "coffee shop", address: "City B, District C"}; weather: { condition: "sunny", temperature: 22}; people: [ { name: "colleague A", role: "friend"} ]; event: { action: "discussion", topic: "new product design scheme"}. The temperature (22 ℃) and the address (City B, District C) can be obtained through relevant modules on the terminal used for user interaction.

[0030] Additionally, relevant keywords can be extracted, including: afternoon, colleague A, coffee shop, product, design, and weather.

[0031] Tree-graph structure refers to extracting key entities from historical memory into nodes, calculating edges representing weights based on the relationships between entities, and forming a semantic network-like knowledge structure through nodes and edges. For example... Figure 2 As shown, the tree graph structure is stored through a memory storage layer, which contains nodes generated by multiple keywords. The edge type (e.g., causal, social, spatial, etc.) and weight support the rapid retrieval, association diffusion, and associative reasoning of subsequent memories.

[0032] Specifically, when constructing the tree diagram structure, the historical structured language is predetermined. This historical structured language can be obtained by standardizing the user-related historical unstructured natural language, which in turn can be obtained from the user's historical content in the interactive system, or from other content related to the user and their interactive content that can be obtained. For example, this other content may include interactive files or URLs provided by the user, or publicly available user information.

[0033] Based on the content of each dimension of the historical structured language in the multidimensional memory structure, corresponding nodes are generated. Taking the "current structured language" example above, the node generation process is explained as follows: For the time dimension, the generated node is "afternoon of March 5, 2024"; for the location dimension, the generated node is "coffee shop in District C, City B"; for the weather dimension, the generated node is "sunny, temperature 22 degrees Celsius"; for the person dimension, the generated node is "friend / colleague A"; and for the event dimension, the generated node is "discussing new product design schemes". Each node can be described directly as a single node based on requirements, or it can be described separately through multiple sub-nodes.

[0034] Based on the weights of each node, edges carrying weights are generated, and a correlation type between the nodes is added to the edges. The weight indicates the degree of association between nodes; the higher the weight, the more related the two nodes are. The correlation type indicates the semantic or logical relationship between the two nodes. For example, semantic correlation (based on the semantic proximity of keywords, such as "project" and "task" being semantically related), temporal correlation (based on the proximity of events, such as events occurring within one hour being temporally related), spatial correlation (based on geographical proximity or co-occurrence, such as events occurring in a common area being spatially related), causal correlation (based on the causal relationship between events, such as "rain" causing "canceling a trip" being causally related), and social correlation (based on the social relationship between people, such as "friends" and "colleagues" being socially related).

[0035] Based on the nodes and edges, construct the corresponding tree graph structure. In this way, the corresponding tree graph structure can be generated using the obtained nodes and edges. Simultaneously, when generating a node, its corresponding unstructured natural language or structured language can be recorded and associated as a memory entry associated with that node.

[0036] Figure 3 This diagram illustrates a memory writing and updating process in one or more embodiments of this specification. When generating weights, the temporal proximity between nodes is determined based on their corresponding timestamps. Semantic similarity between nodes is also determined.

[0037] Temporal proximity refers to the closeness between the generation times of two nodes. The higher the temporal proximity, the closer the generation times of the two nodes are. Temporal proximity can be calculated from the timestamps of node generation, and its value range can be normalized to the interval [0,1]. When the temporal proximity reaches 1, it can be considered that the two nodes were generated based on the same interaction.

[0038] Semantic similarity indicates the degree of semantic proximity between two nodes. The higher the semantic similarity, the more related the two nodes are semantically. Semantic similarity can be quantified using a built-in large language model. For example, "project" and "task" have a high semantic similarity, while "project" and "coffee" have a low semantic similarity.

[0039] The weights between nodes are determined based on temporal proximity and semantic similarity. Corresponding coefficients are assigned to temporal proximity and semantic similarity, and the weights between nodes are obtained through weighted summation. These coefficients can be set based on actual business needs, scenario characteristics, etc., and can be dynamically adjusted.

[0040] If there exists a node with a weight higher than the preset weight value, then an edge carrying that weight is generated for that node. Of course, in addition to the weight obtained by weighted summation, if a single weight item (including semantic similarity and temporal proximity) exceeds a certain threshold, an edge can still be generated even if the final weighted summation value is not higher than the preset weight value.

[0041] Furthermore, in addition to the fixed weight values ​​already set on the edges, the weights can be dynamically adjusted based on the current situation.

[0042] The weights of each node are dynamically decayed based on a preset time half-life parameter. The time half-life parameter refers to the threshold time required to control the rate of edge weight decay; that is, the time period required for a weight value to decrease from its current value to half its original value. The system uses a continuously running background task or real-time calculation method to dynamically decay the weights based on the time difference between the current moment and the last time the edge was activated (created or accessed), combined with the preset half-life parameter (e.g., 7 days). The weight decay process can be described by the formula... As shown; where, The weight value after dynamic decay. These are the initial weight values. For attenuation parameters, , This is the preset time half-life parameter.

[0043] This allows for the automatic reduction of edge weights, achieving the effect of "naturally forgetting over time." When the edge is activated by a new interaction, its weight will be increased again.

[0044] Based on the activation triggers of each node in unstructured natural language, the weight corresponding to that node is dynamically increased. When a keyword node that already exists in the tree graph reappears in new unstructured natural language input (e.g., a new dialogue or document), the system considers that node to be "activated." At this time, the edge weights between this node and other co-occurring nodes in the same memory (e.g., "coffee shop" in the same dialogue) are dynamically increased to simulate the reinforcement effect in human memory where "repeated mentions lead to closer relationships."

[0045] For example, suppose an edge currently has a weight of 0.8, a preset half-life of 7 days, and if the edge is not activated by any conversation after that, its weight will decay to 0.4 after 7 days, and if it is still not activated after 14 days, its weight will continue to decay to 0.2. Of course, if a user mentions the topic again on any of these days (such as the 10th day), triggering the edge's activation, the system will stop the automatic decay, increase the edge's weight by a certain value based on the activation trigger, and restart the calculation of the next decay cycle.

[0046] S104: Based on the tree graph structure, perform memory retrieval on the current structured language, and update the tree graph structure based on the similarity between the current structured language and each node in the tree graph structure during the retrieval process.

[0047] like Figure 2As shown, memory retrieval refers to the process of filtering and recalling highly relevant historical structured memory content within a tree graph structure based on the input current structured language through a memory retrieval layer. During this retrieval process, the current structured language is compared with each node in the tree graph structure for similarity detection. If the current structured language contains multiple keywords (which are not yet nodes), similarity detection can be performed separately for each keyword.

[0048] Figure 4 This diagram illustrates a memory retrieval process in one or more embodiments of this specification, where the starting node is determined based on similarity detection results. The node most similar to each keyword (or with a similarity exceeding a certain threshold) is retrieved from the tree structure and used as the starting node for that keyword. The starting node can vary depending on the strategy selected in the retrieval planner. For example, when using the exact strategy, only the starting node with the highest similarity is selected from the starting nodes corresponding to each keyword; when using the association strategy, several starting nodes with the highest similarity can be selected as the final starting node; and when using the exploration strategy, all starting nodes with similarity exceeding a certain threshold can be selected as the final starting node.

[0049] Starting from the initial node, neighboring nodes are visited in descending order of edge weights. A diffusion pruning process is performed on a single initial node, visiting each neighboring node sequentially based on edge weights, and then continuing to visit from each neighboring node in descending order of weights. During the visit, the weights of each edge on the path are multiplied to calculate the cumulative path weight. When the cumulative path weight falls below a certain threshold, or when a leaf node containing no more neighboring nodes is reached, or when the maximum depth is reached, the visit on that path is stopped, and a corresponding visit path is generated. For example, suppose the initial node is "colleague A," which contains 3 neighboring nodes: node A (weight 0.9), node B (weight 0.7), and node C (weight 0.3). Node A includes neighbor node D (weight 0.8), and node B includes neighbor node E (weight 0.5). Assume the pruning threshold is 0.6 and the maximum depth is 2. At this point, starting from node A, the cumulative path weight calculated for the path "colleague AAD" is 0.72, which is higher than the pruning threshold, and the number of visits has reached the maximum depth, so the path is retained; starting from node B, the cumulative path weight calculated for the path "colleague ABE" is 0.35, which is lower than the pruning threshold, so pruning is performed; starting from node C, since its own weight is 0.3, which is already lower than the pruning threshold, pruning is performed directly.

[0050] Based on the cumulative path weight of the access path, the corresponding memory retrieval results are returned. The memory retrieval results can include all returned paths, or only the one or several paths with the highest cumulative path weight. In addition to the paths, the memory entries corresponding to each node within the path can also be included. A memory entry refers to the unstructured natural language or structured language corresponding to that node; when the node is generated, this content is associated with the node as its memory entry.

[0051] Furthermore, in the process of visiting neighbor nodes in descending order based on edge weights, maintaining only a fixed weight may lead to a rigid retrieval path that is difficult to adapt to dynamically changing contextual requirements. The method described above, based on fixed weights of temporal proximity and semantic similarity, actively and dynamically decays the weights through a time half-life parameter and passively and dynamically increases them through activation triggers, thereby achieving dynamic adjustment of the weights.

[0052] Based on this, during the path access process, the weights can be further dynamically adjusted based on the unstructured natural language input by the user, so as to better match the content that the user wants to express.

[0053] like Figure 4 As shown, intent understanding is performed based on the current unstructured natural language. Intent understanding is the process of parsing the unstructured natural language input by the user into predefined intent categories (such as recalling events, searching for people, exploring topics, etc.) through a large model and extracting semantic mappings of key entities. This provides a basis for decision-making in subsequent retrieval strategy selection and dynamic weight adjustment.

[0054] The weights of each side are dynamically adjusted based on the intent understanding results. For example, the neighboring nodes of the "colleague A" node include "coffee shop," "project," and "colleague D," with weights of 0.6, 0.75, and 0.5, respectively. If the user's unstructured natural language input is something related to location and work, such as "Where should I go with colleague A to discuss work?", the system can recognize that the user's current intent is "to find a suitable place to discuss work." In this case, the weight of "coffee shop" (0.6) and the weight of "project" (0.75) can be dynamically increased.

[0055] Starting from the initial node, neighboring nodes are visited in descending order based on the dynamically adjusted edge weights. During the visit, other nodes are filtered based on the intent understanding results and the relevance types carried by the edges. In addition to adjusting edge weights, edge relevance types can also be directly filtered based on intent understanding, eliminating completely irrelevant edges. Relevance types include semantic relevance, temporal relevance, spatial relevance, causal relevance, and social relevance. Taking the neighboring nodes of "Colleague A" as "Coffee Shop," "Project," and "Colleague D" as an example, the relevance between "Coffee Shop" and "Colleague A" is spatial, the relevance between "Project" and "Colleague A" is causal, and the relevance between "Colleague D" and "Colleague A" is social. If the user's unstructured natural language input is "Where should I go with Colleague A to discuss work?", during path expansion, edges with "spatial relevance" and "causal relevance" (e.g., "Project" represents a work task) are prioritized, while edges with only "social relevance" (e.g., "Colleague D") are filtered or downweighted.

[0056] like Figure 2 As shown, during the retrieval process, the obtained tree graph structure can be updated based on actual needs through a memory update layer. This allows for the dynamic integration of newly input structured language information during the retrieval process, achieving incremental evolution of the memory structure.

[0057] Based on the retrieval process, it is determined whether a specified node exists in the tree graph structure with a similarity higher than a preset similarity to the current structured language. When the current structured language has multiple keywords, the similarity between each keyword and each node can be determined, and the highest similarity is taken as the highest similarity between the current structured language and each node, which is used to determine whether a specified node exists.

[0058] If a node already exists, it means that a highly matching node already exists in the tree graph structure for the currently input information. Forcibly creating a new node at this point would lead to knowledge redundancy and information fragmentation. Therefore, based on this specified node, the tree graph structure is incrementally updated according to the current structured language. The incremental update can include: attaching the corresponding memory entry to the specified node, updating the timestamp and related weights (dynamically adjusting the weights), etc. It can also be based on this specified node, adding other keywords from the current structured language as new nodes to the tree graph structure, generating corresponding edges, and calculating their weights.

[0059] If it doesn't exist, it's considered new and unrecorded content. At this point, the process of writing new nodes and edges can be executed. New nodes are created based on the current structured language, and edges are created between these new nodes and other nodes. For each keyword in the current structured language, corresponding nodes are generated, and corresponding edges are created. For newly generated nodes, corresponding weights can be calculated between them and existing nodes in the tree graph structure. If the weights reach a certain value, corresponding edges can be established between them.

[0060] S106: Restore the corresponding unstructured memory content based on the structured memory retrieval results.

[0061] Based on the structured memory retrieval results, the corresponding node paths are determined. The memory retrieval results may include the retrieved paths (usually the one or more paths with the highest cumulative path weight) and the related memory entries on those paths.

[0062] Based on the node path, the required unstructured natural language is reconstructed. Nodes along the path, being structured information, are difficult to recall directly and are therefore reconstructed. During this process, the original memory entries attached to each node are located along the retrieved node path, and stored structured field values ​​such as time, location, people, and events are extracted. These fields are then mapped and filled according to a preset semantic template (e.g., "time + people + location + event"), merging repeated subjects or time adverbs to form a coherent sequence of short sentences. Finally, the nodes are sorted by relevance and timestamps and assembled into a fluent natural language summary. If the path involves multiple related nodes, they can be combined based on corresponding priorities (e.g., preset importance priority, time priority, etc.) to enhance the logic and completeness of the retrieved content.

[0063] Based on the associated nodes corresponding to the node path, the system supplements the required unstructured natural language with associated memories and generates a corresponding memory summary. In addition to retrieving the main path, it can also simultaneously extract neighboring nodes connected to each node in the path via high-weight edges and obtain the relevant memory entries attached to these neighboring nodes. Then, key scene information from these associated memories (such as preceding events, subsequent results, related personnel, or locations) is added or inserted into the restored main narrative text to form an information set containing complete context. Based on this, the system performs deduplication, temporal rearrangement, and redundancy compression on this set, and calls a lightweight language model or template aggregator to refine the set into a semantically coherent and concise memory summary that highlights key points. The summary must include the core event subject, key time nodes, and main associated elements, and is finally returned to the user.

[0064] It uses a tree graph structure to store memories, taking keywords in structured language as nodes, using directed edges to represent relationships, and using edge weights to represent the strength of the relationships. It can support multi-hop association through graph traversal, simulating the human memory mechanism of "associating context with words".

[0065] Semantic structuring compression technology transforms unstructured text into structured memory containing multi-dimensional memory structures, thereby preserving the complete context with minimal storage space. Furthermore, through mechanisms such as multiple edge types, dynamic edge weights, and semantic deduplication, it achieves finer-grained memory associations and dynamic evolution.

[0066] In one or more embodiments of this specification, during the generation and updating of the tree graph structure, the following methods may also be used: Figure 3 As shown, the importance of each node is evaluated so that each node and its corresponding memory entry can be selectively sorted, selected, and processed during the tree update and retrieval processes.

[0067] Specifically, the user's expressive state is determined through the current unstructured natural language, and the degree of uniqueness is determined by comparing the similarity between the current structured language and the historical structured language corresponding to each node stored in the tree graph structure. Here, the user's expressive state refers to the user's own state when inputting the current unstructured natural language, which may include the user's emphasis and emotional intensity.

[0068] User emphasis refers to the degree of subjective importance a user attaches to keywords or topics when inputting unstructured natural language. This can be identified through speech stress (which can be detected in the case of voice input), repetition, special punctuation (such as exclamation marks and quotation marks), or explicit emphasis words (such as "especially," "very important," "the key point," etc.). Emotional intensity reflects the intensity of the emotions carried by the user when expressing themselves. This can be quantified by identifying the emotion category (such as excitement, anxiety, anger, joy, etc.) from the text using a sentiment analysis model and its confidence score.

[0069] Uniqueness is used to quantify the degree of difference between the current structured language and the historical structured language. It converts the current structured language and the historical structured language into vectors and calculates the similarity. The higher the similarity between the current structured language and the historical structured language, the lower the uniqueness.

[0070] Based on the user's expression status and uniqueness, an importance score is determined for the current structured language. Then, based on this importance score, each node corresponding to the current structured language in the tree diagram is updated. The weighted sum of the user's expression status and uniqueness yields the corresponding importance score, which evaluates the current structured language from both user status and uniqueness perspectives. If the current structured language contains multiple keywords corresponding to multiple nodes, a consistent importance score is added to each node; alternatively, independent importance scores are assigned to different keywords and added to their respective nodes.

[0071] Based on a preset time half-life parameter, the importance score of each node is dynamically decayed. The dynamic decay mechanism of this time half-life parameter has been described above and will not be repeated here. Through the time half-life parameter, the importance score can be dynamically adjusted. The older the node, the more its importance score will gradually decay over time, preventing old, low-value nodes from occupying high weights and priorities for extended periods. This ensures that the tree graph structure prioritizes recent, more valuable content for the user.

[0072] Based on importance scores, memory entries in the memory retrieval results are prioritized, and the memory entries stored in the tree graph structure are periodically cleaned; wherein, memory entries contain unstructured natural language and / or structured language corresponding to nodes.

[0073] The memory retrieval results contain the retrieved paths and related memory entries along those paths. As the number of nodes increases, the number of detected nodes and memory entries also increases. Excessive content may lead to information overload in the memory retrieval results, affecting the user's efficiency in obtaining core content. Therefore, before returning the memory retrieval results, the memory entries in the path can be prioritized according to the importance score of each node. Memory content associated with high-scoring nodes is retained first, while low-scoring entries are collapsed, summarized, or deferred.

[0074] Meanwhile, long-term storage of tree graph structures can lead to the accumulation of a large number of low-value redundant nodes, consuming storage resources and reducing retrieval efficiency. Therefore, periodic cleanup can be performed. When the total number of stored nodes exceeds a preset capacity threshold, nodes with importance scores below the cleanup threshold are selected and deleted along with their associated edges and attached memory entries. Only high-value memory content with higher importance scores is retained, thus maintaining the storage efficiency and retrieval performance of the tree graph structure.

[0075] Furthermore, as mentioned above, different starting nodes can be selected based on the chosen strategy for memory retrieval. Typically, the node with the highest similarity, exceeding a preset similarity threshold, can be selected as the starting node based on the similarity detection results.

[0076] However, in some special cases, there may be no nodes that exceed the preset similarity threshold. In this case, semantic parsing is performed on the current structured language, and a temporary starting node is created based on the semantic parsing results. Semantic parsing is performed on the current input structured language to extract its core semantic features, and a temporary starting node is created based on these features. This node is not persistently written to the tree graph structure; it is only used in the current retrieval process.

[0077] Based on the importance score of each node, select the nodes with the highest importance scores and establish edges between them and the starting node. Traverse all nodes in the tree graph structure, sort them in descending order according to their importance scores, select the nodes with the highest scores, calculate the semantic similarity between these nodes and the temporary starting node, and construct temporary edges based on the similarity values. These temporary edges provide the starting node of this retrieval with a usable graph topological context, enabling it to perform the "access neighbor nodes by edge weight" operation according to the normal retrieval process.

[0078] After execution, the temporary starting node and temporary edges are deleted at the end of this retrieval, without affecting the original topology and weight distribution of the persistent tree graph structure. It is only used to solve the problem of retrieval difficulties caused by the lack of direct semantic matching between user input and the existing tree graph structure.

[0079] In one or more embodiments of this specification, the memory recall and update scheme proposed above involves the configuration of some parameters, such as the similarity threshold and the weight determination threshold. Typically, these parameters are configured by developers based on experience; however, this process requires a lengthy debugging period.

[0080] Based on this Figure 5 This specification provides a schematic diagram of dynamically adjusting configurations in one or more embodiments, illustrating a hierarchical configuration model maintained in a configuration management center, comprising: Global general configuration layer: Basic parameters applicable to all business scenarios (e.g., number of keywords extracted, default half-life), serving as the configuration baseline for the entire system; Business-level personalized configuration layer: Differentiated settings for different business lines (e.g., search business, recommendation business), which can override global default values; Scenario-level fine-grained configuration layer: Fine-grained tuning parameters for specific business scenarios (e.g., real-time hot event response, long-tail query processing); Specific user group-level personalized configuration layer: Configuration offsets applied in batches based on user group characteristics (e.g., high-frequency active users, new users); User-level personalized overlay layer: Highest priority, allowing for the customization of independent parameters for individual users (e.g., extending a user's memory retention time), achieving a personalized memory strategy for each user.

[0081] The principle of inheritance and overriding is followed between different levels: the configuration of the upper level takes precedence over the lower level, and if it is not explicitly defined, the default value of the lower level is automatically inherited to ensure the integrity and flexibility of the configuration.

[0082] The following functions can be implemented in the configuration management center: The current status query allows maintenance personnel to query the complete combination of parameters currently in effect at any level. After merging and calculating by level, the final actual value is returned, which facilitates understanding the current system's memory setting benchmark.

[0083] The preview simulation allows newly submitted parameter groups to be loaded into a separate computation sandbox before official changes take effect. This simulates the write and deduplication process and calculates the actual effective values ​​based on priority rules configured in a hierarchical manner. After the simulation, the sandbox is immediately destroyed, without affecting the online operating environment.

[0084] Online hot updates and versioning are implemented. All configuration changes are managed through a version control center. Each modification generates a new configuration version number and records the change time, operator, and content. When an update is submitted, the system first verifies the validity of the parameters. If valid, it switches the configuration pointer in memory to the new version and records a precise effective timestamp. Simultaneously, the version control center continuously runs a configuration self-update and assurance mechanism, including health checks (e.g., monitoring changes in the system's error rate after configuration changes) and automatic rollback trigger conditions. If abnormal indicators are detected, the system can automatically revert to the most recent stable version. Furthermore, the version control center supports second-level activation without restarting any service processes. Operations personnel can also manually roll back at any time as needed, restoring the configuration to any historical version.

[0085] In this way, the configuration management center achieves refined control of differentiated strategies through a hierarchical configuration model that includes global, business, scenario, target audience, and user levels. Combined with a hot update and preview verification mechanism that takes effect in seconds, the parameter tuning cycle is compressed from hours to milliseconds without the need for a restart, reducing trial and error costs and online risks. At the same time, relying on version control and self-rollback protection mechanisms, the system automatically restores a stable version when an anomaly is detected, ensuring the continuous reliability of the system and laying an open foundation for subsequent automated parameter tuning evolution.

[0086] Based on the same idea, one or more embodiments of this specification also provide apparatus and devices corresponding to the above methods, such as... Figure 6 , Figure 7 As shown.

[0087] Figure 6 This is a schematic diagram of a memory recall and update device provided in one or more embodiments of this specification. The device includes: The structured conversion module 602 converts the current unstructured natural language into the current structured language through a preset multidimensional memory structure, and determines the tree diagram structure pre-constructed through the historical structured language. The memory retrieval and update module 604 performs memory retrieval of the current structured language based on the tree graph structure, and updates the tree graph structure based on the similarity between the current structured language and each node in the tree graph structure during the retrieval process. The memory retrieval module 606 restores the corresponding unstructured memory content based on the structured memory retrieval results.

[0088] Optionally, the structured conversion module 602 pre-determines the obtained historical structured language; Based on the historical structured language, corresponding nodes are generated for each dimension of the multidimensional memory structure. Based on the weights between nodes, generate edges carrying the weights, and add the relevant types between nodes to the edges; Construct the corresponding tree graph structure based on the nodes and edges.

[0089] Optionally, the structured conversion module 602 determines the temporal proximity between nodes based on the timestamps corresponding to each node, and determines the semantic similarity between nodes; The weights between nodes are determined based on the temporal proximity and semantic similarity. If there exists a node with a weight higher than the preset weight value, then an edge carrying that weight is generated for that node.

[0090] Optionally, the structured transformation module 602 dynamically decays the weights of each node based on a preset time half-life parameter; Based on the activation triggers of each node in unstructured natural language, the weight corresponding to that node is dynamically increased.

[0091] Optionally, the memory retrieval and update module 604 performs similarity detection between the current structured language and each node in the tree graph structure; Based on the similarity detection results, the corresponding starting node is determined; Based on the starting node, neighboring nodes are visited in descending order according to the edge weights; Based on the cumulative path weight corresponding to the access path, the corresponding memory retrieval results are returned.

[0092] Optionally, the memory retrieval and update module 604 performs intent understanding based on the current unstructured natural language; The weights of each side are dynamically adjusted based on the intent understanding results; Based on the starting node, neighboring nodes are visited in descending order according to the weights of the dynamically adjusted edges. During the visit, other nodes are filtered based on the intent understanding results and the relevant types carried on the edges.

[0093] Optionally, the memory retrieval and update module 604, based on the retrieval process, determines whether there exists a specified node in the tree graph structure that has a similarity to the current structured language higher than a preset similarity. If it exists, the tree graph structure is incrementally updated based on the specified node and the current structured language. If it does not exist, a new node is created based on the current structured language, and edges are created between the new node and other nodes.

[0094] Optionally, the memory retrieval module 606 determines the corresponding node path based on the structured memory retrieval results; Based on the node paths, the required unstructured natural language is reconstructed; Based on the associated nodes corresponding to the node paths, the required unstructured natural language is supplemented with associated memory, and a corresponding memory summary is generated.

[0095] Optionally, the device further includes an importance scoring module 608; The importance scoring module 608 determines the corresponding user expression state through the current unstructured natural language, and determines the corresponding degree of uniqueness by comparing the similarity between the current structured language and the historical structured language corresponding to each node stored in the tree graph structure. Based on the user's expression state and the degree of uniqueness, the importance score corresponding to the current structured language is determined, and based on the importance score, each node corresponding to the current structured language in the tree diagram structure is updated; Based on a preset time half-life parameter, the importance score corresponding to each node is dynamically decayed; Based on the importance score, the memory entries in the memory retrieval results are prioritized and sorted, and the memory entries stored in the tree graph structure are periodically cleaned; wherein, the memory entries contain unstructured natural language and / or structured language corresponding to the nodes.

[0096] Optionally, the memory retrieval and update module 608, based on the similarity detection results, takes the node with the highest similarity and exceeding a preset similarity threshold as the starting node; If there are no nodes with a similarity threshold exceeding the preset threshold, then semantic parsing is performed based on the current structured language, and a temporary starting node is created based on the semantic parsing results; and based on the importance score corresponding to each node, several nodes with the highest importance scores are selected and edges are established between them and the starting node.

[0097] Figure 7 This is a schematic diagram of a memory recall and update device provided in one or more embodiments of this specification. The device includes: 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, which, when executed by the at least one processor, enable the at least one processor to: For the current unstructured natural language, it is transformed into the current structured language through a pre-set multi-dimensional memory structure, and a tree diagram structure pre-constructed through historical structured language is determined. Based on the tree graph structure, a memory retrieval is performed on the current structured language, and the tree graph structure is updated based on the similarity between the current structured language and each node in the tree graph structure during the retrieval process. The structured memory retrieval results are used to restore and recall the corresponding unstructured memory content.

[0098] Based on the same idea, one or more embodiments of this specification also provide a non-volatile computer storage medium corresponding to the above method, storing computer-executable instructions, wherein the computer-executable instructions are configured as follows: For the current unstructured natural language, it is transformed into the current structured language through a pre-set multi-dimensional memory structure, and a tree diagram structure pre-constructed through historical structured language is determined. Based on the tree graph structure, a memory retrieval is performed on the current structured language, and the tree graph structure is updated based on the similarity between the current structured language and each node in the tree graph structure during the retrieval process. The structured memory retrieval results are used to restore and recall the corresponding unstructured memory content.

[0099] In the 1990s, improvements to a technology could be clearly distinguished as either hardware improvements (e.g., improvements to the circuit structure of diodes, transistors, switches, etc.) or software improvements (improvements to the methodology). However, with technological advancements, many methodological improvements today can be considered direct improvements to the hardware circuit structure. Designers almost always obtain the corresponding hardware circuit structure by programming the improved methodology into the hardware circuit. Therefore, it cannot be said that a methodological improvement cannot be implemented using hardware physical modules. For example, a Programmable Logic Device (PLD) (such as a Field Programmable Gate Array (FPGA)) is such an integrated circuit whose logic function is determined by the user programming the device. Designers can program and "integrate" a digital system onto a PLD themselves, without needing chip manufacturers to design and manufacture dedicated integrated circuit chips. Furthermore, nowadays, instead of manually manufacturing integrated circuit chips, this programming is mostly implemented using "logic compiler" software. Similar to the software compiler used in program development, the original code before compilation must also be written in a specific programming language, called a Hardware Description Language (HDL). There are many HDLs, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, and RHDL (Ruby Hardware Description Language). Currently, the most commonly used are VHDL (Very-High-Speed ​​Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should also understand that by simply performing some logic programming on the method flow using one of these hardware description languages ​​and programming it into an integrated circuit, the hardware circuit implementing the logical method flow can be easily obtained.

[0100] The controller can be implemented in any suitable manner. For example, it can take the form of a microprocessor or processor and a computer-readable medium storing computer-readable program code (e.g., software or firmware) executable by the (micro)processor, logic gates, switches, application-specific integrated circuits (ASICs), programmable logic controllers, and embedded microcontrollers. Examples of controllers include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicon Labs C8051F320. A memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art will also recognize that, in addition to implementing the controller in purely computer-readable program code form, the same functionality can be achieved by logically programming the method steps to make the controller take the form of logic gates, switches, application-specific integrated circuits, programmable logic controllers, and embedded microcontrollers. Therefore, such a controller can be considered a hardware component, and the means included therein for implementing various functions can also be considered as structures within the hardware component. Alternatively, the means for implementing various functions can be considered as both software modules implementing the method and structures within the hardware component.

[0101] The systems, devices, modules, or units described in the above embodiments can be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, a computer can be, for example, a personal computer, laptop computer, cellular phone, camera phone, smartphone, personal digital assistant, media player, navigation device, email device, game console, tablet computer, wearable device, or any combination of these devices.

[0102] For ease of description, the above devices are described in terms of function, divided into various units. Of course, in implementing this specification, the functions of each unit can be implemented in one or more software and / or hardware components.

[0103] Those skilled in the art will understand that the embodiments of this specification can be provided as methods, systems, or computer program products. Therefore, the embodiments of this specification can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the embodiments of this specification can take the form of a computer program product implemented on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0104] This specification is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this specification. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0105] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0106] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0107] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0108] Memory may include non-persistent storage in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.

[0109] Computer-readable media includes permanent, removable, and non-removable media that can store information using any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random-access memory (SRAM), dynamic random-access memory (DRAM), other types of random-access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic magnetic disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.

[0110] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0111] This specification can be described in the general context of computer-executable instructions that are executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc., that perform a specific task or implement a specific abstract data type. This specification can also be practiced in distributed computing environments, where tasks are performed by remote processing devices connected via a communication network. In distributed computing environments, program modules can reside in local and remote computer storage media, including storage devices.

[0112] The various embodiments in this specification are described in a progressive manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, the embodiments of apparatus, devices, and non-volatile computer storage media are basically similar to the method embodiments, so the descriptions are relatively simple; relevant parts can be referred to the descriptions of the method embodiments.

[0113] The foregoing has described specific embodiments of this specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims may be performed in a different order than that shown in the embodiments and may still achieve the desired result. Furthermore, the processes depicted in the drawings do not necessarily require the specific or sequential order shown to achieve the desired result. In some embodiments, multitasking and parallel processing are possible or may be advantageous.

[0114] The above description is merely one or more embodiments of this specification and is not intended to limit this specification. Various modifications and variations can be made to the one or more embodiments of this specification by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principle of one or more embodiments of this specification should be included within the scope of the claims of this specification.

Claims

1. A method for memory retrieval and updating, comprising: For the current unstructured natural language, it is transformed into the current structured language through a pre-set multi-dimensional memory structure, and a tree diagram structure pre-constructed through historical structured language is determined. Based on the tree graph structure, a memory retrieval is performed on the current structured language, and the tree graph structure is updated based on the similarity between the current structured language and each node in the tree graph structure during the retrieval process. The structured memory retrieval results are used to restore and recall the corresponding unstructured memory content.

2. The method of claim 1, wherein determining the tree diagram structure pre-constructed using a historical structured language, specifically includes: Predetermine the historical structured language already obtained; Based on the historical structured language, corresponding nodes are generated for each dimension of the multidimensional memory structure. Based on the weights between nodes, generate edges carrying the weights, and add the relevant types between nodes to the edges; Construct the corresponding tree graph structure based on the nodes and edges.

3. The method as described in claim 2, wherein generating edges carrying the weights based on the weights between nodes specifically includes: Based on the timestamps corresponding to each node, the temporal proximity between nodes is determined; And determine the semantic similarity between each node; The weights between nodes are determined based on the temporal proximity and semantic similarity. If there exists a node with a weight higher than the preset weight value, then an edge carrying that weight is generated for that node.

4. The method of claim 3, after generating edges carrying the weights based on the weights between nodes, the method further includes: The weights of each node are dynamically decayed based on a preset time half-life parameter. Based on the activation triggers of each node in unstructured natural language, the weight corresponding to that node is dynamically increased.

5. The method as described in claim 2, wherein memory retrieval of the current structured language is performed based on the tree graph structure, specifically including: Perform similarity detection between the current structured language and each node in the tree graph structure; Based on the similarity detection results, the corresponding starting node is determined; Based on the starting node, neighboring nodes are visited in descending order according to the edge weights; Based on the cumulative path weight corresponding to the access path, the corresponding memory retrieval results are returned.

6. The method as described in claim 5, wherein, based on the starting node, neighboring nodes are visited in descending order according to the edge weights, specifically including: Intent understanding based on current unstructured natural language; The weights of each side are dynamically adjusted based on the intent understanding results; Based on the starting node, neighboring nodes are visited in descending order according to the weights of the dynamically adjusted edges. During the visit, other nodes are filtered based on the intent understanding results and the relevant types carried on the edges.

7. The method as described in claim 5, wherein updating the tree graph structure based on the similarity between the current structured language and each node in the tree graph structure during the retrieval process specifically includes: Based on the retrieval process, it is determined whether there exists a specified node in the tree graph structure that has a similarity to the current structured language that is higher than a preset similarity. If it exists, the tree graph structure is incrementally updated based on the specified node and according to the current structured language; If it does not exist, a new node is created based on the current structured language, and edges are created between the new node and other nodes.

8. The method as described in claim 1, wherein the corresponding unstructured memory content is retrieved based on the structured memory retrieval results, specifically including: Based on the structured memory retrieval results, determine the corresponding node path; Based on the node paths, the required unstructured natural language is reconstructed; Based on the associated nodes corresponding to the node paths, the required unstructured natural language is supplemented with associated memory, and a corresponding memory summary is generated.

9. The method of claim 1, further comprising: The corresponding user expression state is determined by using the current unstructured natural language, and the degree of uniqueness is determined by comparing the similarity between the current structured language and the historical structured language corresponding to each node stored in the tree graph structure. Based on the user's expression state and the degree of uniqueness, the importance score corresponding to the current structured language is determined, and based on the importance score, each node corresponding to the current structured language in the tree diagram structure is updated; Based on a preset time half-life parameter, the importance score corresponding to each node is dynamically decayed; Based on the importance score, the memory entries in the memory retrieval results are prioritized and sorted, and the memory entries stored in the tree graph structure are periodically cleaned; wherein, the memory entries contain unstructured natural language and / or structured language corresponding to the nodes.

10. The method as described in claim 5, wherein determining the corresponding starting node based on the similarity detection result specifically includes: Based on the similarity detection results, the node with the highest similarity that exceeds the preset similarity threshold is selected as the starting node. If there are no nodes exceeding the preset similarity threshold, then semantic parsing is performed based on the current structured language, and a temporary starting node is created based on the semantic parsing results. Based on the importance score of each node, select several nodes with the highest importance score and establish edges with the starting node.

11. A memory retrieval and updating device, comprising: The structured transformation module transforms the current unstructured natural language into the current structured language through a preset multidimensional memory structure, and determines the tree diagram structure pre-constructed using historical structured language. The memory retrieval and update module performs memory retrieval of the current structured language based on the tree graph structure, and updates the tree graph structure based on the similarity between the current structured language and each node in the tree graph structure during the retrieval process. The memory retrieval module restores the corresponding unstructured memory content based on the structured memory retrieval results.

12. The apparatus of claim 11, wherein the structured conversion module predetermines the obtained historical structured language; Based on the historical structured language, corresponding nodes are generated for each dimension of the multidimensional memory structure. Based on the weights between nodes, generate edges carrying the weights, and add the relevant types between nodes to the edges; Construct the corresponding tree graph structure based on the nodes and edges.

13. The apparatus of claim 12, wherein the structured conversion module determines the temporal proximity between nodes based on the timestamps corresponding to each node; and determines the semantic similarity between nodes; The weights between nodes are determined based on the temporal proximity and semantic similarity. If there exists a node with a weight higher than the preset weight value, then an edge carrying that weight is generated for that node.

14. The apparatus of claim 13, wherein the structured transformation module dynamically decays the weights of each node based on a preset time half-life parameter; Based on the activation triggers of each node in unstructured natural language, the weight corresponding to that node is dynamically increased.

15. The apparatus of claim 12, wherein the memory retrieval and update module performs similarity detection between the current structured language and each node in the tree graph structure; Based on the similarity detection results, the corresponding starting node is determined; Based on the starting node, neighboring nodes are visited in descending order according to the edge weights; Based on the cumulative path weight corresponding to the access path, the corresponding memory retrieval results are returned.

16. The apparatus of claim 15, wherein the memory retrieval and update module performs intent understanding based on the current unstructured natural language; The weights of each side are dynamically adjusted based on the intent understanding results; Based on the starting node, neighboring nodes are visited in descending order according to the weights of the dynamically adjusted edges. During the visit, other nodes are filtered based on the intent understanding results and the relevant types carried on the edges.

17. The apparatus of claim 15, wherein the memory retrieval and update module, based on the retrieval process, determines whether there exists a specified node in the tree graph structure that has a similarity to the current structured language higher than a preset similarity. If it exists, the tree graph structure is incrementally updated based on the specified node and according to the current structured language; If it does not exist, a new node is created based on the current structured language, and edges are created between the new node and other nodes.

18. The apparatus of claim 11, wherein the memory retrieval module determines the corresponding node path based on the structured memory retrieval results; Based on the node paths, the required unstructured natural language is reconstructed; Based on the associated nodes corresponding to the node paths, the required unstructured natural language is supplemented with associated memory, and a corresponding memory summary is generated.

19. The apparatus of claim 11, further comprising an importance scoring module; The importance scoring module determines the corresponding user expression state through the current unstructured natural language, and determines the degree of uniqueness by comparing the similarity between the current structured language and the historical structured language corresponding to each node stored in the tree graph structure. Based on the user's expression state and the degree of uniqueness, the importance score corresponding to the current structured language is determined, and based on the importance score, each node corresponding to the current structured language in the tree diagram structure is updated; Based on a preset time half-life parameter, the importance score corresponding to each node is dynamically decayed; Based on the importance score, the memory entries in the memory retrieval results are prioritized and sorted, and the memory entries stored in the tree graph structure are periodically cleaned; wherein, the memory entries contain unstructured natural language and / or structured language corresponding to the nodes.

20. The apparatus of claim 15, wherein the memory retrieval and update module, based on the similarity detection results, takes the node with the highest similarity and exceeding a preset similarity threshold as the starting node; If there are no nodes exceeding the preset similarity threshold, then semantic parsing is performed based on the current structured language, and a temporary starting node is created based on the semantic parsing results. Based on the importance score of each node, select several nodes with the highest importance score and establish edges with the starting node.

21. A memory retrieval and update device, comprising: At least one processor; as well as, A memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to: For the current unstructured natural language, it is transformed into the current structured language through a pre-set multi-dimensional memory structure, and a tree diagram structure pre-constructed through historical structured language is determined. Based on the tree graph structure, a memory retrieval is performed on the current structured language, and the tree graph structure is updated based on the similarity between the current structured language and each node in the tree graph structure during the retrieval process. The structured memory retrieval results are used to restore and recall the corresponding unstructured memory content.