File size: 1,437 Bytes
865bc90
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
"""Citation-grounded extraction & verification core.

This package turns retrieved source spans into schema-constrained, evidence-backed
survey findings and audits them for hallucination and contradiction. It is the
deterministic "no invented facts" layer that sits between retrieval and rendering.

Design tenets (do not relax these without a regression test):

* Extraction over summarization — findings are copied/derived from cited spans.
* Grounding over fluency — every claim must map to a literal source span.
* Determinism over creativity — temperature=0, top_p=1, fixed seed.
* Citation validation over freeform generation — unsupported claims are dropped.

The pure-Python validation/contradiction layers (``citation_validator`` and
``contradiction``) have NO network dependency and are fully unit-testable
offline. Only :mod:`app.extraction.extractor` calls the LLM.
"""

from app.extraction.schemas import (
    AtomicClaim,
    ClaimEvidence,
    ClaimType,
    ClaimVerification,
    ConditionRating,
    Contradiction,
    ContradictionKind,
    EvidenceSpan,
    GroundedClaim,
    SectionExtraction,
    SupportLevel,
    SurveyFinding,
)

__all__ = [
    "AtomicClaim",
    "ClaimEvidence",
    "ClaimType",
    "ClaimVerification",
    "ConditionRating",
    "Contradiction",
    "ContradictionKind",
    "EvidenceSpan",
    "GroundedClaim",
    "SectionExtraction",
    "SupportLevel",
    "SurveyFinding",
]