A terminal-based AI assistant that retrieves information from research papers (PDFs) and answers questions using embeddings and a large language model (LLM).
- Semantic search with embeddings
- Context-aware responses
- Chat history memory
- Clean terminal UI
- PDF parsing using GROBID (Dockerized)
git clone https://github.com/hjeesum/ResearchPaperSystem.git
cd ResearchPaperSystem
pip install -r requirements.txt
This project uses the Cohere API.
bash:
touch .env
windows terminal:
New-Item .env
COHERE_API_KEY=your_api_key_here
Note:
.env
__pycache__/
This project uses GROBID (via Docker) to extract structured text from PDFs.
Download and install Docker from: https://www.docker.com/
docker pull grobid/grobid:0.8.2
docker run --rm -p 8070:8070 grobid/grobid:0.8.2
GROBID will now be runnign at http://localhost:8070
- User provides a PDF file
- GROBID (Docker container) extracts structured text
- Text is chunked and embedded using Cohere
- Embeddings are stored and queried for semantic similarity
- Relevant chunks are passed to the LLM
- Context-aware answer is generated in the terminal
should be the path to your research paper (PDF).
python main.py <pdfpath>