Frontend
Next.js 14, Tailwind, shadcn/ui, chat UI, upload panel, chart renderer, export trigger, workspace management.
System design
The architecture separates frontend UX, API routing, AI orchestration, data processing, storage, and model provider fallback so each layer can evolve independently.
Next.js 14, Tailwind, shadcn/ui, chat UI, upload panel, chart renderer, export trigger, workspace management.
FastAPI routes, JWT auth, rate limiting, request validation, upload endpoints, and SSE streaming.
LangChain and LlamaIndex for prompts, RAG, model routing, tool use, memory, and response shaping.
pandas, numpy, pdfplumber, PyMuPDF, sqlparse, pytesseract, OpenCV, Plotly, and export libraries.
Supabase PostgreSQL, object storage, file metadata, user workspaces, generated charts, and chat history.
Groq primary, OpenRouter fallback, Hugging Face inference, and Ollama/local enterprise mode.
Data flow
Tech stack
| Layer | Choice | Reason |
|---|---|---|
| Frontend | Next.js 14 | Fast React UI, SSR/SSG, and easy Vercel deployment. |
| Backend | FastAPI | Native Python data library integration and async APIs. |
| Charts | Plotly + Recharts | Interactive analytics with export-friendly chart output. |
| Vector DB | ChromaDB to Qdrant | Start light in MVP, migrate for production scale. |
| Database | Supabase PostgreSQL | Managed DB, RLS, auth, and instant APIs. |
| Export | WeasyPrint + python-docx + python-pptx | Server-side professional report generation. |