InsightGen is a Retrieval-Augmented Generation (RAG) based research paper summarization system that enables users to upload research papers and receive accurate, context-aware summaries. Instead of relying solely on the language model's internal knowledge, the system retrieves the most relevant sections from the uploaded document and uses them to generate responses. This approach significantly reduces hallucinations while improving factual accuracy and relevance.
The project is designed for students, researchers, and professionals who need to quickly understand lengthy academic papers. Along with summarization, it can answer questions about the uploaded paper by retrieving only the most relevant information before generating a response.
- 📄 Upload research papers in PDF format.
- 🔍 Retrieval-Augmented Generation (RAG) pipeline for accurate context retrieval.
- 🤖 AI-generated summaries based on document content.
- ❓ Interactive question-answering using retrieved document chunks.
- ⚡ Fast semantic search using vector embeddings.
- 🛡️ Built-in safety evaluation to assess robustness against prompt injection and unsafe inputs.
- 📊 Evaluation script for measuring retrieval and summarization performance.
- Python for backend development.
- Large Language Models (LLMs) for summarization and question answering.
- Vector Database / Embedding Model for semantic document retrieval.
- RAG Pipeline to combine retrieval with AI-generated responses.
Clone the repository and install the required dependencies:
pip install -r requirements.txtStart the application using:
python app.pyThis launches the RAG-based research paper summarization system, allowing users to upload research papers, generate summaries, and ask context-aware questions.
To evaluate the performance of the retrieval and summarization pipeline, run:
python evaluate.pyThe evaluation script can be used to analyze metrics such as retrieval quality, answer relevance, summarization accuracy, and overall system effectiveness.
To verify the application's robustness against malicious prompts and unsafe inputs, execute:
python safety.pyThe safety testing module checks how well the system handles prompt injection attempts, harmful queries, invalid inputs, and other security-related edge cases to ensure reliable and trustworthy responses.
- Multi-document retrieval and comparison.
- Citation-aware answer generation.
- Support for additional document formats such as DOCX and TXT.
- Improved evaluation metrics and benchmarking.
- Enhanced user interface and deployment options.
This project is intended for educational and research purposes.