How maria-chaudhary/researchpilot-ai works
ResearchPilot AI lets users upload a PDF, extract page-aware text, split it into overlapping chunks, index embeddings, and ask questions answered from retrieved passages with page citations and source text. A separate evaluation workflow checks retrieval page matches and answer citation matches against sample questions. The sampled code shows the Gradio wiring, FAISS/embedding calls, and Groq request. Other than the README (empty), no product capabilities are documented; edges for unsampled implementation are omitted.
Main entry points: run_evaluation.py Evaluation workflow · web_app.py Gradio app · answer_service.py Grounded answers · vector_store.py FAISS index
Components 11
User interface
- Gradio app
web_app.py
Document processing
- PDF extraction
app/ingestion/pdf_parser.py - Text chunking
app/ingestion/chunking.py - Text embeddings
app/retrieval/embeddings.py - FAISS index
app/retrieval/vector_store.py
Question answering
- Grounded answers
app/generation/answer_service.py
Evaluation
- Evaluation workflow
run_evaluation.py - Evaluation metrics
app/evaluation/metrics.py - Sample questions
data/sample_questions.json
Other components
- PDF user
- Groq API
Connections 14
- PDF user → Gradio app: uploads and asks
web_app.py - Gradio app → PDF extraction: extracts PDF
web_app.py - Gradio app → Text chunking: chunks pages
web_app.py - Gradio app → FAISS index: indexes chunks
web_app.py - FAISS index → Text embeddings: embeds text
app/retrieval/vector_store.py - Gradio app → Grounded answers: requests answer
web_app.py - Grounded answers → FAISS index: searches passages
app/generation/answer_service.py - Grounded answers → Groq API: requests completion
app/generation/answer_service.py - Evaluation workflow → Sample questions: loads questions
run_evaluation.py - Evaluation workflow → PDF extraction: extracts PDF
run_evaluation.py - Evaluation workflow → Text chunking: chunks pages
run_evaluation.py - Evaluation workflow → FAISS index: indexes and searches
run_evaluation.py - Evaluation workflow → Grounded answers: generates answers
run_evaluation.py - Evaluation workflow → Evaluation metrics: checks results
run_evaluation.py