How kamalesh0081/agentic-rag-research-paper-analyzer works
This is a research-paper information extraction application: a user submits a PDF, and the system returns structured fields for datasets, evaluation metrics, and methods. The documented workflow is PDF text extraction, chunking, embedding/storage, independent multi-query retrieval and reranking, then local LLM extraction. The sampled pipeline and API show those core calls; README documents Gradio and Ollama capabilities, but the Gradio-to-backend wiring is not shown, so that connection is marked unverified.
Main entry points: pipeline.py Pipeline orchestrator · routes.py Analyze API · retrieval.py Multi-query retrieval · vectordb.py ChromaDB storage
Components 14
User interface
- Gradio interface
frontend/gradio_ui.py - Analyze API
app/api/routes.py
Document ingestion
- Pipeline orchestrator
app/services/pipeline.py - PDF text extraction
app/utils/pdf_loader.py - Text chunking
app/utils/chunking.py
Retrieval and ranking
- Embedding models
app/core/embeddings.py - ChromaDB storage
app/core/vectordb.py - Multi-query retrieval
app/services/retrieval.py - Query-wise reranking
app/services/reranker.py
Structured extraction
- JSON extraction
app/services/extractor.py - Extraction response schema
app/models/schema.py
Other components
- Paper submitter
- Ollama LLM
- Debug logging
app/utils/logger.py
Connections 17
- Paper submitter → Gradio interface: uploads PDF
README.md - Gradio interface → Analyze API: submits analysis
- Analyze API → Pipeline orchestrator: runs pipeline
app/api/routes.py - Analyze API → Extraction response schema: validates response
app/api/routes.py - Pipeline orchestrator → PDF text extraction: loads PDF
app/services/pipeline.py - Pipeline orchestrator → Text chunking: creates chunks
app/services/pipeline.py - Pipeline orchestrator → ChromaDB storage: stores chunks
app/services/pipeline.py - ChromaDB storage → Embedding models: encodes chunks
app/core/vectordb.py - Pipeline orchestrator → Multi-query retrieval: retrieves context
app/services/pipeline.py - Multi-query retrieval → ChromaDB storage: queries chunks
app/services/retrieval.py - Multi-query retrieval → Embedding models: encodes queries
app/services/retrieval.py - Pipeline orchestrator → Query-wise reranking: reranks context
app/services/pipeline.py - Query-wise reranking → Embedding models: scores query chunks
app/services/reranker.py - Pipeline orchestrator → JSON extraction: extracts fields
app/services/pipeline.py - JSON extraction → Ollama LLM: invokes model
app/services/extractor.py - Pipeline orchestrator → Debug logging: clears log
app/services/pipeline.py - Analyze API → Pipeline orchestrator: returns result
app/api/routes.py