BugPilot AI is an AI-powered bug investigation assistant that helps software teams analyze incoming bug reports and learn from previously resolved issues.
When a new bug is reported, the system doesn't rely only on an LLM. It first searches similar historical incidents using Retrieval-Augmented Generation (RAG), then uses that context to generate a structured investigation report containing the issue type, severity, probable root cause and recommended next steps.
The goal of this project is to demonstrate how LLMs, AI agents and RAG can be combined to solve a real software engineering problem.
During software development, engineers often spend a significant amount of time searching old tickets to understand whether a similar issue has already occurred and how it was fixed.
Traditional ticketing systems store valuable historical knowledge, but finding the right information usually depends on manual keyword searches and personal experience.
I built BugPilot AI to reduce this effort.
Instead of manually searching historical tickets, the application automatically retrieves similar resolved bugs, provides their verified engineer solutions as context, and generates an investigation report that engineers can use as a starting point.
BugPilot AI is currently an MVP.
The current version focuses on demonstrating an AI-assisted bug investigation workflow using historical ticket retrieval and structured investigation generation.
Future versions will expand into a complete AI-powered engineering assistant with authentication, integrations, multi-agent workflows, and cloud deployment.
- Analyze software bug reports using AI
- Retrieve similar historical bugs using RAG
- Semantic search using FAISS vector database
- AI-generated investigation reports
- Issue type classification
- Severity prediction
- Engineering team recommendation
- Root cause analysis
- Ticket management dashboard
- Store verified engineer solutions
- Historical tickets continuously improve future investigations
- Next.js
- React
- TypeScript
- Tailwind CSS
- FastAPI
- Python
- LangGraph
- LangChain
- Groq LLM
- HuggingFace Embeddings
- FAISS
- Postgresql
User
ā
ā¼
Next.js Frontend
ā
ā¼
FastAPI Backend
ā
ā¼
LangGraph Workflow
ā
āāāāāāāāāāāāā¼āāāāāāāāāāāā
ā ā ā
ā¼ ā¼ ā¼
Classification Root Cause Investigation
Agent Agent Generator
ā
ā¼
RAG Pipeline
ā
āāāāāāāāāāāāā“āāāāāāāāāāāā
ā¼ ā¼
HuggingFace FAISS Vector
Embeddings Database
ā
ā¼
Postgresql
-
User submits a new bug report.
-
The backend receives the request through FastAPI.
-
Previously resolved tickets are loaded from the database.
-
HuggingFace embeddings are generated.
-
FAISS retrieves the most similar historical bugs.
-
Retrieved tickets become the context for the investigation.
-
LangGraph executes the investigation workflow.
-
AI predicts:
- Issue Type
- Severity
- Assigned Team
- Root Cause
-
A structured investigation report is generated.
-
Engineers verify the issue and close the ticket.
-
The verified solution becomes part of the knowledge base for future investigations.
BugPilotAI
ā
āāā app
ā āāā api
ā āāā graph
ā āāā nodes
ā āāā schemas
ā āāā services
ā ā āāā RAG
ā ā āāā database_service.py
ā āāā state
ā
āāā frontend
ā āāā app
ā āāā components
ā āāā public
ā
āāā data
ā āāā bugpilot.db
ā
āāā requirements.txt
āāā main.py
āāā README.md
Some implementation decisions made while building BugPilot AI:
- Used Retrieval-Augmented Generation (RAG) instead of relying only on an LLM so previous verified bug resolutions could improve future investigations.
- Structured the AI workflow with LangGraph to separate issue classification, root cause analysis, and investigation report generation into independent steps.
- Used FAISS for semantic similarity search to retrieve related historical bug reports efficiently.
- Stored verified engineer solutions so they could become part of the knowledge base for future investigations.
- Chose FastAPI and Next.js to keep the backend and frontend modular and easy to extend.
This project is currently an MVP.
Some planned improvements include:
- Multi-agent investigation workflow
- PostgreSQL support
- Docker deployment
- User authentication
- Team workspaces
- Jira integration
- GitHub Issues integration
- Slack notifications
- Email alerts
- Vector database (pgvector)
- Cloud deployment
- Analytics dashboard
git clone https://github.com/vishal8248/bugpilot-ai.git
cd bugpilot-aiCreate a virtual environment.
python -m venv .venv
Activate it.
Windows
.venv\Scripts\activate
Install dependencies.
pip install -r requirements.txt
Start FastAPI.
uvicorn main:app --reload
cd frontend
npm install
npm run devBackend
GROQ_API_KEY=your_groq_api_key
Frontend
NEXT_PUBLIC_API_URL=http://127.0.0.1:8000
Vishal Mali.
I'm an aspiring AI Engineer with a strong interest in Generative AI, AI Agents and Retrieval-Augmented Generation (RAG).
I enjoy building practical AI applications that solve real engineering problems while learning modern AI frameworks and system design.
GitHub: https://github.com/vishal8248
This project is licensed under the MIT License.





