merge_text_summarize
Function
Due to the input token limitation of an LLM, a long text needs to be divided into multiple shorter texts. These shorter texts are then summarized to create sub-summaries, which are further combined and summarized again using an LLM. The final summary is achieved through multiple iterations, with a maximum of 10 iterations.
Prototype
def merge_text_summarize(texts, merge_threshold, not_summarize_threshold, prompt)
Parameters
Return Value
Data Type |
Description |
|---|---|
String |
Final summary after summary merging. |
Parent topic: Summary