symfonic.evals.fixtures.model¶
model ¶
Public values for a versioned, checksum-pinned text fixture.
A fixture owns both its corpus and the truth used to grade answers about it.
BookClaim
dataclass
¶
BookClaim(id: str, kind: ClaimKind, question: str, answer: str, sources: tuple[str, ...], must_contain: tuple[str, ...] = (), expected_current_assertions: Mapping[str, str] = dict(), forbidden_current_assertions: tuple[ForbiddenCurrentAssertion, ...] = (), derivation_inputs: tuple[str, ...] = ())
One answerable question and the sections that entail its answer.
current_assertion_violations ¶
current_assertion_violations(assertions: Mapping[str, object]) -> tuple[ForbiddenCurrentAssertion, ...]
Return obsolete/wrong propositions asserted as current.
Text is not searched: naming a withdrawn value does not make it current.
Source code in src/symfonic/evals/fixtures/model.py
BookFixture
dataclass
¶
BookFixture(id: str, title: str, version: str, sections: tuple[BookSection, ...], claims: tuple[BookClaim, ...] = (), relations: tuple[BookRelation, ...] = (), negative_facts: tuple[NegativeFact, ...] = ())
BookRelation
dataclass
¶
A subject-predicate-target edge the corpus supports, with provenance.
BookSection
dataclass
¶
BookSection(id: str, ordinal: int, kind: SectionKind, title: str, filename: str, sha256: str, text: str, status: SectionStatus = SectionStatus.CURRENT, supersedes: tuple[str, ...] = (), superseded_by: str | None = None, signed_by: str | None = None)
One addressable source section and the checksum that pins its text.
mentions ¶
ClaimKind ¶
Bases: StrEnum
The retrieval competence an expected claim is designed to exercise.
ForbiddenCurrentAssertion
dataclass
¶
One normalized proposition that an answer must not assert as current.
This is not a text fragment: a correction may name the withdrawn value without recommending it.
SectionKind ¶
Bases: StrEnum
What kind of source section a fixture file holds.
SectionStatus ¶
Bases: StrEnum
Whether a section is still the operating authority for its subject.