Documentation
¶
Overview ¶
Package evaluation scores owner-labelled extraction observations offline. It does not infer semantic truth, invoke providers, or approve a model.
Index ¶
Constants ¶
View Source
const MaxInputBytes = 16 << 20
View Source
const Schema = "facts-extraction-evaluation-v1"
Variables ¶
View Source
var ErrInvalid = errors.New("invalid evaluation inputs")
Functions ¶
This section is empty.
Types ¶
type CategorySummary ¶
type Observation ¶
type Report ¶
type Report struct {
Schema string `json:"schema"`
DatasetVersion string `json:"dataset_version"`
DatasetDigest string `json:"dataset_digest"`
RunDigest string `json:"run_digest"`
ProfileDigest string `json:"profile_digest"`
ModelIdentity string `json:"model_identity"`
Total Summary `json:"total"`
Categories []CategorySummary `json:"categories"`
}
type Run ¶
type Run struct {
Schema string `json:"schema"`
DatasetDigest string `json:"dataset_digest"`
ProfileDigest string `json:"profile_digest"`
ModelIdentity string `json:"model_identity"`
Cases []Observation `json:"cases"`
}
type Summary ¶
type Summary struct {
Cases int `json:"cases"`
FailedCases int `json:"failed_cases"`
UnsupportedAssertions Rate `json:"unsupported_assertion_rate"`
MissedConflicts Rate `json:"missed_conflict_rate"`
MissedAssertions Rate `json:"missed_required_assertion_rate"`
FalseConflicts Rate `json:"false_conflict_rate"`
}
Click to show internal directories.
Click to hide internal directories.