afang.dev.

Philosophers Chat

Cover Image for Philosophers Chat

PhilChat.co is an AI-as-a-Service character creation and chat platform which uses OpenAI’s Llama 2 model under the hood. Written in React (JavaScript/TypeScript), the app uses Next.js 13 for dynamic, client-side routing, and integrations with Clerk and Stripe to handle auth, subscriptions and payments.

AI characters are stored in a MySQL database, and have long-term memory retention thanks to embeddings stored in a Pinecone vector database. A supplementary Redis realtime database gives us fast caching capabilities that allow conversations to unfold seamlessly.