You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AI-powered digital twin API - Create your personal AI clone that learns and evolves with you.
🚀 Quick Start
Prerequisites
Node.js 18+
PostgreSQL 16+ with pgvector extension
Google Gemini API key
Installation
# Install dependencies
npm install
# Copy environment file
cp .env.example .env
# Edit .env with your configuration# Generate Prisma client
npm run db:generate
# Push database schema
npm run db:push
# Create vector indexes (run in pgAdmin or psql)# See: prisma/migrations/create_vector_indexes.sql# Start development server
npm run dev
🧠 Vector Search (pgvector)
This API uses pgvector for semantic memory search. After db:push, run the SQL in prisma/migrations/create_vector_indexes.sql to create HNSW indexes for fast similarity search.
-- In pgAdmin Query Tool
CREATE EXTENSION IF NOT EXISTS vector;
-- Then run create_vector_indexes.sql
npm start # Start production server
npm run dev # Start development server with hot reload
npm run db:generate # Generate Prisma client
npm run db:push # Push schema to database
npm run db:migrate # Run migrations
npm run db:studio # Open Prisma Studio
npm run lint # Run ESLint
npm run lint:fix # Fix ESLint errors
npm run format # Format code with Prettier