Understand any codebase through AI-powered conversations.
CodeAtlas is an AI-powered codebase understanding platform that helps developers explore, analyze, and reason about software repositories using natural language. Instead of manually navigating hundreds of files, developers can ask questions about a repository and receive context-aware answers generated using local Large Language Models (LLMs).
Built as an AI engineering project, CodeAtlas combines FastAPI, Next.js, local LLMs via Ollama, and Retrieval-Augmented Generation (RAG) into a complete end-to-end application.
- 📂 Index local software repositories
- 🤖 Chat with your codebase using natural language
- 🧠 Local LLM integration via Ollama
- 🔍 Retrieval-Augmented Generation (RAG)
- 📑 Repository structure and metadata analysis
- 🏗️ Project architecture insights
- 💬 Rich AI chat interface
- ⚡ FastAPI backend with interactive Swagger documentation
- 🎨 Modern React frontend
+----------------------+
| React UI |
+----------+-----------+
|
|
HTTP / REST API
|
v
+----------------------+
| FastAPI |
| Backend |
+----------+-----------+
|
+------------------+------------------+
| | |
v v v
Repository RAG Pipeline Ollama (Local LLM)
Processing Embeddings Inference
| |
+---------+--------+
|
v
Context Retrieval
|
v
AI Generated Answer
- FastAPI
- Python
- Pydantic
- Uvicorn
- Next
- TypeScript
- Modern Component Architecture
- Ollama
- Local Large Language Models
- Embedding Models
- Retrieval-Augmented Generation (RAG)
The application consists of four primary areas:
- 📊 Dashboard
- 📁 Repository Management
- 💬 AI Chat
- ⚙️ Settings & System
- Add a local repository.
- Index the repository.
- Files are processed and chunked.
- Embeddings are generated.
- Metadata is stored.
- Ask questions in the AI Chat.
- Relevant code context is retrieved.
- The local LLM generates an informed response.
git clone https://github.com/<your-username>/CodeAtlas.git
cd CodeAtlascd apps/api
python -m venv venv
# Windows
venv\Scripts\activate
# Linux / macOS
source venv/bin/activate
pip install -r requirements.txt
uvicorn app.main:app --reloadBackend will be available at:
http://localhost:8000
Swagger UI:
http://localhost:8000/docs
cd apps/web
npm install
npm run devFrontend will be available at:
http://localhost:3000
CodeAtlas was built to explore practical AI engineering concepts, including:
- Building production-style FastAPI APIs
- Local LLM integration
- Retrieval-Augmented Generation
- Repository indexing
- Embedding pipelines
- AI-powered developer tools
- Modern frontend architecture
- End-to-end AI application development
Contributions, suggestions, and feedback are always welcome.
Feel free to fork the project, open an issue, or submit a pull request.
This project is licensed under the MIT License.
Developed by lbyarinth as part of an AI Engineering learning journey.
The goal of CodeAtlas is not just to build another chatbot, but to create a practical AI-powered developer assistant that demonstrates modern AI engineering practices using local models and open-source technologies.