Update lollms_client_js.js

This commit is contained in:
Saifeddine ALOUI 2024-09-17 16:11:33 +02:00 committed by GitHub
parent 0604760e15
commit 538d22d750
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -989,6 +989,7 @@ async summarizeText(
this.stepStart(`Compressing ${docName}...`);
let chunkSize = Math.floor(this.lollms.ctxSize * 0.6);
documentChunks = TextChunker.chunkText(text, this.lollms, chunkSize, 0, true);
console.log(`documentChunks: ${documentChunks}`)
text = await this.summarizeChunks({
chunks: documentChunks,
summaryInstruction,