feat: separate contents, abstract and body evidence
This commit is contained in:
@@ -138,6 +138,8 @@ def test_scoring_uses_the_same_page_image_as_its_saved_evidence(db, environment)
|
||||
max_score=criterion["max_score"], reason="测试评分",
|
||||
evidence=[{"chunk_id": chunk.id, "page": 2, "quote": "原文证据"}], 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.
|
||||
scored = _score_criterion(db, batch, project, criterion, FakeClient(),
|
||||
retriever=lambda *_, **kwargs: [] if kwargs.get("public_only") else [evidence])
|
||||
saved = db.scalar(select(ScoreEvidence).where(ScoreEvidence.score_id == scored.id))
|
||||
@@ -333,7 +335,7 @@ def test_sse_persists_messages_and_tool_failure(session_factory, monkeypatch):
|
||||
|
||||
def test_tool_arguments_cover_registered_fields_without_review_prose():
|
||||
numbers = {"course_version_id", "batch_id", "project_id", "score_id", "task_id", "rubric_version_id",
|
||||
"score", "offset", "limit", "project_offset", "criterion_offset"}
|
||||
"score", "offset", "limit", "project_offset", "criterion_offset", "document_id"}
|
||||
strings = {"query", "criterion_id", "format", "status", "student_no", "relative_dir"}
|
||||
redacted = {"comment", "reason"}
|
||||
fields = set().union(*(tool.schema.model_fields for tool in agent_tools.TOOLS.values()))
|
||||
|
||||
Reference in New Issue
Block a user