a16z-infra/companion-app — reverse-engineered prompt
Reverse engineered prompt
Build me a web app where people can sign in and chat with AI companions that have their own personalities, backstories, and some memory of the conversation. I want a simple browser chat experience with a few sample characters already included, and I want it to pull from each character’s written background so replies feel more personal and consistent.
Use the existing idea of storing character knowledge in text files, generating embeddings, and using a vector database for relevant memories or facts. Also keep recent conversation history so the companion doesn’t forget what was just said. It should support OpenAI, and if possible also Replicate or similar hosted models. Include environment setup for the needed API keys.
Please make it easy to add or edit companions by changing their profile and backstory. If the SMS texting part is already supported, wire it up too, but keep the main focus on the signed in web chat. Look up current docs online if you need to.
Want more depth? Deep Reverse