Skip to content

feat: document summarization recipe redesign for journalism use#88

Merged
aaronbrezel merged 12 commits intodevelopfrom
feature/document-summarization-updates
Apr 15, 2026
Merged

feat: document summarization recipe redesign for journalism use#88
aaronbrezel merged 12 commits intodevelopfrom
feature/document-summarization-updates

Conversation

@aaronbrezel
Copy link
Copy Markdown
Member

Summary

  • Adds two optional journalist inputs to the document-summarization recipe: Document Type and Area of Interest
  • Rewrites system prompt to a journalist-oriented BLUF structure; optional inputs are conditionally injected via {{#key}}...{{/key}} template blocks
  • Extends interpolateTemplate with conditional block syntax (content included only when key is non-empty) — infrastructure the recipe depends on
  • Adds integration tests that exercise the recipe template string through interpolation, catching future typos in block syntax

Test Plan

  • All 439 tests pass (npm test)
  • Typecheck clean (npm run typecheck)
  • Build clean (npm run build)
  • 12 unit tests cover interpolateTemplate conditional block behavior
  • 6 integration tests exercise the recipe template with all input combinations (no inputs / docType only / focus only / both)

🤖 Generated with Claude Code

@aaronbrezel aaronbrezel merged commit ee73ee2 into develop Apr 15, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant