GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - vishal8248/bugpilot-ai: AI-powered bug investigation assistant using LangGraph, RAG, FastAPI and Next.js.

BranchesTags
Open more actions menu

Latest commit

 

History

8 Commits
8 Commits

Folders and files

NameName
Last commit message
Last commit date
app
app
 
 
data
data
 
 
frontend
frontend
 
 
screenshots
screenshots
 
 
.env.example
.env.example
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
main.py
main.py
 
 
requirements.txt
requirements.txt
 
 

Repository files navigation

šŸž BugPilot AI

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.


Why I Built This

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.


Current Status

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.


Features

  • 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

Tech Stack

Frontend

  • Next.js
  • React
  • TypeScript
  • Tailwind CSS

Backend

  • FastAPI
  • Python

AI Stack

  • LangGraph
  • LangChain
  • Groq LLM
  • HuggingFace Embeddings
  • FAISS

Database

  • Postgresql

System Architecture

                 User
                  │
                  ā–¼
          Next.js Frontend
                  │
                  ā–¼
            FastAPI Backend
                  │
                  ā–¼
          LangGraph Workflow
                  │
      ā”Œā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”¼ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”
      │           │           │
      ā–¼           ā–¼           ā–¼
Classification Root Cause Investigation
    Agent        Agent      Generator
                  │
                  ā–¼
             RAG Pipeline
                  │
      ā”Œā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”“ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”€ā”
      ā–¼                       ā–¼
 HuggingFace             FAISS Vector
  Embeddings               Database
                  │
                  ā–¼
              Postgresql

Workflow

  1. User submits a new bug report.

  2. The backend receives the request through FastAPI.

  3. Previously resolved tickets are loaded from the database.

  4. HuggingFace embeddings are generated.

  5. FAISS retrieves the most similar historical bugs.

  6. Retrieved tickets become the context for the investigation.

  7. LangGraph executes the investigation workflow.

  8. AI predicts:

  • Issue Type
  • Severity
  • Assigned Team
  • Root Cause
  1. A structured investigation report is generated.

  2. Engineers verify the issue and close the ticket.

  3. The verified solution becomes part of the knowledge base for future investigations.


Project Structure

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

Engineering Decisions

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.

Future Improvements

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

Screenshots

Dashboard

Dashboard


Analyze Page

Analyze Page


Analyze Ticket

Analyze Ticket


Ticket Page

Ticket Page


History Page

History Page


History Ticket

History Ticket


Getting Started

Clone the repository

git clone https://github.com/vishal8248/bugpilot-ai.git

cd bugpilot-ai

Backend

Create 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

Frontend

cd frontend

npm install

npm run dev

Environment Variables

Backend

GROQ_API_KEY=your_groq_api_key

Frontend

NEXT_PUBLIC_API_URL=http://127.0.0.1:8000

About Me

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


License

This project is licensed under the MIT License.

About

AI-powered bug investigation assistant using LangGraph, RAG, FastAPI and Next.js.

Topics

aifaissfastapgenailangchainlanggraphllmnextjspythonragsqlite

Resources

Readme
MIT license
Activity

Stars

1 star

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800Ɨ600. No cookies required.