How anshikabangwal/rag-based works
This is a Streamlit study assistant: students upload PDFs, which the app extracts page text from, chunks and indexes, then uses retrieval-augmented generation to answer questions with source pages. The README also describes planned PYQ extraction, topic classification, frequency analysis, and a preparation dashboard; the corresponding files are empty in the excerpts, so these appear as planned components without asserted runtime connections. The main workflow is evidenced by app.py and core modules; unsampled feature behavior is not inferred.
Main entry points: app.py Streamlit app · config.py Runtime settings · rag_chain.py RAG answering · vector_store.py Chroma index
Components 13
Student experience
- Streamlit app
app.py
Document ingestion
- PDF extraction
core/pdf_processor.py - Page chunking
core/chunker.py - Chroma index
core/vector_store.py - Text embeddings
core/embeddings.py
Grounded Q&A
- RAG answering
core/rag_chain.py - Runtime settings
config.py
Study planning
- PYQ extraction
core/pyq_analysis/question_extractor.py - Topic classification
core/pyq_analysis/topic_classifier.py - Frequency analysis
core/pyq_analysis/frequency_analyzer.py - Preparation dashboard
app.py
Other components
- Student
- Groq LLM
Connections 16
- Student → Streamlit app: uploads and asks
README.md - Streamlit app → PDF extraction: extracts pages
app.py - Streamlit app → Page chunking: chunks pages
app.py - Streamlit app → Chroma index: adds chunks
app.py - Chroma index → Text embeddings: embeds text
core/vector_store.py - Streamlit app → RAG answering: requests answer
app.py - RAG answering → Chroma index: queries chunks
core/rag_chain.py - RAG answering → Groq LLM: invokes model
core/rag_chain.py - Streamlit app → Runtime settings: reads upload path
app.py - Page chunking → Runtime settings: reads chunk settings
core/chunker.py - Text embeddings → Runtime settings: reads model setting
core/embeddings.py - Chroma index → Runtime settings: reads database path
core/vector_store.py - RAG answering → Runtime settings: reads model settings
core/rag_chain.py - PYQ extraction → Topic classification: feeds questions
README.md - Topic classification → Frequency analysis: maps topics
README.md - Frequency analysis → Preparation dashboard: informs priorities
README.md