12 ms·
Show HN: Chrome extension to summarize blogs and articles using ChatGPT
- t_a_v_i_s 4y agoHow are you calling the API?
- roey2009 4y agohttps://openai.com/api/ https://openai.com/api/ Enjoy.
- deleted 4y ago[deleted]
- amrrs 4y agoI don't think ChatGPT is available via APIs. Most unofficial APIs are headless browser
- your_challenger 4y agoThis guy [1] (on twitter) says they are using Davinci 003, and claiming it is what ChatGPT uses. [1] https://twitter.com/VarunMayya/status/1599736091946659845 https://twitter.com/VarunMayya/status/1599736091946659845
- obert 4y agoChatGPT is in fact just a chat prompt on top of Davinci3, plus a markdown renderer
- stevenhuang 4y agoDo we know what the prompt is?
- jcims 4y agoThe posts of comments to chatgpt reference davinci-002
- georgehill 4y agoI think they are using the same api as ChatGPT https://github.com/clmnin/summarize.site/blob/0e4da39fa4355a2b04e5c4a587dbc9b484b44920/src/background/index.js#L25 https://github.com/clmnin/summarize.site/blob/0e4da39fa4355a... Is this even legal?
- your_challenger 4y agoThe only thing here is instead of copy-pasting it into ChatGPT, you get to use a browser extension that does the job. Pretty convenient actually. So technically, we are still using https://chat.openai.com/chat https://chat.openai.com/chat, with the UI
- deleted 4y ago[deleted]
- bertman 4y agoIt's right there in the code. https://github.com/clmnin/summarize.site/blob/0e4da39fa4355a2b04e5c4a587dbc9b484b44920/src/background/index.js#LL25C12-L25C12 https://github.com/clmnin/summarize.site/blob/0e4da39fa4355a... POST request with access token from the browser's cache after the user has logged in with their OpenAI account.
- your_challenger 4y agoYup. You need to SSE it though. Pretty simple actually (I'm OP, btw)
- designed 4y agoI didn't know what SSE was, so I asked ChatGPT: > What does 'SSE' stand for in the following code sample: <pasted fetch-sse.js> "In this code sample, 'SSE' likely stands for "Server-Sent Events". It is the name of the fetchSSE function and it is used to fetch data from a server using the Server-Sent Events protocol. This protocol allows a server to push data to a client in real-time, rather than requiring the client to continually poll the server for updates." Not sure how accurate this is but it gave me enough information to look into it more!
- nnoitra 4y ago
- your_challenger 4y agoI've cross posted on twitter [1] with a video [1] https://twitter.com/clamentjohn/status/1599827373008244736 https://twitter.com/clamentjohn/status/1599827373008244736
- Imnimo 4y agoHow do you decide whether the article too long to fit in ChatGPT's context window?
- your_challenger 4y agoGood question. I tested it manually with a few articles I could find. If you find a web page too large for ChatGPT then let me know, I can split it into multiple batches and ask ChatGPT to summarize once I'm done.
- gamegoblin 4y agoChatGPT's context window is 8192 tokens. A token is about 3-4 characters. OpenAI has an open source tokenizer you can download, too, if you want the exact number of tokens a body of text is.
- jamager 4y agoIf it works well, it could be actually very useful for longer pieces. I have read so many books with some actually good ideas hammered for +200 pages, (just to justify the cost of printing, satisfy the industry standards, or whatever) A half decent summary of all those would be of actual value. Get 80% of the value in 20% (or less) of the time.
- your_challenger 4y agoI could expand the product to handle such large content. Can you link me to a large content like that?
- jamager 4y agoAll copyrighted material, I don't have links to the actual works, but some books that come to mind that I would have enjoyed much more if their were 20% of pages: - The courage to be disliked (Ichiro Kishimi) - The simple path to wealth (J.L. Collins) - Peak (K Anders Ericsson) - Happiness (Matthieu Ricard) - Clean Code (Robert C Martin)
- geoelectric 4y agoNot that they'd be the particular books OP wants, but if you're looking to summarize large content, perhaps grab it from Project Gutenberg? https://www.gutenberg.org/ https://www.gutenberg.org/
- onlyrealcuzzo 4y agoIsn't this available for most books already? I think the problem is - there's examples and anecdotes and whatever scattered throughout the book that make those ideas connect for you. And this is different for everyone. Maybe an ML you train yourself on highlights would be able to find the stuff that will connect for you - but I'm skeptical enough people read & highlight enough to train ML models to do this (or if it would even work).
- jamager 4y agoYes there are a number of services, and I would happily pay for them. But either they have a very small catalog, or their summaries are too short, or both.
- eulers_secret 4y agoLooking over this, I cannot help but ask: “how much of this codebase could be generated by ChatGPT”?
- tluyben2 4y agoI was playing around [0] with gpt and and most of what I started is by chatgpt, however with many fixes. The code it generated looked mostly ok, however it needed many fixes as it was off a lot, especially on api use, promises etc. Because this is all throw-away by definition (and only for localhost use!) and only to see/test/play with the differences with production stuff, it is pretty impressive how fast you can do things. I have the feeling though that copilot makes less mistakes and learns my style better; chatgpt keeps mixing styles even in the same session. You can prime the prompt and then it works a bit better in that case, I found. [0] https://github.com/tluyben/chatgpt-sqlite-server https://github.com/tluyben/chatgpt-sqlite-server
- Glench 4y agoIf you want to monetize it, you could look into https://extensionpay.com https://extensionpay.com
- nathell 4y agoRelated: Autosummarized HN (using GPT-3, not ChatGPT) https://danieljanus.pl/autosummarized-hn https://danieljanus.pl/autosummarized-hn
- elashri 4y agoSounds great, now will try to make ChatGPT convert the code to work with Firefox.
- your_challenger 4y agoAwesome! Raise a PR and I'll merge
- satvikpendem 4y agohttps://extensionworkshop.com/documentation/develop/porting-a-google-chrome-extension/ https://extensionworkshop.com/documentation/develop/porting-... Should be fairly straightforward, take a look.
- genewitch 4y agoanyone else remember Copernic Summarizer? I miss that. When are we getting a self-hosted "GPT-Alike"? Is it something that "federated search engine" project from a few years ago could aid with training?
- posterboy 4y agoJokes on you, I don't need summaries or articles to upvote a headline. Do you do double entenndres though?
- rcconf 4y agoSorry if this is off-topic, but ChatGPT is blowing my mind, I'm using it to write my Christmas cards this year and it's already made some funny ones. Dear <Manager> Wishing you a very Merry Christmas and a Happy New Year! May your days be filled with joy, laughter, and lots of eggnog. Speaking of eggnog, have you heard the one about the manager who tried to manage a team of developers? He kept telling them to "commit" to their work, but they just kept "pushing" him aside. Cheers, <Developer>
- lolive 4y agoI ask it/him/her about heroes of the Forgotten Realms (from Dungeons and Dragons). And it/he/she is pretty aware of the lore. [much more than I am!]
- drivers99 4y agoWell, if it doesn't know, it'll just make something up.
- georgemcbay 4y agoTo be fair to the AI bot, a lot of humans do this as well.
- dragonwriter 4y agoIts not at all uncommon for it to admit ignorance, though it is less entertaining (and less likely to get posted publicly) than when it hallucinates something.
- akiselev 4y agoIt's very inconsistent at admitting ignorance, though. How many galaxies are in the Virgo Cluster? > The Virgo Cluster is a cluster of galaxies that contains hundreds of individual galaxies. It is one of the largest galaxy clusters in the local universe, and it is located in the constellation of Virgo. The exact number of galaxies in the Virgo Cluster is not known, as it is constantly changing due to the motion of the galaxies within the cluster. However, it is estimated that the cluster contains at least 1,300 galaxies. How many galaxies are in the Virgo Supercluster? > It is estimated that the Virgo Supercluster contains approximately 100,000 galaxies. When I ran the second query an hour ago, it replied that it didn't have access to the internet to look up the information.
- kornork 4y agoGreat idea! I changed the prompt to this: "Rewrite this for brevity, in outline form:" I prefer the responses this way, rather than the 3rd person book report style the other prompt returns.
- beepbooptheory 4y agoWhy does this use case make sense for ChatGPT instead of just vanilla gpt3?
- popinman322 4y agoIIRC, ChatGPT is based on GPT3.5 (likely an even larger model) rather than GPT3. It's also been refined a bit using reinforcement learning. I've noticed that when I ask ChatGPT to determine the type of a variable in a given code block, its reasoning has fewer holes than GPT3 for the same prompt. Stands to reason that other results will be similarly refined. It also doesn't appear to have a token limit? Not sure how that feat was accomplished.
- hammock 4y agoBe right back, using this to reduce my number of open tabs from 500 to 10...
- SuperSandro2000 4y agoAny words about false positive rates? What it can summarize well and what not?
- readonthegoapp 4y agotried it -- i appreciate the effort to create the extension, but doesn't seem to work well. i've been thinking forever about starting a 'summarize'-type service - based on humans - but just haven't been interested enough yet. but i don't doubt that ChatGPT or similar could get to that point over the next few years.
- your_challenger 4y agoWhat was the difficulty you faced to get it working? Can you raise an issue [1] [1] https://github.com/clmnin/summarize.site/issues https://github.com/clmnin/summarize.site/issues
- readonthegoapp 4y agowell, the extension technically 'worked' -- that is, it gave me some text that was allegedly a summary of the article -- it just wasn't a good summary.
- varun_ch 4y agoPrompt: This is a post on Hacker News "Show HN: Chrome extension to summarize blogs and articles using ChatGPT" Write some examples of comments Comment 1: "This looks really interesting! I'm always looking for ways to save time and quickly get the main points of an article. I'll definitely give it a try. Thanks for sharing!" Comment 2: "I'm not sure about using a GPT model for summarization. The quality of the summary might not be very good, and it could potentially be biased or misleading. I think it's better to use a more specialized tool for this task." Comment 3: "I tried this out and it's really impressive! The summaries it produces are concise and accurate. Plus, it's much faster than reading the whole article. I'm definitely going to keep using this." Comment 4: "I think this is a great idea and a really useful tool. It's great for people who are short on time but still want to stay informed. Thanks for creating it!" Comment 5: "I'm not sure if this is the best approach to summarization. I think using a more sophisticated algorithm, like a deep learning model, would produce better results. But overall, it's still a neat concept."
- your_challenger 4y agoSo meta!
- resiros 4y agoGreat job, I was doing it manually before! It would be nice if it would be possible to continue chatting with chatGPT after the summary. I always find it interesting to probe chatGPT about the article after summarizingi it
- mdrzn 4y agoI'm not sure about using a GPT model for summarization. The quality of the summary might not be very good, and it could potentially be biased or misleading. I think it's better to use a more specialized tool for this task.