Building a Text Summarizer with AI and Recursive Summarization | Unscripted Coding

preview_player
Показать описание
Token limits are really difficult to get around in this age of AI. They limit how much you can feed the models and as a result, it makes it really difficult to summarize longer texts that go over the limit. Last time we encountered this issue with GPT-3, we did a recursive summary, this time around, we try again with all the refinements expected from some experience.

Unscripted Coding is entirely unscripted and organic. If you're looking for a tutorial, you're in the wrong place! What we do here is try and build something from scratch, filled with all the mistakes and lessons learned along the way!

Total Time: 33 minutes
Рекомендации по теме
Комментарии
Автор

Thank you! Just as I was looking for a solution for that problem. Do you know if there is a AI Builder that lets you summarize page by page but has a UI so non coders can easily use it? I want to chunk a long pdf into pages and let it summarize each page to get a compaction factor of maybe 4 pages into 1.

I just saw your code. This works for relatively short articles. For long content like a pdf file or a book with hundreds of chunks, your code will lead to a token explosion and run up quite the API costs. Not recommended. Instead it is more recommended to send an overlapping content. So chunk 2 contains the last 20% of chunk 1, in order to give the AI more context. This way your overall costs is only +20% higher than having no overlap, and not exponentially growing like using your method.

HideBuz