PaperBrain
1.0.0
PaperBrain is an intelligent research paper Q&A system that combines vector search and large language models to provide context-aware answers to research-related questions. It processes academic papers, understands their content, and generates structured, informative responses with proper citations and context.





# System requirements
- Python 3.9+
- Docker
- 4GB+ RAM for LLM operations
- Disk space for paper storagegit clone https://github.com/ansh-info/PaperBrain.git
cd PaperBrain# Using conda
conda create --name PaperBrain python=3.11
conda activate PaperBrain
# Using venv
python -m venv env
source env/bin/activate # On Windows: .envScriptsactivatepip install -r requirements.txtdocker-compose up -d# If you want other models
docker exec ollama ollama pull llama3.2:1b
docker exec -it ollama ollama pull mistral
docker exec -it ollama ollama pull nomic-embed-textpython src/vector.pymarkdowns/ directorypython src/llmquery.py #Run src/query.py to query qdrant database(without llm)quit or q: Exit the programanalytics: Display system usage statisticsclear: Reset paper historyhistory: View recent questions and responses> What are the main approaches for discovering governing equations from data?
The system will provide:
1. Main Answer: Comprehensive summary
2. Key Points: Important findings
3. Paper Citations: Relevant sources
4. Limitations: Gaps in current knowledge
5. Relevance Scores: Why papers were selected

research-lens/
├── docker-compose.yml
├── requirements.txt
├── README.md
├── vector.py # Paper ingestion and processing
├── llmquery.py # Main Q&A interface
├── query.py # To query qdrant databse without llm
├── markdowns/ # Paper storage directory
└── processed_papers.json # Paper tracking database
Environment variables for system configuration:
QDRANT_HOST=localhost # Qdrant server host
QDRANT_PORT=6333 # Qdrant server port
OLLAMA_HOST=localhost # Ollama server host
OLLAMA_PORT=11434 # Ollama server portPaper Ingestion:
Query Processing:
Response Generation:
Contributions are welcome! Please:
git checkout -b feature/amazing-feature)git commit -m 'Add amazing feature')git push origin feature/amazing-feature)This project is licensed under the MIT License - see the LICENSE file for details.
If you use this project in your research, please cite:
@software{PaperBrain_2024,
author = {Ansh Kumar and Apoorva Gupta},
title = {PaperBrain: Intelligent Research Paper Q&A System},
year = {2024},
url = {https://github.com/ansh-info/PaperBrain}
}