Welcome to AltoGPT – a generative AI assistant that powers smart building management using real-time sensor data, intelligent insights, and a sleek mobile interface.
- Real-time streaming from IAQ, occupancy, and power sensors
- AI-generated summaries, recommendations, and analytics
- Supabase + TimescaleDB integration
- LangChain-powered AI inference pipeline
- Responsive React mobile UI with voice input
- Modular, Dockerized microservices
ALTOTECH_PROJECT/
├── agents/
│ └── agent_router.py
├── backend/
│ ├── backend_inference_main/ # LangChain AI pipeline
│ ├── rag/ # Retrieval-Augmented Generation
│ ├── tools/ # Tools like energy calculator
│ ├── utils/ # Supabase client helpers
│ ├── main.py # FastAPI entrypoint
│ ├── requirements.txt
│ └── Dockerfile
├── consumers/
│ └── combined_consumer.py
├── data/ # Simulated sensor CSVs
├── producers/
│ └── send_combined_to_rabbitmq.py # Publishes combined IAQ, occupancy, power
├── services/
│ ├── send_combined_to_db.py # TimescaleDB consumer
│ └── send_combined_to_supabase.py # Supabase real-time updater
├── dashboard/ # (Optional) Streamlit dashboard
├── frontend/ # React frontend UI
│ ├── src/
│ └── Dockerfile
├── .env
├── docker-compose.yml
├── .dockerignore
└── README.md
git clone https://github.com/your-org/altotech-platform.git
cd altotech-platformPG_HOST=localhost
PG_PORT=5432
PG_DATABASE=altotech
PG_USER=postgres
PG_PASSWORD=shreyasha123
SUPABASE_URL=https://wxwmbikghvdoixopbzmr.supabase.co
SUPABASE_KEY=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Ind4d21iaWtnaHZkb2l4b3Biem1yIiwicm9sZSI6InNlcnZpY2Vfcm9sZSIsImlhdCI6MTc0NDU2OTc0MiwiZXhwIjoyMDYwMTQ1NzQyfQ.nQ7WmOygKGmc7ecPGa60sU6HUgid6mfUdEuV8yOq6Ns
OPENAI_API_KEY=sk-svcacct-vPTeI5m4lr8Omi8Nl--zFO2Dar97AIqPeW3xQH0zYKh80vP-ET34un9o0Fs8xT3BlbkFJuuj6Waf1AhBJnB9YHqmrbEAaXT3yqNyNtmYdmr7mx7leDOzZ-oQTSt6bhEbAAcd backend
pip install -r requirements.txtdocker-compose up --buildThis will spin up FastAPI, React, RabbitMQ, and TimescaleDB containers.
python producers/send_combined_to_rabbitmq.pypython services/send_combined_to_supabase.pypython services/send_combined_to_db.pycd frontend
npm install
npm startVisit: http://localhost:3000
| Endpoint | Method | Description |
|---|---|---|
/ |
GET | Welcome message |
/query/ |
POST | Ask questions to ALTO-GPT (AI inference) |
/buildings/ |
GET | List available buildings |
/buildings/{building_id}/status/ |
GET | Current building sensor overview |
/rooms/{room_id}/sensors/{type}/ |
GET | Get specific sensor data for a room |
- LangChain + GPT-3.5 Turbo powered agent
- Tool calling with sensor summary, power estimation, RAG
- Multi-input tool for direct sensor queries
- Voice input + AI chat interface in frontend
- Summarization with actionable recommendations
- Backend:
uvicorn backend.main:app --reload - Frontend:
npm start - Ensure
.envis properly configured for PostgreSQL and Supabase
- Use Swagger UI: http://localhost:8000/docs
- Use Postman or curl to test
/query/and/buildings/...routes
Includes data ingestion, AI inference, and frontend rendering layers.
- All services are containerized
- Frontend deployed on Vercel: [https://your-vercel-link](#)
- Backend optionally deployed on Render or run locally
- CI/CD with GitHub Actions workflows: test, build, deploy
