I’ve recently been considering an architecture for persistent conversational memory using existing LLM APIs. More info can be found here.
The proposed system uses three LLM operations for each conversational exchange:
- Generate keyword and phrase searches based on recent conversational context.
- Generate a normal response using recent conversation history and retrieved historical memories.
- Analyze the latest exchange to identify new information that should be stored or used to update existing memories.
The persistent memory subsystem itself would initially use conventional database and text-search technology.
One aspect I’m particularly interested in is explicitly communicating unsuccessful memory searches to the LLM.
For example, if an AI introduces a concept during a software development discussion and subsequently treats that concept as an established project feature, a historical memory search might reveal that no matching information exists in earlier conversations.
Rather than silently discarding that search result, the system would include a statement indicating that no relevant historical information was found. The LLM could then use its existing reasoning capabilities to recognize the possibility that the concept is new or that an assumption has been made.
I’m aware that many components of this architecture already exist in various memory and retrieval systems. However, I’m curious whether explicitly reporting unsuccessful retrieval has been investigated as a means of improving conversational continuity and reducing unsupported assumptions about previous discussions.
I’ve written a more detailed architectural proposal but have not yet implemented or tested it.
I’d appreciate feedback from anyone working in this area, particularly references to existing research, potential architectural shortcomings, and suggestions for evaluating the concept experimentally.
Again the larger idea is documented in this PDF file:
https://www.rectorsquid.com/Persistent%20Conversational%20Memory%20for%20Large%20Language%20Models.pdf
