fix: bound the summary written by the model at ingestion #79

Closed
opened 2026-11-29 18:12:30 +00:00 by crapougnax · 0 comments
Owner

Found during the end-to-end test of 2026-11-29: on a short text, the "original summary" took the facts sentence by sentence and was longer than the source. For a document whose rights are unknown, this is close to a paraphrase of the whole text (#52: the body is an original summary, never the text).

Expected: the model is asked for a short synthesis; the summary is bounded (a maximum length and a share of the extracted text) and checked against verbatim reuse; beyond the bound it is cut at a sentence.

Found during the end-to-end test of 2026-11-29: on a short text, the "original summary" took the facts sentence by sentence and was longer than the source. For a document whose rights are `unknown`, this is close to a paraphrase of the whole text (#52: the body is an original summary, never the text). **Expected**: the model is asked for a short synthesis; the summary is bounded (a maximum length and a share of the extracted text) and checked against verbatim reuse; beyond the bound it is cut at a sentence.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
modaka/studio#79
No description provided.