| --- |
| 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. |