--- { "title": "RAG with MMR + PDF Upload 📄", "emoji": "📄", "colorFrom": "blue", "colorTo": "indigo", "sdk": "gradio", "sdk_version": "5.34.1", "app_file": "app.py", "pinned": false, "license": "apache-2.0", "tags": [ "RAG", "MMR", "PDF", "upload", "retrieval-augmented-generation", "NLP", "search", "document-qa" ], "description": "A Gradio application demonstrating Retrieval Augmented Generation (RAG) with Maximal Marginal Relevance (MMR) for improved document retrieval, allowing users to upload PDF files for querying. This app aims to provide more relevant and diverse answers by leveraging MMR during the retrieval process." } --- # 🧠 Retrieval-Augmented Generation with MMR and PDF Upload This Gradio demo allows you to: - Upload a PDF document - Chunk the content and embed using `MiniLM` - Store and search chunks using FAISS with **Maximal Marginal Relevance (MMR)** - Answer questions using `FLAN-T5` > Powered by LangChain + HuggingFace + Gradio + FAISS