News for hackers. Stuff that matters.
Re:Show HN: Summate.it – Quickly summarize web articles with... by alooPotato on Tuesday January 17, 2023 @08:55PM (#34422448)
The hardest part is dealing with GPT token limits. You can't summarize long form text, where it's most needed.
Re:Show HN: Summate.it – Quickly summarize web articles with... by cloudking on Tuesday January 17, 2023 @09:14PM (#34422618)
Agreed, you can try sending it in chunks but then you lose context. Perhaps the ChatGPT based API will help if they expose the conversational memory as a feature.

Maybe OP has figured out a method with the current API?

Re:Show HN: Summate.it – Quickly summarize web articles with... by k1m on Tuesday January 17, 2023 @09:20PM (#34422659)
This is an issue. I haven't experimented to see if there are workarounds, so the service currently checks the length of the article text and if it's very long, it will send a portion, otherwise we'll exceed the token limit. There's a note on the front page about it: "Limitations: The OpenAI API does not allow submission of large texts, so summarization may only be based on a portion of the whole article."
Re:Show HN: Summate.it – Quickly summarize web articles with... by peytoncasper on Tuesday January 17, 2023 @09:19PM (#34422653)
I saw in another thread that people were working around this by asking for a summary of sections and then combining the summaries and asking for a joint summary.

Kind of like map reducing the articles.

Re:Show HN: Summate.it – Quickly summarize web articles with... by sudoelefant on Tuesday January 17, 2023 @09:57PM (#34422912)
O believe this is how GPT-Index attempts to bypass prompt length limitations.
Re:Show HN: Summate.it – Quickly summarize web articles with... by roflyear on Tuesday January 17, 2023 @10:21PM (#34423068)
ChatGPT doesn't seem to have a much longer memory
Re:Show HN: Summate.it – Quickly summarize web articles with... by gamegoblin on Wednesday January 18, 2023 @12:56AM (#34423848)
It's 2x the length of GPT3. 8192 tokens vs 4096.
Re:Show HN: Summate.it – Quickly summarize web articles with... by ijidak on Tuesday January 17, 2023 @10:22PM (#34423073)
Not promoting this. But, sounds like a great area for monetization.

Anyone can use without conversational memory, or with limited conversational memory.

Then, charge for larger conversational memory.

Re:Show HN: Summate.it – Quickly summarize web articles with... by carlosdp on Tuesday January 17, 2023 @10:18PM (#34423037)
Not too hard, just "map reduce" it: Have GPT-3 summarize each section of the article, and then have it summarize the summaries.
Re:Show HN: Summate.it – Quickly summarize web articles with... by roflyear on Tuesday January 17, 2023 @10:21PM (#34423066)
It doesn't work but is a fun idea.
Re:Show HN: Summate.it – Quickly summarize web articles with... by alooPotato on Tuesday January 17, 2023 @11:11PM (#34423347)
I've tried it, it doesn't really work that well. There are other much more convoluted approaches that have promise (embedding searches is one)
Re:Show HN: Summate.it – Quickly summarize web articles with... by gamegoblin on Wednesday January 18, 2023 @12:51AM (#34423822)
A technique I have had success with is to do it in multiple passes.

Map-reduce it with overlapping sections, but then propagate back downwards and repeat the process, but now each map-reduce node knows the context it's operating in and can summarize more salient details.

Concretely, on the first pass, your leaf nodes are given a prompt like "The following is lines X-Y of a Z length article. Output a 1 paragraph summary."

You then summarize those summaries, etc. But then you can propagate that info back down for a second pass, so in the second pass, your leaf nodes are given a prompt like "The following is lines X-Y of a Z length article. The article is about <topic>. The section before line X is about <subtopic>. The section after Y is about <subtopic>. Output a 1 paragraph summary that covers details most relevant to this article in the surrounding context."

Re:Show HN: Summate.it – Quickly summarize web articles with... by bbig on Wednesday January 18, 2023 @10:45PM (#34436471)
Could you expand on this? Is the idea to embed paragraphs (or some other arbitrary subsection) of text, and then semantic search for the most relevant paragraphs, and then only summarize them?
Re:Show HN: Summate.it – Quickly summarize web articles with... by alooPotato on Wednesday January 18, 2023 @10:53PM (#34436512)
Yes that's exactly right, but it presumes you know what to look for and what you want in your summary. Our use case is to pick out action items or next steps from meeting notes so this can work. But not for all use cases - i.e. summarize this paper.
Re:Show HN: Summate.it – Quickly summarize web articles with... by ggnore7452 on Wednesday January 18, 2023 @04:43AM (#34424973)
there is actually a paper by OpenAI themselves on summarizing long document. essentially, break a longer text into smaller chunks, and run a multi-stage sequential summarization. each chunk uses a trailing window of previous chunk as context, and run this recursively. https://arxiv.org/abs/2109.10862

did a rough implementation myself, works well for articles even 20k tokens. but kind slow because all the additional overlapping runs required. (and more costly)

Re:Show HN: Summate.it – Quickly summarize web articles with... by poma on Tuesday January 24, 2023 @03:41AM (#34501111)
gpt-index can do that automatically
Re:Show HN: Summate.it – Quickly summarize web articles with... by tluyben2 on Wednesday January 18, 2023 @09:16AM (#34426812)
I didn't try, but it seems GPT-Index and LangChain use techniques to get around prompting length limits?
Re:Show HN: Summate.it – Quickly summarize web articles with... by tluyben2 on Thursday January 19, 2023 @02:32AM (#34437677)
I tried, they don’t. Seems when they were ranking #1 on HN yesterday, someone made a summary (top comment) of what they are for that isn’t quite correct.
Re:Show HN: Summate.it – Quickly summarize web articles with... by poma on Tuesday January 24, 2023 @03:43AM (#34501124)
Can't find it for some reason, can you provide a link? Did they summarize with GPTSimpleVectorIndex or GPTListIndex? GPTSimpleVectorIndex is in get-started examples and is cheaper, but it provides worse results.