add: gut updates

are you ready?
I hate school
This commit is contained in:
LightningHyperBlaze45654
2024-12-01 22:15:19 -08:00
parent 4ea365a141
commit 46502e762b
2 changed files with 11 additions and 1 deletions

View File

@@ -183,6 +183,16 @@ function cleanInvalidChunks(
return true;
});
}
}
export async function regenerateSummary(
chats: OpenAIChat[],
data: HypaV2Data,
mainChunkIndex: number
) : Promise<void> {
// Should re-summarize a certain main chunk, based on index. It will then replace the original one. How much chat needs to be summarized is already defined in the mainChunk's chatRange field.
// After the update on mainChunks, it should also update chunks that have the same ChatRange, as they should be updated with the newly generated summary. Follow the same principles of splitting them.
}
export async function hypaMemoryV2(
chats: OpenAIChat[],