How dikshaforsure/repogpt works
RepoGPT is a Streamlit app for asking natural-language questions about GitHub repositories. A user supplies a repository URL and credentials, indexes supported files into an in-memory semantic index, then asks questions; retrieved code context goes to Groq, and the app streams an answer with source paths. The graph separates ingestion, indexing, Q&A, and interface concerns. Its implementation is concentrated in main.py, so several distinct responsibilities share that path. Some pipeline details are documented in the README but their implementation lines were not sampled.
Main entry points: main.py Semantic retrieval
Components 17
Streamlit interface
- Streamlit UI
main.py - Credential setup
main.py - Session state
main.py
Repository ingestion
- URL parsing
main.py - Repository reader
main.py - Supported-file filter
main.py - Repository documents
main.py
Semantic indexing
- Local embeddings
main.py - Vector index
main.py
Question answering
- Semantic retrieval
main.py - QA prompt
main.py - Answer streaming
main.py - Source references
main.py
Other components
- Developer
- GitHub repository
- Hugging Face model
- Groq model
Connections 22
- Developer → Streamlit UI: asks questions
README.md - Streamlit UI → Credential setup: collects keys
main.py - Streamlit UI → URL parsing: submits URL
main.py - URL parsing → Repository reader: selects repository
main.py - Repository reader → GitHub repository: fetches files
README.md - Repository reader → Supported-file filter: filters files
main.py - Repository reader → Repository documents: loads documents
README.md - Repository documents → Local embeddings: creates vectors
README.md - Local embeddings → Hugging Face model: uses model
README.md - Repository documents → Vector index: builds index
main.py - Local embeddings → Vector index: indexes vectors
README.md - Vector index → Session state: stores index
main.py - Streamlit UI → Session state: tracks app state
main.py - Streamlit UI → Semantic retrieval: submits question
main.py - Session state → Semantic retrieval: provides index
main.py - Semantic retrieval → Vector index: retrieves chunks
README.md - Semantic retrieval → QA prompt: sets QA template
main.py - Semantic retrieval → Groq model: generates response
README.md - Semantic retrieval → Answer streaming: returns response stream
main.py - Answer streaming → Streamlit UI: renders answer
main.py - Semantic retrieval → Source references: returns source nodes
main.py - Source references → Streamlit UI: displays paths
main.py