Production-ready RAG chatbot SaaS starter with native Arabic / RTL support, multi-document chat, and streaming responses.
- ⚡ Streaming Responses — Vercel AI SDK
streamText()with OpenAI provider. - 🌐 Arabic + RTL Support (افتراضي) — ميزة تنافسية في السوق العربي.
- 📚 Multi-Document RAG — Upload documents and select which ones to query.
- 🗂️ Document Management UI — Sidebar with upload/select/delete actions.
- 💾 Chat History Persistence — LocalStorage (survives page refreshes).
- 📱 Mobile Responsive — Beautiful drawer for document panels on small screens.
- 🎨 Modern UI — Powered by shadcn/ui + TailwindCSS + Dark/Light themes.
- 🔍 Local TF-IDF Retrieval — Works offline, no external API key needed for RAG retrieval.
- 🤖 Provider-Agnostic — Seamlessly switch between OpenAI and Anthropic via Vercel AI SDK.
# 1. Clone the repository
git clone https://github.com/faresrafat3/rag-saas-starter.git
cd rag-saas-starter
# 2. Install dependencies
npm install
# 3. Configure Environment Variables
cp .env.example .env.local
# Add your OPENAI_API_KEY to .env.local
# 4. Start the development server
npm run devVisit http://localhost:3000 to interact with your local instance.