How goudham-b/bimmer-bot works
BimmerBot is a BMW-focused chat application with a separate Parts.csv analysis task. The main workflow runs from the browser chat over WebSocket to the FastAPI chat controller, which classifies the query and either streams an LLM reply or invokes parts analysis. Parts analysis detects the CSV separator with the LLM, validates the rows, loads valid data with pandas, and returns descriptive statistics. The README also documents a separator-detection endpoint. The graph follows shown calls and the README-described product; unsampled frontend components and deployment details are not expanded.
Main entry points: llm_controller.py Chat controller · App.jsx Chat UI · parts_service.py Parts analysis · llm_service.py LLM service
Components 8
Chat interface
- Chat UI
webapp/src/App.jsx - React entry
webapp/src/main.jsx
API and routing
- FastAPI app
api/src/main.py - Chat controller
api/src/controllers/llm_controller.py
Language model
- LLM service
api/src/services/llm_service.py
Parts analysis
- Parts analysis
api/src/services/parts_service.py - Parts dataset
api/src/datasets/Parts.csv
Other components
- Chat user
Connections 10
- React entry → Chat UI: renders
webapp/src/main.jsx - Chat user → Chat UI: submits query
webapp/src/App.jsx - Chat UI → Chat controller: sends WebSocket messages
webapp/src/App.jsx - Chat controller → Chat UI: streams responses
api/src/controllers/llm_controller.py - FastAPI app → Chat controller: mounts router
api/src/main.py - Chat controller → LLM service: classifies and generates
api/src/controllers/llm_controller.py - Chat controller → Parts analysis: runs task analysis
api/src/controllers/llm_controller.py - Parts analysis → Parts dataset: reads dataset
api/src/services/parts_service.py - Parts analysis → LLM service: detects separator
api/src/services/parts_service.py - Chat controller → LLM service: detects separator
api/src/controllers/llm_controller.py