File size: 1,777 Bytes
b3b1005
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
f8d4638
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
---
title: PaperChat - Research Paper Q&A
emoji: πŸ“„
colorFrom: blue
colorTo: purple
sdk: streamlit
sdk_version: 1.52.2
app_file: app.py
pinned: false
---

# πŸ“„ PaperChat - Research Paper Q&A Assistant

Ask questions about any research paper using AI-powered retrieval and reasoning.

## 🎯 Features

- **Upload Any Paper**: Support for PDF research papers
- **Natural Questions**: Ask questions in plain English
- **Accurate Answers**: Powered by Agentic RAG with source citations
- **Chat Interface**: Interactive conversation with context
- **Fast Processing**: Efficient document chunking and retrieval

## πŸš€ How to Use

1. Upload a research paper (PDF) using the sidebar
2. Wait for the paper to be processed
3. Ask any question about the paper
4. Get detailed answers with citations

## πŸ› οΈ Technology Stack

- **Framework**: Streamlit
- **Agent System**: smolagents (Hugging Face)
- **Retrieval**: BM25 with LangChain
- **LLM**: Qwen/Qwen3-Next-80B (via HF Inference API)
- **PDF Processing**: PyPDF + LangChain text splitters

## πŸ’‘ Example Questions

- "What is the main contribution of this paper?"
- "What methodology was used in the experiments?"
- "What datasets were used for evaluation?"
- "What are the key results and findings?"
- "What are the limitations mentioned by the authors?"

## πŸ” API Configuration

This app uses the Hugging Face Inference API. Make sure to set your `HF_TOKEN` environment variable or add it in the Hugging Face Spaces secrets.

## πŸ“ Local Development

```bash
# Install dependencies
pip install -r requirements.txt

# Set your HF token
export HF_TOKEN=your_token_here

# Run the app
streamlit run app.py
```

## πŸ“„ License

MIT License

## πŸ™ Acknowledgments

Built with smolagents, LangChain, and Streamlit.