File size: 885 Bytes
41a1629
74d24f4
 
e7e48d3
74d24f4
41a1629
7e08a16
41a1629
 
 
 
74d24f4
c7a09c4
74d24f4
 
41a1629
74d24f4
 
 
e7e48d3
74d24f4
e7e48d3
74d24f4
 
7e08a16
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
---
title: PDF Q&A Tutor (Groq Powered)
emoji: ๐Ÿ“˜
colorFrom: indigo
colorTo: blue
sdk: gradio
sdk_version: 5.44.1
app_file: app.py
pinned: false
---

# ๐Ÿ“˜ PDF Q&A Tutor

Upload a PDF research paper and ask questions about it!  
This Space uses:

- **SentenceTransformers** for embeddings
- **FAISS** for vector search
- **Groq API** for fast, low-latency LLM inference (e.g. `qwen/qwen3-32b` or `llama3-70b`)

## ๐Ÿ”‘ Setup

1. Go to your Spaceโ€™s **Settings โ†’ Repository secrets**.
2. Add your Groq API key as:
GROQ_API_KEY = your_api_key_here

## ๐Ÿš€ Usage

1. Upload a PDF paper.
2. Ask questions in the chatbox.
3. The system retrieves relevant chunks from the PDF and asks Groqโ€™s LLM to explain in simple terms.

## ๐Ÿงฉ Models
- Embeddings: `intfloat/e5-base-v2`
- Vector DB: FAISS
- LLM (via Groq API): `qwen/qwen3-32b` (default, can be swapped for `llama3-70b`)

---