๐ค AI Code Insight Assistant
A powerful, LLM-driven platform that allows developers to understand, document, visualize, and interact with their codebase intelligently.
Supports Python, JavaScript, and Java projects with features like:
- ๐ Semantic search and Q&A
- ๐งพ Automatic docstring generation
- ๐ Code summary tutorial PDF creation
- ๐จ Code structure visualization (Mermaid diagrams)
- โ๏ธ Function execution with input/output
- ๐ Business logic impact analysis on code changes
๐งฉ Architecture Overview
Each module (Embedder, Summarizer, Executor, etc.) is designed independently with FastAPI micro-routes and React-driven UI.
๐ Features
Module | Description |
---|---|
Embedder | Embeds codebase files into vector DB using OpenAI embeddings |
QA | Semantic search + LLM answers from code |
Docstring | Generates missing docstrings in Python/JS/Java |
PDF Generator | Summarizes code into a navigable tutorial PDF |
Executor | Executes functions with parameters and returns results |
Visualizer | Class, flow, and dependency diagrams via Mermaid |
Impact Analyzer | Identifies business logic changes between original and updated code |
๐ How to Run the App
๐ง Backend Setup (FastAPI)
cd backend
python -m venv venv
source venv/bin/activate # Or venv\Scripts\activate on Windows
pip install -r requirements.txt
uvicorn main:app --reload
- OpenAPI Docs: http://localhost:8000/docs
- Environment: Set
OPENAI_API_KEY
in.env
or system env
๐ Frontend Setup (React + Tailwind)
cd frontend
npm install
npm run dev
- Open in browser: http://localhost:5173
๐ Folder Structure
backend/
โโโ api/routes/
โ โโโ embedder_api.py
โ โโโ qa_api.py
โ โโโ pdf_api.py
โ โโโ executor_api.py
โ โโโ visualizer_api.py
โ โโโ docstring_api.py
โ โโโ summarizer_api.py
โโโ modules/
โ โโโ embedder.py
โ โโโ retriever.py
โ โโโ executor.py
โ โโโ docstring_generator.py
โ โโโ diagram_generator.py
โ โโโ summary_generator.py
โ โโโ pdf_generator.py
โโโ main.py
frontend/
โโโ src/
โ โโโ components/
โ โโโ pages/
โ โโโ styles/
โ โโโ App.jsx
โ โโโ main.jsx
โโโ public/
๐ฅ Contributors
Name |
---|
Harini Ganeshan |
Mitali Laroia |
๐ License
MIT License.
This project uses OpenAI APIs and must comply with their terms of use.