File size: 503 Bytes
8d30926
 
 
 
 
 
5d5712c
8d30926
 
 
 
64801f1
8d30926
698a252
8d30926
698a252
8d30926
 
 
 
 
5d5712c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
---
title: RAG with MMR + PDF Upload
emoji: πŸ“„
colorFrom: blue
colorTo: indigo
sdk: gradio
sdk_version: 5.29.0
app_file: app.py
pinned: false
license: apache-2.0
---

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