A newer version of the Gradio SDK is available:
6.2.0
metadata
title: PaperMate
emoji: π
colorFrom: blue
colorTo: purple
sdk: gradio
sdk_version: 5.49.1
app_file: app.py
pinned: false
license: mit
PaperMate - Your Personal Assistant for Exploring arXiv Papers
PaperMate helps you explore and understand research papers from arXiv using RAG (Retrieval-Augmented Generation) and advanced reranking.
Features
- π Semantic search across arXiv papers
- π§ LLM-powered question answering
- π Advanced reranking for better results
- π¬ Interactive Gradio interface
How to Use
- Enter your question about research papers in the text box
- Click "Ask" to get an answer based on the arXiv knowledge base
- The system will retrieve relevant papers, rerank them, and generate a comprehensive answer
Example Questions
- "What is the NEMO paper all about?"
- "Do you know something about Indian system to help Indians better understand each other?"
- "What are the latest developments in transformer architectures?"
Configuration
This Space uses the Hugging Face Inference API. You'll need to set the following secret:
HUGGINGFACE_TOKEN: Your Hugging Face API token (get one at https://huggingface.co/settings/tokens)
The default model is mistralai/Mistral-7B-Instruct-v0.2, but you can change it in the settings.
Local Development
- Clone the repository
- Install dependencies:
pip install -r requirements.txt - Download the vector store from here
- Place the
vector_storedirectory in the root - Set your
HUGGINGFACE_TOKENenvironment variable - Run:
python app.py
Tech Stack
- Framework: LangChain
- UI: Gradio
- Vector Store: FAISS
- Embeddings: Sentence Transformers
- LLM: Hugging Face Inference API
- Reranking: Custom reranker with BM25
License
MIT