How rozainmalik/repomind-ai works
RepoMind AI indexes public GitHub repositories locally, then answers repository-specific questions with cited files and line ranges. The main workflow runs from repository submission through clone and indexing, followed by question embedding, repository-filtered retrieval, prompt construction, and local LLM generation. The graph also includes repository management and the frontend’s browsing/chat surfaces. Relationships are based on sampled source, the SOURCE INDEX, and README workflow documentation; some service internals are documented but not excerpted.
Main entry points: indexing_service.py Indexing orchestrator · App.jsx Application shell · repository_service.py Repository lifecycle · chat_service.py Chat orchestration
Components 27
User interface
- Application shell
frontend/src/App.jsx - Add repository
frontend/src/components/AddRepository.jsx - Repository sidebar
frontend/src/components/Sidebar.jsx - Chat view
frontend/src/components/ChatView.jsx - UI icons
frontend/src/components/icons.jsx - API client
frontend/src/services/api.js
API and repository lifecycle
- FastAPI application
backend/app/main.py - Repository endpoints
backend/app/api/v1/endpoints/repositories.py - Repository lifecycle
backend/app/services/repository_service.py - Chat endpoint
backend/app/routes/chat.py - Repository API schema
backend/app/schemas/repository.py
Repository indexing
- Source file parser
backend/app/services/parser_service.py - Code chunker
backend/app/services/chunking_service.py - Chunk representation
backend/app/schemas/chunk.py - Local embeddings
backend/app/services/embedding_service.py - Indexing orchestrator
backend/app/services/indexing_service.py
Question answering
- Filtered retrieval
backend/app/services/retrieval_service.py - Prompt builder
backend/app/services/prompt_service.py - Chat orchestration
backend/app/services/chat_service.py - Local LLM client
backend/app/services/llm_service.py
Persistence and models
- Repository metadata
backend/app/models/repository.py - PostgreSQL
- Vector store access
backend/app/services/qdrant_service.py - Qdrant
Other components
- User
- GitHub repository
- Ollama
Connections 30
- User → Add repository: submits URL
frontend/src/components/AddRepository.jsx - Add repository → Application shell: invokes callback
frontend/src/components/AddRepository.jsx - Application shell → API client: requests repository actions
frontend/src/App.jsx - Application shell → Repository sidebar: renders
frontend/src/App.jsx - Application shell → Chat view: renders
frontend/src/App.jsx - Repository sidebar → UI icons: renders
frontend/src/components/Sidebar.jsx - Chat view → UI icons: renders
frontend/src/components/ChatView.jsx - API client → FastAPI application: calls API
- FastAPI application → Repository endpoints: registers routes
backend/app/main.py - FastAPI application → Chat endpoint: registers routes
backend/app/main.py - Repository endpoints → Repository lifecycle: delegates
backend/app/api/v1/endpoints/repositories.py - Repository endpoints → Repository API schema: uses schema
backend/app/api/v1/endpoints/repositories.py - Chat endpoint → Chat orchestration: delegates
backend/app/routes/chat.py - Repository lifecycle → Repository metadata: manages records
backend/app/services/repository_service.py - Repository metadata → PostgreSQL: stores metadata
- Repository lifecycle → GitHub repository: clones repository
backend/app/services/repository_service.py - Repository lifecycle → Indexing orchestrator: starts indexing
backend/app/services/repository_service.py - Indexing orchestrator → Source file parser: finds source files
backend/app/services/indexing_service.py - Indexing orchestrator → Code chunker: chunks files
backend/app/services/indexing_service.py - Indexing orchestrator → Local embeddings: embeds chunks
backend/app/services/indexing_service.py - Indexing orchestrator → Vector store access: stores vectors
backend/app/services/indexing_service.py - Code chunker → Chunk representation: creates chunks
backend/app/services/chunking_service.py - Local embeddings → Chunk representation: reads chunks
backend/app/services/embedding_service.py - Vector store access → Qdrant: stores and searches
- Chat orchestration → Filtered retrieval: retrieves context
backend/app/services/chat_service.py - Filtered retrieval → Local embeddings: embeds question
backend/app/services/retrieval_service.py - Filtered retrieval → Vector store access: searches candidates
backend/app/services/retrieval_service.py - Chat orchestration → Prompt builder: builds prompt
backend/app/services/chat_service.py - Chat orchestration → Local LLM client: generates answer
backend/app/services/chat_service.py - Local LLM client → Ollama: requests completion
backend/app/services/llm_service.py