discourse-ai/lib/modules/summarization/strategies
Roman Rizzi 5f0c617880
REFACTOR: Cohesive narrative for single-chunk summaries. (#103)
Single and multi-chunk summaries end using different prompts for the last summary. This change detects when the summarized content fits in a single chunk and uses a slightly different prompt, which leads to more consistent summary formats.

This PR also moves the chunk-splitting step to the `FoldContent` strategy as preparation for implementing streamed summaries.
2023-07-13 17:05:41 -03:00
..
fold_content.rb REFACTOR: Cohesive narrative for single-chunk summaries. (#103) 2023-07-13 17:05:41 -03:00
truncate_content.rb DEV: Better strategies for summarization (#88) 2023-06-27 12:26:33 -03:00