AI companion stack for personalized chatbots
Top 8.9% on sourcepulse
This project provides a lightweight stack for creating and hosting AI companions with memory, targeting developers interested in building chatbots. It enables users to define companion personalities and backstories, leveraging a vector database for enhanced conversational depth and memory.
How It Works
The stack utilizes Next.js for app logic, Clerk for authentication, and Langchain.js for LLM orchestration. It supports OpenAI and Vicuna models, with Pinecone or Supabase pgvector for vector storage. Conversation history is managed via Upstash, and Twilio is integrated for SMS interaction. Character data, including preamble, seed chat, and backstory, is stored in .txt
files and embedded for retrieval.
Quick Start & Requirements
npm install
npm run generate-embeddings-pinecone
or npm run generate-embeddings-supabase
npm run dev
Highlighted Details
Maintenance & Community
Licensing & Compatibility
Limitations & Caveats
The UI currently loses chat history, Vicuna models have a cold start delay, and error reporting is minimal, especially in deployed environments. Upstash message history requires manual clearing.
1 year ago
1 week