Brok's ForgeAI Engineering
Docs
GitHubHome
All documentation

Introduction

  • What is Broks Forge?
  • The AI Engineering Operating System
  • Getting Started
  • The Five Layers

Core Concepts

  • Core Concepts
  • Engineering Intelligence
  • Engineering Memory
  • Knowledge
  • Why Observability Is Not Enough
  • Deterministic Engineering Reasoning

Capabilities

  • Registry
  • AI Git
  • Forge Graph
  • Execution Graph & Failure Graph
  • Evolution
  • Brok — the Engineering Partner
  • Root Cause Explorer
  • Evaluations & Metrics

Working With Broks Forge

  • The Engineering Workflow
  • Examples
  • Best Practices

Comparisons

  • Comparisons Overview
  • Broks Forge vs LangFuse
  • Broks Forge vs LangSmith
  • Broks Forge vs Promptfoo
  • Broks Forge vs Helicone
  • Broks Forge vs Weights & Biases

Developer Documentation

  • Architecture Overview
  • Data Model
  • REST API
  • Module Structure
  • Extension Points
  • Developer Setup & Build
  • Engineering Principles

Reference

  • FAQ
  • Glossary

Engineering Handbook

  • Master Architecture
  • Engineering Handbook
  • Developer Guide
  • Project Rules
  • Coding Standards
  • API Guidelines
  • Security
  • Error Handling
  • Testing Strategy
  • Performance
  • Deployment
  • Contributing
  • Roadmap
Docs/Capabilities

Evaluations & Metrics

An evaluation is a reproducible measurement. It is the act that turns an opinion about your AI system into evidence.

Why reproducibility is the whole point

An evaluation pins its configuration when it is created: the agent, the prompt revision, the dataset version, the provider and the model. Reading the result six months later still tells you exactly what was measured.

This is what lets an evaluation become Evidence. A number produced by an unknown configuration cannot support a decision, because nobody can say what it was a number about.

Anatomy

   EVALUATION JOB                     status: PENDING → RUNNING → COMPLETED | FAILED | CANCELLED
   ├── pinned agent
   ├── pinned dataset version
   ├── pinned prompt revision
   ├── provider + model
   └── RUNS  (one per dataset item)
        ├── input, output
        ├── latency, prompt/completion/total tokens, cost
        ├── HTTP status
        ├── metric results  → passed / score
        └── error, if any

A run is the unit of truth. Everything above it — pass rates, summaries, verdicts — is computed from real runs, and everything below it — the Execution Graph, the failure classifier, the investigation — reads them directly.

The metric catalog

Fourteen built-in metric types, in three categories.

Quality

MetricChecks
EXACT_MATCHOutput equals the expected answer
CONTAINSOutput contains an expected substring
REGEX_MATCHOutput matches a pattern
JSON_VALIDOutput parses as valid JSON
NON_EMPTYOutput is not blank
LENGTHOutput length falls within bounds
SEMANTIC_SIMILARITYEmbedding similarity to the expected answer
LLM_JUDGEA model scores the response against a rubric
HALLUCINATION_DETECTIONClaims unsupported by the provided context
CITATION_VERIFICATIONCitations match the supplied sources
CUSTOMYour own evaluator

Performance

MetricChecks
LATENCYResponse time against a threshold

Cost

MetricChecks
COSTPer-run spend against a budget
TOKEN_COUNTToken usage against a ceiling

Quality is never reported without its price. Wherever the platform states a quality result, it states the latency and cost alongside it. A prompt that is three points better and four times more expensive is not straightforwardly better, and the interface refuses to imply that it is.

The failure classifier

When runs fail, Broks Forge does not lump every non-2xx into "the endpoint returned errors". It classifies them, because each class has a different fix:

ClassSignalWhat it means
TimeoutTimeout in the error textThe call is too slow — profile or change model
NetworkDNS, connection, TLS, policy blockThe request never reached the provider
AuthenticationHTTP 401 / 403Credentials rejected
QuotaHTTP 402, or 429 reporting credit/billingThe account is out of credit
Rate limitHTTP 429Too many requests — reduce concurrency
Invalid modelHTTP 404 naming a modelThe model id does not exist for this provider
InfrastructureHTTP ≥ 500Provider-side; retry, do not rewrite the prompt
HTTP errorOther 4xxMalformed request shape
Empty outputBlank output, no errorContract or parsing problem
UnclassifiedNo known patternSurfaced for manual triage, never hidden

Metric execution failures are tracked separately from metric results. A judge call that was rate limited never produced a score — reporting that as "the model scored badly" would be a lie, so a metric tallies as either "ran and scored low" or "never ran", never both.

This classifier is what supplies the immediate cause in the Root Cause Explorer.

Regression checks and benchmarks

Benchmarks compare variants — several agents, prompts or models over the same dataset — so a choice between them rests on the same measurement.

Regression checks compare a candidate against a baseline across quality, latency, cost and tokens, and report which dimensions regressed and by how much.

After an evaluation completes

This is where Broks Forge diverges from an evaluation tool. The result does not just appear on a dashboard — it enters the engineering record:

  • an Observation is derived
  • if it covers a promoted revision, it becomes Evidence
  • combined with a decision, it can produce Knowledge
  • it appears in the Forge Graph, connected to everything it measured
  • it becomes searchable precedent for future failures

See also: Execution Graph · Core Concepts · Root Cause Explorer

PreviousRoot Cause ExplorerNextThe Engineering Workflow