A modern RAG (Retrieval-Augmented Generation) system built with React frontend and Python backend, deployed on Vercel.
- Document Upload: Upload PDF, TXT, and DOCX files with metadata
- Semantic Search: Advanced vector search using Pinecone and BAAI embeddings
- AI-Powered Answers: Generate contextual answers using OpenAI or Groq
- Modern UI: Clean React interface with real-time search
- Serverless: Fully deployed on Vercel with Python serverless functions
- React 19 with Vite
- Modern CSS with responsive design
- PDF.js for document processing
- Python serverless functions (Vercel)
- Pinecone vector database
- Hugging Face Inference API for embeddings
- OpenAI/Groq for text generation
-
Clone the repository
git clone <repository-url> cd RAG-Play
-
Set up environment variables Create a
.envfile in the root directory:PINECONE_API_KEY=your_pinecone_key HUGGINGFACE_API_KEY=your_hf_key OPENAI_API_KEY=your_openai_key -
Install dependencies
npm install
-
Run development server
npm run dev
-
Deploy to Vercel
vercel --prod
/api/search- Document search and answer generation/api/upload- Document upload and processing/api/docs- List all uploaded documents
See api/README.md for detailed environment variable configuration.
MIT License