Lurker News

Comments (149) 37 threads

freediver9 replies#
This 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#
Hey 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!
Waterluvian1 reply#
I 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.

ramraj074 replies#
I 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.
Waterluvian5 replies#
Google’s search of “the entire internet” is lacking more and more every year.

It’s probably not true at all anymore. It’s probably “the sliver of the Internet we prefer you interacted with.”
Any time I search these days I’m amazed at how you can exhaust the search in 1-2 pages before you get to “related hits.”

Continue this thread — 5 replies

freediver2 replies#
I'd estimate that running a large language model like GPT-3.5 or Lambda is currently 100x-1000x both more expensive and slower to run inference through than a language model like BERT.

So deploying it at Google scale is not viable (yet).
There is also the question of incentives. If an LLM model can return exactly what the user asked for, where do you put ads? Before the answer, after the answer or inside the answer? Any of those is a bad outcome for the user wanting just the answer.
We already witnessed the failure to monetize Alexa with ads - in a purely question answering setting, users will not tolerate anything but the answer itself. Thus, the business model for this needs to be paid AI/search, and Google would be facing innovator's dillema. If I was writing a book about Google, I would love to witness the VP level meetings at Google at this moment.

Continue this thread — 2 replies

spaceman_20202 replies#
The question is: how does Google monetize chatGPT results? If the answer is right there on the page, what’s the incentive for anyone to click on an ad?

Continue this thread — 2 replies

fnordpiglet#
If the entire internet is composed of bot written SEO spam, I think you’re spot on.
Terretta#
For search, abandon Google, not hope. All ye should enter here: https://kagi.com

// as a kagi user, i'd
(a) imagine this as a lens at the simplest; just pick text-davinci-003, tokens 3000 to leave room for prompt, temp 0.7, freq 1 - 1.5, presence 0.5, and instead of best of 3 or 5 show repeated calls as if 3 - 5 unique results
(b) imagine a richer implementation that summarizes other articles on first SERP, then collates and summarizes those (with the compare/contrast structured synthesis GPT-3 does well when POVs differ), and shows the final rollup summary above the individual summaries, in the right hand column
// would also be OK connecting it to my OpenAI token so I'm paying, not you. having done the math, it's nominal cost if not the default mode.

echelon2 replies#
The true killer apps will come when StabilityAI or another group releases an open source equivalent of GPT-3.5.

Compare Dall-E to the creative explosion that arose from Stable Diffusion.
Nobody is going to build the next Google atop OpenAI APIs except for OpenAI themselves. An open source model and pretrained weights will open the playing field for everyone to compete with Google.

tzm1 reply#
Stable diffusion for davinci003 is coming
echelon#
I can't wait!
charcircuit#
Stable diffusion can run on regular PCs. GPT-3.5 on the hand can't without doing a lot of swap between disk and vram making it sl.
spaceman_20203 replies#
If it’s possible, please create a family plan or regional pricing. I love Kagi but if I were to buy it for my entire family, the bill would be $600/year - more than a month of rent.
esperent2 replies#
In the country where I live (Vietnam) $600 would be 3-4 months wages for many people.

Any company that doesn't do regional pricing is only interested in doing business with rich countries. Which sucks but is understandable. I wish they were more honest about it though.

palunon2 replies#
> Any company that doesn't do regional pricing is only interested in doing business with rich countries. Which sucks but is understandable. I wish they were more honest about it though.

This may be true if your cost per client/customer/etc is either negligible (such as with digital goods delivery), or dependent on their country (eg. retail).
Here, the bulk of their cost is computing resources, and they (according to their profile page) don't even make enough to cover it with the current price. I don't think this cost would go down with the customer location.
Yeah, it sucks a lot that people in rich countries can afford things people in other countries cannot, but that's kinda what "rich country" means.

Continue this thread — 2 replies

shepherdjerred#
> Any company that doesn't do regional pricing is only interested in doing business with rich countries. Which sucks but is understandable. I wish they were more honest about it though.

Kagi loses money on their paid customers. If you have a Kagi account you can see how much you cost them. It makes no sense to offer regional pricing unless there is also a way to serve those customers in a cheaper way.

hsuduebc2#
Will you have a family plan? Yes, in the future we will also offer the family plan. It will allow for adding multiple accounts under the same billing. And it will include powerful options for kids (Kagi for Kids) including control over the acceptable content.
plextoria#
I saw they have a Team plan, doesn’t that work for you?
cma#
Results for the same query can be cached, making the Starbucks near me type queries bypass GPT3 other than the first time across all users.
shepherdjerred#
It's awesome to hear that Kagi is experimenting with this. Even if it's some extra paid opt-in feature, I'd give it a chance.
fennecfoxy#
I don't know why people are always so up in arms about cost: if Google switched to a paid rather than ads model and charged 1 credit (1c) per search you made, I'd still use it.

People always raise such a ruckus: how dare Youtube offer premium, etc. People get too addicted to free services and become self-entitled.

chrisshroba1 reply#
> it is non-trivial to predict which searches GPT will be good for

Since pricing is roughly proportional to response length (and maybe prompt length?), it seems like ChatGPT could use itself to determine if the search is a good fit or not. Give it a prompt like "I want to know if you are likely to generate more immediately useful and actionable results than my web search. The query I am searching is . Should I run you on this query?"
I tried running that on some sample queries to see its output, and compiled its responses in this table (note the last one is incorrect in my opinion):

    | Query                              | Yes or No |
    |------------------------------------|-----------|
    | "starbucks near me"                | No        |
    | "twitter"                          | No        |
    | "python requests get json"         | Yes       |
    | "peach and mango cocktail recipe"  | Yes       |
    | "hn"                               | No        |
    | "image of versaille"               | Yes       |
Btw, incredibly, ChatGPT actually made that table for me when I said "Please compile all the queries I just asked you about into an ascii table, where the first column is my query, and the second column is your Yes or No answer." The table it printed was correct but formatted as an HTML table, so I asked it to put it in a code block and I got almost exactly what I pasted above (just had to remove two extraneous spaces that made the lines not line up)
freediver#
Yep, this is one of the amazing things about it. But using ChatGPT to determine whether a query is good for ChatGPT answer does not address the second point I made, one about typical latency requirements (it makes it worse).

Normally you want your search results in about 500ms. Using ChatGPT to first figure out if the query is good will take 1-3 seconds then using it again another 1-3 seconds. So we are talking about results in about 4 seconds. Plus it is not 1c per query now it is more likely 1.5c per query as you introduced an extra prompt.

bko1 reply#
I 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...

iLoveOncall3 replies#
> 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...
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/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".

isthiseasymode1 reply#
> 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".

I thought I was going crazy. Googles been working fine for me and I was wondering if I was just being delusional or in denial.

david_allison6 replies#
I was served maybe 60-80% spam from Google around 10 months ago (now resolved). The results you see can be significantly different from what others see.

Sample from 10 months ago: https://i.imgur.com/Hla7cyT.jpg

Continue this thread — 6 replies

bko#
But I don't want a specific timezone. I want it to ignore the timezone. I knew it was being thrown off by timezone but was unsure why.

This is one of dozens sometimes hundreds of questions I need answers to every day and want to minimize the friction. I don't want to have to read this unless I don't have to. Sure sometimes if its important enough or I'm curious, but the ChatGPT answer was much better for me. And I get by fine on Google otherwise
function convertTZ(date, tzString) {

    return new Date((typeof date === "string" ? new Date(date) : date).toLocaleString("en-US", {timeZone: tzString}));
}

// usage: Asia/Jakarta is GMT+7
convertTZ("2012/04/20 10:10:30 +0000", "Asia/Jakarta") // Tue Apr 20 2012 17:10:30 GMT+0700 (Western Indonesia Time)
// Resulting value is regular Date() object
const convertedDate = convertTZ("2012/04/20 10:10:30 +0000", "Asia/Jakarta")
convertedDate.getHours(); // 17
// Bonus: You can also put Date object to first arg
const date = new Date()
convertTZ(date, "Asia/Jakarta") // current date-time in jakarta.

agilob#
Reading documentation instead clicking first SO link or writing 6 lines to a bot? You must be crazy!
li4ick3 replies#
ChatGPT 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.
rogual3 replies#
You 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#
Yes, 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...
worldsayshi1 reply#
If 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#
i 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
dgellow1 reply#
Tell 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.
Xelynega1 reply#
Chatgpt isn't a person though, it didn't fix anything. You gave it a prompt, it gave a result that was close. You add a line to the prompt and it gives you something closer to what you were looking for.

It looks more like refining a search pattern(like one might do with an LDAP query) on the part of the operator than it does an algorithm "fixing", "changing", and "being guided". It's interesting how we anthropomorphism the output of this algorithm compared to other APIs, even though the algorithm is closer to oher APIs than it is a human as far as we understand.

Continue this thread — 1 reply

blablabla123#
> And I was very conservative with systems like GPT and DALLE-2

Yeah those are impressive but basically toys. Although at the moment it's clearly still a research prototype. For some things it works really well and beats Google by saving dozens of clicks and repeated searches, for others it's just plain wrong.

majkinetor#
Can you show that pwsh script?
gojomo4 replies#
The 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'.

Continue this thread — 4 replies

Load more comments