Skip to content

Repository files navigation

💬 RAG SaaS Starter

Next.js 16 TypeScript Vercel AI SDK Tailwind CSS License: MIT

Production-ready RAG chatbot SaaS starter with native Arabic / RTL support, multi-document chat, and streaming responses.


✨ Features

  • 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.

🚀 Getting Started

# 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 dev

Visit http://localhost:3000 to interact with your local instance.

About

Production-ready RAG chatbot SaaS starter with Arabic support, multi-document chat, and streaming responses. Built with Next.js 16 + Vercel AI SDK pattern + shadcn/ui.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages