fix(ingestion): bound the summary written by the model #85
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/79-summary-bound"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #79
In the end-to-end run of 2026-11-29, the summary of a 549-character text was longer than the text and took its facts sentence by sentence. For a document whose rights are
unknown, that is close to a paraphrase of the whole text (#52).Change (
document-analysis.ts)summaryBound(length): a quarter of the text, between 240 and 1,500 characters.boundSummary(summary, source, bound), applied to every answer:Checks
Tests: bound values, copy removal, cut at the bound, paragraphs, a summary that is only copies;
analyseDocumentreturns a bounded summary without the copied sentence.yarn test263/263.🤖 Generated with Claude Code