Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@
<td>{{ claim.claim_text }}</td>
<td><span class="badge bg-info">{{ claim.evidence_type }}</span></td>
<td>
<span class="badge {% if claim.action == 'keep' %}bg-success{% elif claim.action == 'soften' %}bg-warning{% else %}bg-danger{% endif %}">
<span class="badge {% if claim.action == 'keep' %}bg-success{% elif claim.action == 'soften' %}bg-warning{% elif claim.action == 'replace' %}bg-primary{% elif claim.action == 'remove' %}bg-danger{% else %}bg-secondary{% endif %}">
{{ claim.action }}
</span>
</td>
Expand Down
2 changes: 1 addition & 1 deletion apps/summarization/pydantic_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class Claim(BaseModel):
"from_base_text",
"uncertain",
] = Field(description="Type of evidence supporting this claim")
action: Literal["keep", "soften", "remove"] = Field(
action: Literal["keep", "soften", "replace", "remove"] = Field(
description="Action taken on this claim"
)
fix_hint: Optional[str] = Field(None, description="Hint for fixing the claim")
Expand Down
2 changes: 1 addition & 1 deletion apps/summarization/services.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ class SummaryRequest(AIRequest):
- module_type: string
- signals_snapshot: list of strings
- draft_before_qa: string
- claims: list of {claim_text, evidence_type(from_votes|from_ratings|from_open_answers|from_comments|from_base_text|uncertain), action(keep|soften|remove), fix_hint}
- claims: list of {claim_text, evidence_type(from_votes|from_ratings|from_open_answers|from_comments|from_base_text|uncertain), action(keep|soften|replace|remove), fix_hint}
- quantifier_fixes: list of {original_phrase, replacement, reason}
- anchors: list of strings
- coverage_gaps: list of strings
Expand Down
Loading