Sliding contexts for contextual prompts;

This commit is contained in:
extio-de
2024-11-01 15:08:26 +01:00
parent 7232387134
commit 65e50e1dcc
5 changed files with 40 additions and 40 deletions

View File

@@ -112,7 +112,7 @@ public class Rewrite implements Consumer<String[]> {
throw new RuntimeException("Cannot read file", e);
}
final List<String> splits = Utils.splitParagraphs(text, 1250, 350);
final List<String> splits = Utils.splitParagraphs(text, 1250, 350, false);
for (final String split : splits) {
LOGGER.info("Split " + splits.indexOf(split) + "/" + splits.size());