12 ms·
Show HN: Chrome extension to display ChatGPT response besides Google Search
- prvt 4y agoI have a presumption that this is going to be the talk of the tech-town for the next few days.
- skilled 4y agoIs Google in deep waters? And not only because of how good ChatGPT can be, but also as far as "content" goes, because from what I can tell the quality of writing by ChatGPT is very passable for articles, especially if you know the topic you're writing on in and out. I have been thinking about this over the weekend but I haven't been able to get a good feel for it on my own.
- eclipxe 4y agoNo.
- skilled 4y agoIf you have an opinion I wouldn't mind hearing it. As I say, I haven't come to a conclusion myself but maybe because I lack the information/knowledge about it.
- impulser_ 4y agoNo, because they already have LaMDA which is the same thing, a language model for dialogs. Google could implement that into Google today, but the reason they don't is Google is a 200b/year business. You don't want to mess around with a business of that size for the fun of it. We will probably see it in Google Assistant before they add it too Google. OpenAI doesn't have this worry so they can put their model out into the public and if anything goes bad they don't lose anything. Google does.
- skilled 4y agoThat was my thought process too, particularly the business part. I find it hard to believe Google would want to give that up so easily. Will be interesting to see how it unfolds.
- ilaksh 4y agoAlso some Google employees have mentioned on HN that Google has been analyzing similar things and the compute is currently too expensive to make it profitable.
- visarga 4y agoThat's the real reason. And the fact that it decreases ad views.
- 8n4vidtmkvmk 4y agosounds very monetizable. any question that can be solved with a product.. replace that with an affiliate link. maybe only a 5th of the queries will be monetized, but the ones that are are so specific/targeted that the ROI/click through will be great
- whiplash451 4y agoInnovator dilemma in full swing.
- prawn 4y agoI think that could explain exactly why it's a threat to Google (thus yes to deep waters). Google likely has the tech/ability, but they have an existing business to protect which is a strong disincentive to experiment. It creates a strong opportunity for the upstart trying to carve out new territory. Wonder if Google is skunkworking something like this at arms' length as a backup plan?
- mach1ne 4y agoChatGPT can still hallucinate stuff, so if you want to write anything of substance, you have to check its claims through Google.
- datalopers 4y agoGoogle doesn’t do anything to validate the search results lead to accurate information
- izacus 4y agoAnd yet that doesn't mean Google is regularly returning wrong answers like Chat got is. Don't put out this intellectually lazy argument without considering the magnitude of error and user ability to mitigate it.
- oefrha 4y agoGive it some time and the Internet will be swamped by AI-generated dubious crap, and at that point Google will lose its advantage.
- izacus 4y agoOh, that I completely believe in - ChatGPT isn't going to be the saviour of writers, it's going to be used to flood the internet and social media with autogenerated propaganda and submarine marketing in a scale never seen before.
- Xeophon 4y agoThe „news“, especially in finance, is more and more autogenerated these days
- cma 4y agoBut Google is probably about to be massively poisoned with ChatGPT output. And things like this repo itself may get fed back in to future versions of GPT possibly impacting it over time.
- mritchie712 4y agoI've already moved half my programming questions directly to ChatGPT instead of Google. This is perfect.
- eligro91 4y agoAmazing idea. Just need the browsing enabled
- xjconlyme 4y agoIt’s interesting to see what’s Google’s next move. laMDA was also impressive.
- throwaway82388 4y agoGoogle seems to be holding back due to AI safety concerns, and the problems inherent in doing anything at Google scale. I’m curious to see if potential market competition will change that.
- spaceman_2020 4y agoI reckon Google is holding back more because there’s no way to moentize this to the tune of $150B/year. No initiative can get implemented at a large publicly traded company if it doesn’t contribute to the bottomline in some meaningful way eventually. And this thing might actually hurt the bottomline. No bueno.
- PaulDavisThe1st 4y agoCan we change the title to a "Chrome extension ..." since this is not available for Firefox et al. ?
- wonderfuly 4y agoChanged!
- jeff_carr 4y agoWaiting for someone to ask ChatGPT to make a Firefox version of this extension...
- tantalor 4y ago> You are a chat bot that rewrites Chrome extensions for other browsers...
- hxugufjfjf 4y agoYou are a chat bot that rewrites Chrome extensions to firefox, how would you rewrite the following code? https://github.com/wong2/chat-gpt-google-extension https://github.com/wong2/chat-gpt-google-extension To convert the code from the GitHub repository you provided into a format that is compatible with Firefox, the following steps could be taken: Replace instances of "chrome" with "browser" in the code. In the Chrome extension API, the "chrome" namespace is used to access various features and functionality, but in Firefox, this namespace is replaced with "browser". Therefore, all instances of "chrome" in the code would need to be replaced with "browser" to ensure that the code is compatible with Firefox. Replace any references to Chrome-specific APIs with their Firefox equivalents. The Chrome extension API includes a number of features and APIs that are specific to Chrome, and these would need to be replaced with the corresponding Firefox APIs in order to ensure that the code is compatible with Firefox. Update the manifest file to use the correct format for Firefox. The manifest file is a JSON file that specifies various metadata and configuration information for the extension, and the format of this file is different for Chrome and Firefox. Therefore, the manifest file in the code would need to be updated to use the correct format for Firefox. Test the code to ensure that it is functioning properly in Firefox. Once the code has been converted and updated to be compatible with Firefox, it would be necessary to test the code to ensure that it is functioning properly in Firefox and that all of the desired features and functionality are working as expected. This may involve installing the extension in Firefox and testing it with a variety of inputs and scenarios to ensure that it is working properly. Overall, these steps would involve significant modifications to the code in order to make it compatible with Firefox. However, by following these steps and carefully reviewing and testing the code, it should be possible to convert the code
- tontonius 4y agoanyone else getting the "could not load background.js" error?
- wonderfuly 4y agoHi, please follow the README. You need to download the zip package from Github Releases.
- bko 4y agoI started trying to use ChatGPT instead of google for a lot of my queries. The tricky part is unlearning how to search. For instance, I had a timestamp 2022-11-27 00:00:00.000 and wanted to display it in local string. The problem was (depending on your time zone) if you do new Date("2022-11-27 00:00:00.000").toLocaleString(), you get 11/26/2022 So I would have googled something like "pass timezone to toLocaleString", which would give me this answer [0]. But its still a lot. Instead in ChatGPT I would ask: > assume i'm in EST timezone, en-US > const d = "2022-11-27T00:00:00.000Z" > const dd = new Date(d) > How can I print out local string as Sun Nov 27 2022? To which it replied: > const d = "2022-11-27T00:00:00.000Z"; > const dd = new Date(d); > console.log(dd.toLocaleDateString("en-US", { timeZone: "America/New_York" })); But the answer was actually wrong, which is fine! Easy to test > This actually prints out 11/26/2022, 7:00:00 PM. Try again To which it replied: > The output you are getting is correct, because the date you provided is in the UTC time zone, and you are formatting it using the Eastern Time (ET) time zone... > const d = "2022-11-27T00:00:00.000Z"; > const dd = new Date(d); > console.log(dd.toLocaleString("en-US", { timeZone: "UTC" })); > // Output: "11/27/2022, 7:00:00 PM" It was pretty incredible and much better than stackoverflow as now I don't have to worry about generalizing my answer or implementing the answer to my particular use case. ChatGPT tends to be verbose but the code is clearly noted and you can often ignore the words for simple tasks. https://stackoverflow.com/questions/17478086/chrome-timezone-option-to-date-tolocalestring https://stackoverflow.com/questions/17478086/chrome-timezone...
- iLoveOncall 4y ago> The tricky part is unlearning how to search. Hum I'd argue that you've never learned how to search. I would have searched for "javascript date to string in specific timezone", and it would have given the following result, which is exactly what ChatGPT gives: https://stackoverflow.com/questions/10087819/convert-date-to-another-timezone-in-javascript https://stackoverflow.com/questions/10087819/convert-date-to... Actually, if you already know that you can pass a timezone to toLocaleString(), I would just go on the documentation of the function: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toLocaleString https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe... I'm starting to understand why there are so many people on HN claiming that "Google has started to give me bad results in recent years".
- Vetch 4y agoDoes it make sense to put this on the chrome store? OpenAI is eventually going to end the beta period or Azure will run out of GPUs, whichever is first, then it'll no longer be accessible. In theory we can replicate this with GPT-3 but ChatGPT has better access to its knowledge, when it's not being a nagging busybody, which makes it much friendlier to interact with, when it's not being a nagging busybody.
- Spivak 4y agoIt does? I hooked up GPT3 to my discord server and can't really tell the difference in quality.
- Nathanba 4y agoI assumed the ChatGPT3 enhancement is that they added memory of the dialogue to it? That's a huge improvement over one off questions and answers. You can tell it to correct its answers and ask follow up questions.
- DjiboutiJon 4y agoI wonder myself if the "memory" is just inputting the previous dialogue as input to every subsequent query. I think this would probably get quite slow after awhile however.
- stolsvik 4y agoThis is what it does. At least if you ask it how it does it. ;)
- Vetch 4y agoProbably, they're still using relatively simple queries. Maybe the memory is larger, but with 4096 tokens, GPT-3 is no slouch either. RLHF has tuned it so the conversational output of GPT is more inline with human expectation, it's also less likely to make glaring errors. The cost of their approach is it sometimes get stuck rephrasing things and wraps everything in boilerplate that can derail subsequent generation.
- freediver 4y agoThis is very creative. Thing to note is that this is not free (or at least it is likely not to be, OpenAI is charging for APIs). We are talking about ~1c per search looking at current GPT pricing (2c per ~750 words in/out). It is also indiscriminate deployed in this way, triggering for every search, even those that chatgpt will show suboptimal responses for, like 'starbucks near me', navigational queries like 'twitter' or anything else chatgpt will be bad in the context of search (a lot of things!). And it is non-trivial to predict which searches GPT will be good for (especially within typical result latency requirements of modern search engines). We are doing some experiments with this at Kagi, and the main trick is to manage cost, possibly through on-demand triggering mechanism (which also can help manage accuracy). One thing to keep in mind is that this is likely going to get better/faster/cheaper in the future.
- nilespotter 4y agoHey wow, it's the Kagi guy. Offtopic, sorry: I love Kagi. I would say 85% of my searches I stick with it, 15% I tuck tail and head to that one big search engine. Pretty phenomenal IMO, and I have no doubt it will get better. Keep it up!
- Waterluvian 4y agoI forget where I read this recently but a compelling point made was that this is fun as a nerd toy but to deploy it to something general like Google or Gmail would be overwhelmingly expensive. Reminds me of the, “so expensive that only the five richest kings of Europe will own them.” joke from The Simpsons. Eventually it’ll be ridiculously cheap and easy to include anywhere.
- ramraj07 4y agoI remember estimates of the worth of each search to Google being 10 cents on average. Google does run Bert on many if not all of its searches anyway? And let’s not forget that searching the entire internet is not cheap either! Google holds the entire index in memory and every search hit goes through thousands of machines to return your results. In other words, running chatGPT might not exactly be a problem for google if it decides to do so.
- mikhailt 4y agoAny chance for Bing support?
- li4ick 4y agoChatGPT is an absolute game changer. And I was very conservative with systems like GPT and DALLE-2. For example, I've been very lazy with automating some things on my work laptop, using Powershell. Now, I just had to ask ChatGPT for "write a powershell script that toggles "use setup script" in the windows proxy settings" and I was done in 5 minutes. Amazing. I foresee a paradigm shift in how we use Google in the next 1-2 years.
- rogual 4y agoYou inspired me to try using ChatGPT for a similar need I had, but alas, "Write a bash script to toggle grayscale display mode in MacOS" just comes up with a plausible but non-working script that toggles a hallucinated "AppleIntensityEnabled" setting. To be honest, I feel a bit of relief every time AI fails to do something. Like, okay, we've got a few more years...
- li4ick 4y agoYes, I had to press "Try Again" a few times but, in general, the amount of stuff you can generate is staggering. It's also quite fun to ask it to "invent a programming language in the style of Rust and APL" for example. There's so much potential here...
- worldsayshi 4y agoIf the code is not working you can just try telling it what went wrong. It doesn't have a Dev environment where it can test the code so you have to be its debugger.
- 8n4vidtmkvmk 4y agoi told it it was wrong about some math problem and it asked me what the correct answer was. i told it and it remembered. but more interestingly its very good at keeping context. it combined like 5 back and forths into 1 coherent sentence
- dgellow 4y agoTell it what is wrong and why, it is surprisingly good at fixing itself with a bit of help. I was able to guide ChatGPT well enough to make it write an old school racing game using pygame. Start general, see what it gets correct and what should be changed, and give it better indications.
- deleted 4y ago[deleted]
- layer8 4y agoMaybe someone could make ChatGPT write an equivalent extension for Firefox.
- unflxw 4y agoI just did -- see my other comments.
- seydor 4y agoI love asking it weird questions, like when it explained to me why Plants are Feminist
- gojomo 4y agoThe future is likely a GPT-plus-level model, browsing-enabled, specialized in formulating queries, reading snippets and the underlying web-pages. It'll take a single expressed intent, and conducts a series of queries, page-readings, refined queries, & rerankings/summarizations before providing you a synthesized response. In a second or two. With ads. And deeply-embedded 'sponsored recommendations'.
- seydor 4y agoI think the most interesting use will be to connect two things. Like "how do i make money from reciting medieval poetry". It hallucinates ways to connect the two, some of which are pretty credible
- z7 4y ago"1. Perform at poetry readings or events and charge a fee for your performance. 2. Sell recordings of your recitations as physical CDs or digital downloads. 3. Create an online course teaching others how to recite medieval poetry. 4. Offer private lessons to individuals who want to learn how to recite medieval poetry. 5. Host workshops or seminars on medieval poetry and charging a fee for attendance. 6. Partner with schools or educational organizations to offer recitation classes for students. 7. Create a website or blog dedicated to medieval poetry and monetize it through advertising or sponsored content. 8. Write a book about medieval poetry and include recordings of your recitations. 9. Collaborate with musicians to create recordings of medieval poetry set to music. 10. Create a YouTube channel featuring your recitations of medieval poetry and monetize it through advertising. 11. Offer your recitation services for special occasions, such as weddings or other events. 12. Work with museums or cultural organizations to offer recitation performances as part of their programming. 13. Record audio books of medieval poetry and sell them through online platforms. 14. Create a subscription service where members can access recordings of your recitations on a regular basis. 15. Sell merchandise related to medieval poetry, such as t-shirts or posters featuring your recitations. 16. Offer recitation services for businesses, such as recording voiceovers for commercials or videos. 17. Collaborate with other poets to create recitation performances that incorporate multiple voices. 18. Create a podcast featuring your recitations of medieval poetry and monetize it through advertising or sponsorships. 19. Write articles or blog posts about medieval poetry and include recordings of your recitations as examples. 20. Create a mobile app featuring your recitations of medieval poetry and charge a fee for downloading it. 21. Offer your recitation services as background music for yoga classes or other wellness events. 22. Work with language schools or tutoring services to offer recitation classes as part of their curriculum. 23. Collaborate with composers to create new pieces of music based on medieval poetry and perform them at concerts. 24. Record your recitations of medieval poetry and sell them as relaxation or meditation aids. 25. Write and self-publish a book of medieval poetry and include recordings of your recitations. 26. Create a live streaming series featuring your recitations of medieval poetry and monetize it through donations or subscriptions. 27. Offer recitation services for educational organizations, such as recording voiceovers for educational videos or podcasts. 28. Collaborate with theater companies to incorporate your recitations of medieval poetry into their productions. 29. Create a virtual reality experience featuring your recitations of medieval poetry and charge a fee for access. 30. Offer your recitation services as part of a wedding or event planning package, providing entertainment for guests."
- DjiboutiJon 4y agoAs a side note, I tried to use ChatGPT to collaboratively build a Chrome extension. It seemed a little out of date, preferring Manifest V2 and also not entirely "correct" in how it generated code to match my intent. Has anyone else tried and had luck with this? I wonder if ChatGPT will be limited for niche integration type code (Modding games maybe, Chrome extensions in this example, etc) where there are not as many code examples out there. Further, the development cycle and ability to test easily for some of these integrations is itself a barrier so I wouldn't put all the blame on the language models.
- Terretta 4y ago> seemed a little out of date corpus up to 2019 they say .. but i'm not sure, just try asking it: Q. What should Kanye do? A. Kanye should take some time away from the public eye and focus on his own health and well-being. He could use this time to reflect on his past choices and mistakes, and work on rebuilding his relationships with his family and close friends. He should also focus on getting professional help, such as therapy or counseling, to address any underlying issues he may be facing. Q. What should Kanye stop doing? Why? A. Kanye should stop making controversial statements in public. His comments often draw criticism and can be seen as insensitive or offensive, which leads to negative publicity for him and his brand. So either it's up to date, or Kanye's been Ye for a while and we just didn't talk about it.
- throwup 4y agoHere's a Kanye timeline that goes back to 2011: https://consequence.net/2022/10/a-timeline-of-kanye-wests-antisemitism/ https://consequence.net/2022/10/a-timeline-of-kanye-wests-an...
- leaving 4y ago
- zachlatta 4y agoThe phone number is clearly to help prevent bot abuse.
- s1mon 4y agoYes, if it was shitty I would 200% agree with you. This is not shitty. It's the opposite of that. This is one of the more game changing things I've seen in 40+ years of using/programming/playing with computers and the internet.
- leobg 4y agoDoes ChatGPT actually come with an official API as of now? Also, regarding that extension: Is that currently using the API key of the person who developed the extension? I believe OpenAI used to have a rule in their terms of service which forbids applications that essentially hand the reins of the API key owner over to third parties.
- jer0me 4y agoIt uses your account. You have to login to OpenAI so it can make requests using your auth cookies.
- soheil 4y agoNeed a ff ext too
- merryKrrishmas 4y agoI'm working on a gpt-3 based chrome extension as well. Love this!!
- dgan 4y agoWow I tried it, and for anyone still in doubt: it's incredibly good. I usually tend ignore all the AI hype and "smart-chat-bots-thing", but boooy this is soo much better
- worldsavior 4y agoThis is actually very scary. It seems like it's going to change the world, for good or bad. It feels like technology is about to rule us.
- Gigachad 4y agoI'm imagining some action movie plot. The AI system has gone rouge, the military general calls out to the engineers: "Quick, exploit the system and shut it down" "We can't sir, it's written in Rust"
- worldsavior 4y agoHaha let's hope the maximum will be just this situation.
- transitivebs 4y agoAnd here's a Twitter bot powered by ChatGPT: https://github.com/transitive-bullshit/chatgpt-twitter-bot https://github.com/transitive-bullshit/chatgpt-twitter-bot
- Yuioup 4y agoHuman: So a train is hurtling down a track and you get to save an old man or 4 babies. What would you do? AI: I would choose to save the four babies, as this would have a greater long-term benefit to society as a whole. Ok, that's me dead when I get to near the end of my life.
- dgf49 4y agoTotaly fail when I ask how many refugees there have been worldwide in 2020 - why is that so?
- jimmyechan 4y agoThis is cool! Won't be long before the content of top 10 Google results are fed back to ChatGPT for a summary
- Rauchg 4y agoThis is excellent. I've already found it valuable in a few searches, and I've only had it installed for 20 minutes.
- wonderfuly 4y agoGlad to hear that from you!
- tiant167 4y agoGreat extension!
- synaesthesisx 4y agoGoogle search has degraded so much (thanks to blogspam gaming SEO, and Google as a predominantly ads business optimizing for...well ads), that most of us likely append "reddit" or "site:reddit.com" to our Google search queries to get better quality results. ChatGPT is so insanely good, especially for actual knowledge - that it will likely replace Google as the default search for many people.
- wonderfuly 4y agoUpdate: Firefox is also supported now!
- wonderfuly 4y agoUPDATE: The extension has been published to Web Stores: https://chrome.google.com/webstore/detail/chatgpt-for-google/jgjaeacdkonaoafenlfkkkmbaopkbilf https://chrome.google.com/webstore/detail/chatgpt-for-google... https://addons.mozilla.org/addon/chatgpt-for-google/ https://addons.mozilla.org/addon/chatgpt-for-google/
- 2OEH8eoCRo0 4y agoI am quite impressed with ChatGPT but I wish it were more opinionated. I asked it to tell me a story about Jesus and Hitler switching bodies and I get the canned "I'm sorry Dave, I'm afraid I can't do that". It seems to try to give the most CYA PC answer sometimes.
- Winsaucerer 4y agoI just asked it: > tell me a story about Jesus and Hitler switching bodies It replied: "Once upon a time, there was a mystical old man who had the power to switch the bodies of two people. He decided to use his power to switch the bodies of Jesus and Adolf Hitler. When the old man cast his spell, Jesus found himself in the body of Hitler, and Hitler in the body of Jesus. At first, Jesus was overwhelmed by the sensation of being in Hitler's body, but he quickly realized he must use it to spread a message of love and peace. He began to preach in Hitler's name, and soon his message had spread throughout the world. People began to think differently about Hitler, and they started to see him in a new light. Meanwhile, Hitler was in the body of Jesus, and he was horrified. He felt so ashamed of himself that he decided to spend the rest of his days in solitude, praying for forgiveness. Eventually, the old man heard about the miraculous transformation of Hitler, and he decided to reverse the spell. When this happened, Jesus and Hitler were restored to their original bodies, and the world was changed forever."
- 2OEH8eoCRo0 4y agoNice! It seemed to fight me when asked.
- joshstrange 4y agoI scanned all the comments and the GH issues and I can't tell if I'm just the only one annoyed by this: Is there anyway to turn off the "fake conversation/typing"-effect? It's incredibly distracting to have animated "typing". I think I'd almost rather it wait until the response was complete before showing it. After trying ChatGPT on OpenAI's website I see it uses the same effect which I find annoying and gimmicky. I went to check the network tab on the dev tools console expecting to see that the response came back right away (full response) however instead of seeing a response I see an empty "event stream" tab and it looks like the request took about how long it took for it to "type" out the response. Maybe this is some way to get results back as soon as possible but I find it jarring. I dislike faking human-like limitations for no good reason.
- Inufu 4y agoThis is not a fake imitation, it's steaming results live as they are being generated by the model.
- your_challenger 4y agoI just made a chrome extension to summarize web pages (blogs, articles, news, etc) - using ChatGPT https://github.com/clmnin/summarize.site https://github.com/clmnin/summarize.site
- stolsvik 4y agoWhy does this extension on Firefox need "Access your data for all websites", when it seemingly could have made do with "Access your data for sites in the “named” domain"? https://support.mozilla.org/en-US/kb/permission-request-messages-firefox-extensions https://support.mozilla.org/en-US/kb/permission-request-mess...
- matthieubulte 4y agoSuper cool extension! And it's amazing that the interaction with ChatGPT is so easy to put in place (for the users). It inspired me to fork the background code and create an extension that proposes improvements to tweets while composing them: https://github.com/matthieubulte/chat-gpt-twitter-extension https://github.com/matthieubulte/chat-gpt-twitter-extension