How dheeraj1918/llm-analyzer works
LLM-Analyzer is a provider-agnostic Python library and local observability dashboard. An application captures a response directly or wraps a synchronous/asynchronous LLM call; the analyzer measures latency, extracts available metadata, records successes or errors, and can optionally evaluate responses using supplied evidence or a custom evaluator. Captures and evaluation results are stored in temporary SQLite, then served through dashboard APIs and a browser UI, with CSV export. The CLI starts the dashboard or reports the database path. The workflow is supported by sampled core, extraction, evaluation, storage, and dashboard code; other README capabilities are represented only where their module path or documentation supports them.
Main entry points: core.py Capture orchestration · server.py Dashboard server · storage.py SQLite telemetry store · cli.py CLI commands
Components 11
Capture and evaluation
- Capture orchestration
llm_analyzer/core.py - Metadata extraction
llm_analyzer/extractor.py - Response evaluation
llm_analyzer/evaluation.py
Local persistence
- SQLite telemetry store
llm_analyzer/storage.py
Dashboard and export
- Dashboard server
llm_analyzer/dashboard/server.py - Dashboard UI
llm_analyzer/dashboard/ui.py
Library and CLI
- Analyzer API
llm_analyzer/__init__.py - CLI commands
llm_analyzer/cli.py
Other components
- Application
- LLM provider
- Dashboard user
Connections 13
- Application → Analyzer API: calls
- Analyzer API → Capture orchestration: delegates
- Capture orchestration → LLM provider: invokes callback
- Capture orchestration → Metadata extraction: extracts metadata
- Capture orchestration → SQLite telemetry store: writes captures
- Capture orchestration → Response evaluation: optionally evaluates
- Response evaluation → SQLite telemetry store: records scores
- Capture orchestration → Dashboard server: starts dashboard
- CLI commands → Capture orchestration: creates analyzer
- CLI commands → Dashboard server: starts server
- Dashboard server → SQLite telemetry store: queries and exports
- Dashboard server → Dashboard UI: serves HTML
- Dashboard user → Dashboard server: requests views