test: align scoring fixtures and upgrade checks with current contracts
This commit is contained in:
@@ -136,7 +136,7 @@ def test_scoring_uses_the_same_page_image_as_its_saved_evidence(db, environment)
|
||||
sent_images.extend(images or [])
|
||||
return ScoreResult(criterion_id=criterion["criterion_id"], score=1,
|
||||
max_score=criterion["max_score"], reason="测试评分",
|
||||
evidence=[{"chunk_id": chunk.id, "page": 2, "quote": "原文证据"}], confidence=.9)
|
||||
evidence=[{"chunk_id": chunk.id, "page": 2, "quote": "原文证据", "target_id": "t0"}], confidence=.9)
|
||||
|
||||
# The evidence page must be a substantive body page: a contents page cannot support
|
||||
# a content judgement, so the source page is classified accordingly during ingest.
|
||||
|
||||
Reference in New Issue
Block a user