How akshat-rathor/codelens-ai works
CodeLens AI lets a user submit a GitHub repository for indexing, then ask questions answered from retrieved code with source references. The backend’s pipeline coordinates repository ingestion and question answering; retrieval combines lexical and vector search before reranking and LLM generation. The frontend and API calls are visible in excerpts. Some backend modules are represented only by the source index, so their internal behavior and external-service wiring are not expanded.
Main entry points: pipeline.py Workflow pipeline · hybrid.py Hybrid search · App.tsx CodeLens workspace · main.py HTTP API
Components 15
User interface
- CodeLens workspace
frontend/src/App.tsx
API orchestration
- HTTP API
backend/app/main.py - Workflow pipeline
backend/app/pipeline.py
Code ingestion
- Repository clone
backend/app/ingestion/github.py - Source file filter
backend/app/ingestion/file_filter.py - Python parser
backend/app/code_intelligence/parser.py - Code chunker
backend/app/ingestion/chunker.py
Retrieval and storage
- Embedding generation
backend/app/retrieval/embeddings.py - Qdrant vector store
backend/app/retrieval/vector_store.py - BM25 index
backend/app/retrieval/bm25.py - Hybrid search
backend/app/retrieval/hybrid.py - Result reranker
backend/app/retrieval/reranker.py
Answer generation
- Answer generator
backend/app/llm/generator.py
Other components
- Repository user
- Groq LLM service
Connections 16
- Repository user → CodeLens workspace: submits repository and questions
frontend/src/App.tsx - CodeLens workspace → HTTP API: posts analyze and ask requests
frontend/src/App.tsx - HTTP API → Workflow pipeline: dispatches workflows
backend/app/main.py - Workflow pipeline → Repository clone: clones repository
backend/app/pipeline.py - Workflow pipeline → Source file filter: selects source files
backend/app/pipeline.py - Workflow pipeline → Python parser: parses Python files
backend/app/pipeline.py - Workflow pipeline → Code chunker: chunks parsed code
backend/app/pipeline.py - Workflow pipeline → Embedding generation: embeds chunks and queries
backend/app/pipeline.py - Workflow pipeline → Qdrant vector store: creates collection and stores vectors
backend/app/pipeline.py - Workflow pipeline → BM25 index: builds repository index
backend/app/pipeline.py - Workflow pipeline → Hybrid search: retrieves candidates
backend/app/pipeline.py - Hybrid search → Qdrant vector store: searches vectors
backend/app/retrieval/hybrid.py - Hybrid search → BM25 index: searches lexical index
backend/app/retrieval/hybrid.py - Workflow pipeline → Result reranker: reranks candidates
backend/app/pipeline.py - Workflow pipeline → Answer generator: generates grounded answer
backend/app/pipeline.py - Answer generator → Groq LLM service: requests completion