How venu-16/reposense-ai works
RepoSense-AI lets a user ingest a GitHub repository and then ask questions about its contents. The UI submits repository URLs and queries to FastAPI; ingestion loads supported files and passes them to the RAG pipeline, while queries use that pipeline to return answers, sources, and history. The README documents the overall retrieval-and-answer workflow; the excerpts show the route calls and UI requests. The pipeline excerpt is partial, so its indexing and retrieval internals are represented together rather than as an asserted sequence.
Main entry points: ingest.py Ingest endpoint · App.jsx App state · query.py Query endpoint · rag_pipeline.py RAG pipeline
Components 13
User interface
- App state
frontend/src/App.jsx - Ingest form
frontend/src/components/RepoIngestForm.jsx - Chat panel
frontend/src/components/ChatPanel.jsx - React entry
frontend/src/main.jsx
Backend API
- FastAPI app
backend/main.py - Ingest endpoint
backend/routes/ingest.py - Query endpoint
backend/routes/query.py - Request logger
backend/utils/logger.py
Repository ingestion
- GitHub loader
backend/services/github_loader.py
RAG services
- RAG pipeline
backend/services/rag_pipeline.py - Embedding provider
backend/services/embeddings.py
Other components
- User
- GitHub API
Connections 15
- User → App state: uses
README.md - React entry → App state: renders
frontend/src/main.jsx - App state → Ingest form: renders
frontend/src/App.jsx - App state → Chat panel: renders
frontend/src/App.jsx - Ingest form → Ingest endpoint: posts URL
frontend/src/components/RepoIngestForm.jsx - Chat panel → Query endpoint: posts query
frontend/src/components/ChatPanel.jsx - FastAPI app → Ingest endpoint: registers
backend/main.py - FastAPI app → Query endpoint: registers
backend/main.py - Ingest endpoint → GitHub loader: loads documents
backend/routes/ingest.py - GitHub loader → GitHub API: fetches repository
backend/services/github_loader.py - Ingest endpoint → RAG pipeline: indexes documents
backend/routes/ingest.py - Query endpoint → RAG pipeline: queries
backend/routes/query.py - RAG pipeline → Embedding provider: uses embeddings
backend/services/rag_pipeline.py - Ingest endpoint → Request logger: logs failures
backend/routes/ingest.py - Query endpoint → Request logger: logs failures
backend/routes/query.py