How inesbolanos/hire-ai-framework works
H.I.R.E. is an analytics toolkit for deciding whether to hire, train, or fire an AI agent and for measuring agent performance from conversation telemetry. Its main runtime workflow ingests conversations, applies deterministic routing and resolution analysis, classifies residual messages with an LLM, escalates uncertain results and audits “other,” routes unresolved cases for human review, then discovers topics and reports metrics. Analysts can also score classification against a labeled gold set. The README documents additional framework guidance and sample data; unsampled subsystems are included only where those capabilities are documented.
Main entry points: pipeline.py CLI and orchestration · llm.py Warehouse LLM client · llm_classify.py Residual classification · escalation.py Low-confidence escalation
Components 20
Pipeline workflow
- CLI and orchestration
src/hire_pipeline/pipeline.py - Conversation data
- Deterministic routing
src/hire_pipeline/deterministic_categorization.py
Classification and review
- Residual classification
src/hire_pipeline/llm_classify.py - Prompt construction
src/hire_pipeline/prompts.py - Warehouse LLM client
src/hire_pipeline/llm.py - Low-confidence escalation
src/hire_pipeline/escalation.py - Other-bucket audit
src/hire_pipeline/audit.py - Human review queue
src/hire_pipeline/hitl_queue.py
Analytics and evaluation
- Topic discovery
src/hire_pipeline/topic_discovery.py - Agent metrics
src/hire_pipeline/agent_metrics.py - Gold-set evaluation
src/hire_pipeline/evaluation.py - Labeled gold set
datasets/fraud-agent/gold_set.example.csv - H.I.R.E. guidance
framework/hire-checklist.md - Metric definitions
framework/agent-metrics/ai-agent-metrics.md
Configuration and storage
- Pipeline configuration
src/hire_pipeline/config.py - Agent taxonomy
taxonomy.yaml - SQL table storage
src/hire_pipeline/store.py
Other components
- Product analyst
- Warehouse LLM function
Connections 24
- Product analyst → CLI and orchestration: runs commands
README.md - Conversation data → CLI and orchestration: provides conversations
README.md - CLI and orchestration → Deterministic routing: runs routing
README.md - Deterministic routing → SQL table storage: reads and writes
src/hire_pipeline/deterministic_categorization.py - CLI and orchestration → Residual classification: runs classification
README.md - Residual classification → Prompt construction: builds prompts
src/hire_pipeline/llm_classify.py - Residual classification → Warehouse LLM client: classifies batches
src/hire_pipeline/llm_classify.py - Warehouse LLM client → Warehouse LLM function: queries model
README.md - Residual classification → SQL table storage: reads and writes
src/hire_pipeline/llm_classify.py - CLI and orchestration → Low-confidence escalation: runs escalation
README.md - Low-confidence escalation → Warehouse LLM client: rechecks uncertain rows
src/hire_pipeline/escalation.py - Low-confidence escalation → Human review queue: queues unresolved rows
src/hire_pipeline/escalation.py - CLI and orchestration → Other-bucket audit: runs audit
README.md - Other-bucket audit → Warehouse LLM client: audits other rows
src/hire_pipeline/audit.py - Other-bucket audit → Human review queue: queues review cases
src/hire_pipeline/audit.py - CLI and orchestration → Topic discovery: runs discovery
README.md - Topic discovery → Warehouse LLM client: names clusters
src/hire_pipeline/topic_discovery.py - CLI and orchestration → Agent metrics: computes metrics
README.md - CLI and orchestration → Gold-set evaluation: scores predictions
src/hire_pipeline/pipeline.py - Labeled gold set → CLI and orchestration: supplies labels
README.md - CLI and orchestration → SQL table storage: creates SQL store
src/hire_pipeline/pipeline.py - Pipeline configuration → Agent taxonomy: loads taxonomy
src/hire_pipeline/config.py - Product analyst → H.I.R.E. guidance: uses decision guidance
README.md - Product analyst → Metric definitions: selects metrics
README.md