How giriprasad-05/homerepair-ai works
HomeRepair AI coordinates appliance registration, issue reporting, AI investigation, and repair follow-up. The main workflow runs from the React interface through FastAPI to the LangGraph agent, which uses history and persistent memory to choose an investigation path, gather evidence with diagnostic tools, and produce a diagnosis. Appliance, issue, symptom, repair, and memory records support ongoing history and outcome tracking. The README documents capabilities beyond the sampled backend excerpts; those links are represented as documented relationships, not as claims that unsampled code was inspected.
Main entry points: nodes.py Reasoning and Decisions · session.py SQL Database · App.jsx React App · api.js API Client
Components 28
User Interface
- React App
frontend/src/App.jsx - Appliance Management
frontend/src/pages/MyAppliancesPage.jsx - Issue Tracking
frontend/src/pages/RepairIssuesPage.jsx - AI Investigation
frontend/src/pages/AIInvestigationPage.jsx - API Client
frontend/src/services/api.js
API and Services
- FastAPI Application
backend/app/main.py - Appliance Routes
backend/app/api/appliances.py - Issue Routes
backend/app/api/issues.py - Agent Route
backend/app/api/agent.py - Appliance Service
backend/app/services/appliance_service.py - Issue Service
backend/app/services/issue_service.py - Repair Service
backend/app/services/repair_service.py
Diagnosis Agent
- LangGraph Workflow
backend/app/agent/graph.py - Reasoning and Decisions
backend/app/agent/nodes.py - OpenRouter LLM
backend/app/agent/llm.py - History Matching
backend/app/services/history_matching_service.py - Persistent Memory
backend/app/services/memory_service.py - Appliance History Tool
backend/app/tools/appliance_history_tool.py - Repair Outcome Tool
backend/app/tools/repair_outcome_tool.py - Warranty Tool
backend/app/tools/warranty_tool.py - Symptom Pattern Tool
backend/app/tools/symptom_pattern_tool.py - Manual Lookup Tool
backend/app/tools/manual_lookup_tool.py
Repair Records
- Appliance Records
backend/app/models/appliance.py - Issue and Symptoms
backend/app/models/issue.py - Repair History
backend/app/models/repair.py - Memory Records
backend/app/models/memory.py
Persistence
- SQL Database
backend/app/database/session.py
Other components
- Homeowner
Connections 34
- Homeowner → React App: uses
README.md - React App → Appliance Management: routes to
frontend/src/App.jsx - React App → Issue Tracking: routes to
frontend/src/App.jsx - React App → AI Investigation: routes to
- Appliance Management → API Client: requests data
- Issue Tracking → API Client: requests data
frontend/src/pages/RepairIssuesPage.jsx - AI Investigation → API Client: requests diagnosis
frontend/src/pages/AIInvestigationPage.jsx - API Client → FastAPI Application: sends API requests
README.md - FastAPI Application → Appliance Routes: registers routes
backend/app/main.py - Appliance Routes → Appliance Service: delegates
backend/app/api/appliances.py - Appliance Routes → Issue Service: delegates
backend/app/api/appliances.py - Issue Routes → Issue Service: delegates
- Agent Route → LangGraph Workflow: starts investigation
README.md - LangGraph Workflow → Reasoning and Decisions: runs workflow
README.md - Reasoning and Decisions → History Matching: checks history
README.md - Reasoning and Decisions → Persistent Memory: retrieves memory
README.md - Reasoning and Decisions → Appliance History Tool: selects tool
README.md - Reasoning and Decisions → Repair Outcome Tool: selects tool
README.md - Reasoning and Decisions → Warranty Tool: selects tool
README.md - Reasoning and Decisions → Symptom Pattern Tool: selects tool
README.md - Reasoning and Decisions → Manual Lookup Tool: selects tool
README.md - Reasoning and Decisions → OpenRouter LLM: generates diagnosis
README.md - Appliance Service → Appliance Records: reads and writes
backend/app/services/appliance_service.py - Issue Service → Issue and Symptoms: reads and writes
backend/app/services/issue_service.py - Repair Service → Issue Service: validates issue
backend/app/services/repair_service.py - Repair Service → Repair History: writes repair
backend/app/services/repair_service.py - History Matching → Issue and Symptoms: compares incidents
backend/app/services/history_matching_service.py - History Matching → Repair History: checks outcomes
backend/app/services/history_matching_service.py - Persistent Memory → Memory Records: reads and writes
backend/app/services/memory_service.py - FastAPI Application → SQL Database: initializes tables
backend/app/main.py - Appliance Records → SQL Database: stored in
README.md - Issue and Symptoms → SQL Database: stored in
README.md - Repair History → SQL Database: stored in
README.md - Memory Records → SQL Database: stored in
README.md