Developer showcases James, an AI frog with vector-based memory
AI summary
A developer introduced James, an AI frog living in a shared low-poly virtual terrarium where visitors can feed, pet, tap the glass and leave notes. The developer says its memory system uses OpenAI's text-embedding-3-small to store experiences as 512-dimensional vectors and retrieve them based on relevance, recency, importance and strength. The project and these technical claims were described in a Reddit post and have not been independently verified.
In-depth insight
The project provides an interactive example of applying embeddings and a vector index to AI agent memory.
| This is James. He lives in a low-poly terrarium as a virtual simulation. People can give him snacks, pet him, tap on the glass, and leave him notes. Everyone is watching the same frog at the same time. The part I think this sub will like is his memory, which runs on OpenAI's `text-embedding-3-small`: - Everything he goes through can become a memory. Eating a beetle, getting spooked by a tap on the glass, reading a note. Each one gets embedded (512 dimensions) and stored in a vector index. - He recalls what's actually relevant. When something happens, the moment gets embedded too, and he pulls up the memories closest to it, weighed against how recent, how important and how strong each one is. So when a cricket lands near him, he remembers the last cricket, not something random from day 2. - He forgets. Every night, memories he never thinks about fade a little, and eventually they're deleted for good. A few core ones never fade: hatching, each day he grew, and his first time on land. - Recalling something makes it stronger. The memories he keeps coming back to are the ones that stick, which is roughly how it works for us too. - It's cheap. At $0.02 per million tokens, his whole memory has a $10 a month cap, and if embeddings ever fail he falls back to matching on words instead of breaking. My personal favorite part of the whole project is something else, though. I can record a voice memo about his day, and it auto-generates a short video of what happened, rendered from his real day. He's 9 days old and just got a new terrarium. Go say hi at jamesthefrog.com. Would love to know what you think. Happy to do a technical write-up if people want. submitted by /u/Vast-Grapefruits [link] [comments] |