Lurker News
Hi HN,

Today we’re launching GPT-4 answers on Phind.com, a developer-focused search engine that uses generative AI to browse the web and answer technical questions, complete with code examples and detailed explanations. Unlike vanilla GPT-4, Phind feeds in relevant websites and technical documentation, reducing the model’s hallucination and keeping it up-to-date. To use it, simply enable the “Expert” toggle before doing a search.
GPT-4 is making a night-and-day difference in terms of answer quality. For a question like “How can I RLHF a LLaMa model”, Phind in Expert mode delivers a step-by-step guide complete with citations (https://phind.com/search?cache=0fecf96b-0ac9-4b65-893d-8ea57...) while Phind in default mode meanders a bit and answers the question very generally (https://phind.com/search?cache=dd1fe16f-b101-4cc8-8089-ac56d...).
GPT-4 is significantly more concise and “systematic” in its answers than our default model. It generates step-by-step instructions over 90% of the time, while our default model does not.
We’re particularly focused on ML developers, as Phind can answer questions about many recent ML libraries, papers, and technologies that ChatGPT simply cannot. Even with ChatGPT’s alpha browsing mode, Phind answers technical questions faster and in more detail.
For example, Phind running on “Expert” GPT-4 mode can concisely and correctly tell you how to run an Alpaca model using llama.cpp: (https://phind.com/search?cache=0132c27e-c876-4f87-a0e1-cc48f...). In contrast, ChatGPT-4 hallucinates and writes a make function for a fictional llama.cpp.
We still have a long way to go and would love to hear your feedback.

Comments (414) 162 threads

Show all comments

Showing thread 1 of 162

dalmo33 replies#
I've replaced 90% of my Google searches with Phind in the last few weeks. My use cases are learning a new API, debugging, generating test cases.

It's amazing. Real time saver. Just yesterday it saved me from going down an hour+ rabbit hole due to a cryptic error message. The first solution it gave me didn't work, neither did the second, but I kept pushing and in just a couple of minutes I had it sorted.
Having said that, I'm not sure I see the gain with Expert mode yet. After using it for the last couple of days, it's definitely much slower but I couldn't perceive it to be any more accurate.
Judging by your example, it looks like the main difference is that the Expert mode search returned a more relevant top result, which then the LLM heavily relied on for its answer. If search results come from bing, can you really credit that answer to Expert mode?
PS. You mention launching GPT-4 today, but the Expert Mode toggle has been there for at least a few days, I reckon? Was it not GPT-4 before?

rushingcreek1 reply#
Love to hear it. It's true that for some searches you might not notice a difference, but for complex code examples, reasoning, and debugging Expert mode does seem to be much better. We quietly launched Expert mode a few days ago on our Discord but are now telling the broader HN community about it.

We're working on making all of our searches the same quality as Expert mode while being much faster.

Paul-Craft1 reply#
I'm definitely giving this a try sometime soon. I had an idea back when it was just GPT-3 out there, to use LLM-generated embeddings as part of a search ranking function. I'm betting that's roughly how Expert mode works, right?

Edit: Just had another thought. You could use the output of a normal search algorithm to feed the LLM targeted context, which it could then use to come up with a better answer than it would without the extra background. Yeah, I like that.
Although, I will say I asked it about writing a lisp interpreter in Python, because I was just tooling around with such a thing a little while ago for funsies. It essentially pointed me to Peter Norvig's two articles on the subject, which, unfortunately, both feature code that either doesn't run properly or doesn't run right at all. I was disappointed.

rushingcreek#
We do use the output of a "normal" search algorithm to feed our LLM context :)

Did you use Expert mode for your search? Only Expert mode is GPT-4 and its code quality is vastly superior to that of the default mode.

steve-atx-76001 reply#
google who?
angelbar#
its a verb now, I search at phind.com
Rastonbury3 replies#
I'm a beginner, so I'm unable to tell if it's hallucinating or not. Do you find it hallucinates or is incorrect? I'm wary of noting stuff down and remember wrong things an don't want to drill 2 levels deep for each question
bentcorner1 reply#
I just tried it for a problem I solved in Azure Data Explorer and it solved it by making up some APIs that don't exist. It got close to how I solved the problem but cheated even with Expert mode enabled.
Rastonbury4 replies#
Seems like accuracy is the next killer feature for LLM search and teaching, will try again in 6 months

Continue this thread — 4 replies

unshavedyak1 reply#
I've been using ChatGPT 4 the past couple weeks and also Phind just last night with a new library version. While yes, i did find that Phind was wrong a lot (though i don't think it was fully hallucinations, just wrong library version combinations), i think there's a more important point to be made.

Unless we get a very near breakthrough on self-validating accuracy of these models or models+plugin combinations, i suspect it may be a useful skill to learn to use LLMs to explore ideas even when hallucination is a risk.
Ie searching with Google is a skill we have to acquire. Validating results from Google is yet another skill. Likewise i feel it could be very useful to find a way to use LLMs in a way where you get the benefits while managing to mitigate the risk.
For me these days that usually translates to low risk environments. Things i can validate easily. ChatGPT was a good starting off point for researching ideas. It's also very useful to know how niche your subject matter is. The less results you find on Google for your specific edge case the more likely ChatGPT will struggle to have real or complete thoughts on the matter.
Likewise i imagine similarly this is true for Phind. Yea, it can search the web, but as my tests last night showed it still happily strings together incorrect data. Old library versions, notably. I'd say "Given Library 1.15, how do i do X?". It did eventually give me the right answer, but it happily wrote up coding examples that were a mix of library versions.
I imagine Phind will, to me, be similarly useful (if not more?) than ChatGPT, but you really have to be aware of what it might do wrong. .. because it will, heh.

rushingcreek#
We definitely still have work to do in this area and the feedback we've gotten here is incredibly helpful. Having the AI be explicitly aware of specific library versions so it doesn't mix-and-match is a high priority.
marginalia_nu#
It seems to be sort of a bit wrong more often than it hallucinates.

I've had it straight up invent a library that doesn't exist once, but that seems to be quite rare and you need to be deep in the weeds with a rare problem domain to get that.
More often I ask it how to do something, and it sort of provides an answer, but not quite. So I point out the flaw, and it fixes it, but not quite. Rinse and repeat. After anywhere between 4-10 iterations it's usually quite good. The experience is like code reviewing a really apologetic and endlessly patient junior developer.
Although I think what might be a beginner's saving grace is that it seems to be better at beginner questions than advanced questions, since there are more of them in the training data.