# MemoryGPT

> An initial setup for building persistent agentic systems, keeping what it learns as single sentences in Pinecone and retrieving the nearest ones into every prompt.

- Kind: Project
- Started: 8 April 2023
- Linked: [Memory benchmark](https://jaecheesbrough.com/projects/memory-benchmark.md)
- By: Jae Cheesbrough
- Web page: https://jaecheesbrough.com/projects/memorygpt

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.
