✨ Overview
Atlas Enterprise AI is a multi-tenant RAG (Retrieval-Augmented Generation) platform that lets teams upload private documents and chat with an AI assistant that answers only from their evidence — with citations, plan limits, billing, and human-in-the-loop approvals.
It is built as a monorepo:
Area
Stack
frontend/
Next.js · React · Bun · shadcn/ui
backend/
FastAPI · SQLModel · LangChain · Python worker
docs/
Architecture, env, and API testing guides
🎯 The Problem
Enterprise teams drown in PDFs, policies, and internal notes — but generic chatbots:
- ❌ Invent answers when documents are missing
- ❌ Mix data across customers / workspaces
- ❌ Skip citations and audit trails
- ❌ Have no plan limits, billing, or approval gates
Atlas solves this by grounding every answer in workspace documents, enforcing tenancy on the server, and pairing chat with real product controls (members, uploads, Stripe Pro, HITL approvals).
🚀 Features
- 📄 Document ingestion — PDF, TXT, MD, DOCX, HTML → chunk → embed → Pinecone
- 💬 Grounded chat — answers with document citations
- 🏢 Workspaces & roles — owner / member, invites, memberships
- 🔐 Supabase Auth — JWT verified on every API call
- 💳 Stripe billing — Free vs Pro entitlements via webhooks
- ✅ HITL approvals — sensitive tools pause for owner decision
- 🌙 Dark / light UI — modern settings, documents, members, chat
🧩 Tech Stack
Layer
Technologies
Frontend
Next.js · React · TypeScript · Tailwind · Bun · shadcn/ui
Backend
FastAPI · Python 3.12+ · SQLModel · uv
Data
Supabase Auth · Postgres · Storage
AI / RAG
LangChain · OpenRouter · Pinecone
Billing
Stripe Checkout + webhooks
Ops
LangSmith · Sentry · Biome
User
└─ Next.js + Supabase Auth
├─ Supabase Storage (private uploads)
└─ FastAPI (JWT Bearer)
├─ Supabase PostgreSQL
├─ Ingestion worker
├─ OpenRouter (chat + embeddings)
├─ Pinecone (ws_{workspace_id})
├─ LangChain RAG + guardrails
└─ Stripe webhooks → entitlements




