3 min read
Code Insight AI

๐Ÿค– 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

AI Code Insight Architecture

Each module (Embedder, Summarizer, Executor, etc.) is designed independently with FastAPI micro-routes and React-driven UI.


๐Ÿš€ Features

ModuleDescription
EmbedderEmbeds codebase files into vector DB using OpenAI embeddings
QASemantic search + LLM answers from code
DocstringGenerates missing docstrings in Python/JS/Java
PDF GeneratorSummarizes code into a navigable tutorial PDF
ExecutorExecutes functions with parameters and returns results
VisualizerClass, flow, and dependency diagrams via Mermaid
Impact AnalyzerIdentifies 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

๐ŸŒ Frontend Setup (React + Tailwind)

cd frontend
npm install
npm run dev

๐Ÿ“ 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.