An agentic AI system for natural-language analytics of smart building sensor data.
This project enables users to query building sensor data using natural language questions. The system combines a local LLM for intent extraction with deterministic analytics tools to provide accurate, verifiable results.
The system uses a five-layer agentic architecture:
- User Query → Natural language input
- Intent Interpretation → LLM extracts structured task specification
- Agent Planning → Validates parameters and creates execution plan
- Tool Execution → Deterministic analytics compute results
- Result Explanation → LLM converts results to natural language
This separation ensures reliable computations while maintaining natural language interaction.
- Natural Language Interface: Ask questions in plain English
- Deterministic Analytics: All calculations are verifiable and reproducible
- Local LLM: Uses Ollama for privacy-preserving inference
- Real Sensor Data: Connects to SMT Analytics API for Peavy Hall building data
- Full Transparency: Complete execution traces for every query
- Python 3.10+
- Ollama installed and running
- Access to SMT Analytics API
# Clone repository
git clone <repository-url>
cd agentic-sensor-analytics
# Install dependencies
pip install -r requirements.txt
# Pull LLM model
ollama pull llama3.1:8b
# Run app
streamlit run .\ui\app.pyOR
# Clone repository
git clone <repository-url>
cd agentic-sensor-analytics
# Docker - make sure Docker is running!
docker compose up --buildCreate .env file from .env.example with SMT API credentials.
Sean Clayton
