- Message
- Summarysummarise the message and recent chat in the first person
- Recallfind the three nearest embeddings in Pinecone
- ReplyGPT-3.5 returns JSON with the recalled messages in the context
- RememberGPT-3.5 decides whether to add part of the summary to the memory as an embedding
MemoryGPT is an initial setup for building persistent agentic systems using vector embeddings in the Pinecone web platform. It works by summarising the recent conversation in the first person on every message, retrieving the three memories nearest that summary, and attaching them to the prompt. The model replies in JSON, as an internal monologue, a self-critique and one command out of send, recall, wait, none and leave.
I started this in April as a command-line prototype with FastAPI, and it goes into a Discord client for conversations. I’ve been iterating on it since then.