QURAT25/ai-observability-dashboard
0
baaki README content yahan se shuru
Signal — AI Observability Dashboard
A real-time observability layer for LLM applications. Tracks cost, latency, and response quality across every model call — automatically.
Why
As teams integrate LLMs into production, visibility often lags behind adoption: nobody's watching per-call cost, latency spikes go unnoticed, and hallucinated responses slip through silently. Signal wraps any LLM call with automatic logging, so this data is captured without manual tracking.
Features
- Cost tracking — per-call cost calculated from token usage and model pricing
- Latency monitoring — response time tracked for every call
- Quality flagging — heuristic-based detection of short, repetitive, or low-confidence responses
- Live dashboard — auto-refreshing charts for cost trend, model usage, and flagged alerts
- Provider-agnostic — tested with Groq; works with any LLM API that returns token usage
Stack
- Backend: Python, FastAPI, SQLite
- Frontend: Vanilla JS, Chart.js
- Tested with: Groq API (Llama 3.3 70B, Llama 3.1 8B)
How it works
app/logger.pywraps any LLM call function withtrack_llm_call(...)- Each call is timed, priced (
app/pricing.py), and quality-checked (app/quality_check.py) - Results are logged to SQLite (
app/models.py) app/main.pyexposes REST endpoints for aggregated statsdashboard.htmlpolls those endpoints and renders live charts
Running locally
\\\bash pip install -r requirements.txt python generate_demo_data.py # optional — populates sample data uvicorn app.main:app --reload --port 8000 \\\
Then open dashboard.html in a browser, or visit http://localhost:8000 if serving it via FastAPI.
Screenshots
(yahan apna dashboard ka screenshot add karna — neeche instructions hain)
Possible extensions
- Swap heuristic quality checks for an LLM-as-judge scoring call
- Add Slack/email alerting on cost or latency spikes
- Postgres backend for production persistence
