CoolFace
Apppublic

Abdu2005/research-paper-assistant

sourceHugging Faceupdated 5mo agoView on Hugging Face
0likes
App README

๐Ÿ“– AI Research Paper Assistant

An agentic RAG system that lets you upload research papers and ask questions with cited answers.

Features

  • โ€”Multi-document support โ€” Upload multiple PDFs and ask cross-paper questions
  • โ€”Cited answers โ€” Every answer shows source chunks with page numbers
  • โ€”ArXiv web search โ€” Autonomous agent finds related papers on the web
  • โ€”LLM Router โ€” Intelligently routes queries to RAG or web search
  • โ€”RAGAS Evaluation โ€” Built-in faithfulness scoring (0.63 on Transformer paper)
  • โ€”Filter by Paper โ€” Ask questions about specific papers or all at once

Tech Stack

ComponentTechnology
LLMGroq LLaMA 3.1 8B
EmbeddingsHuggingFace all-MiniLM-L6-v2
Vector StoreFAISS
FrameworkLangChain + Streamlit
Web SearchArXiv API
EvaluationRAGAS

How to Use

  1. 1.Upload one or more research paper PDFs
  2. 2.Ask any question about the paper(s)
  3. 3.Enable Web Search Agent to find related papers on ArXiv
  4. 4.Use Filter by Paper to ask about specific papers
  5. 5.Click Run Eval to see RAGAS faithfulness score

Local Setup

bash
git clone https://huggingface.co/spaces/YOUR_USERNAME/research-assistant
cd research-assistant
pip install -r requirements.txt

Create .env file:

Run:

bash
streamlit run app.py

Example Questions

  • โ€”"What is the main contribution of this paper?"
  • โ€”"Compare the architecture of both papers"
  • โ€”"What does BERT say about pretraining?"
  • โ€”"Find related papers on transformer architecture"

Evaluation Results

Tested on "Attention is All You Need" (Transformer paper):

  • โ€”RAGAS Faithfulness: 0.63

Built with LangChain + Groq + FAISS + Streamlit