gitmyhub

Second-Me

Python ★ 16k updated 8mo ago

Train your AI self, amplify you, bridge the world

Second Me is an open-source app that lets you train a personal AI on your own memories and data, a private assistant that learns your perspective and can represent you in conversations, running entirely on your own machine.

PythonDockerMLXsetup: moderatecomplexity 3/5

Second Me is an open-source prototype that lets you train your own personal AI — an "AI self" that captures who you are and represents you in different contexts. The project frames itself as a response to centralized AI from large companies: instead of one massive model that everyone shares, your Second Me is trained on your own memories, runs on your own machine, and is meant to amplify rather than replace you.

You feed it information about yourself and it builds an internal model of your identity using two ideas described in the project's research papers: Hierarchical Memory Modeling (a way of organizing memories at different levels of detail) and a process called the Me-Alignment Algorithm, which tries to make the AI's responses match your perspective. Once trained, the AI self can stay local for full privacy, or join a wider Second Me network where, with your permission, other people or apps can interact with it as a digital stand-in for you. Two example use cases ship with it: Roleplay, where your AI takes on different personas, and AI Space, where multiple Second Mes collaborate on ideas. The size of model you can run depends on how much memory your computer has, and Mac users with Apple M-series chips can use a library called MLX to run larger models.

You would use Second Me if you want an AI assistant that reflects your own views and history rather than a generic chatbot, and if you care about keeping that data on your own hardware. It is a Python project; you can get started by cloning the repository and running a single Docker command, then opening a web interface in your browser. The full README is longer than what was provided.

Where it fits