Projects

MemoryGPT

Started
8 April 2023
One turn of the memory loop.
  1. Message
  2. Summarysummarise the message and recent chat in the first person
  3. Recallfind the three nearest embeddings in Pinecone
  4. ReplyGPT-3.5 returns JSON with the recalled messages in the context
  5. 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.

Linked