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

Earlier comments
mbStavola3 replies#
This is exactly what I want the future of search to be-- give me some AI generated summaries / snippets / guides but also the sources that were used to come up with that response.
manojlds1 reply#
Which is what Bing Chat has been doing for a while now?
dalmo32 replies#
Phind is just a website. You don't need do download a whole new browser to use it.
debian34 replies#
I’m using it in Firefox, there’s a extension for that.

Continue this thread — 4 replies

manojlds#
I am just saying this is not new.
TuringNYC#
> This is exactly what I want the future of search to be-- give me some AI generated summaries / snippets / guides but also the sources that were used to come up with that response.

More confirmation of just how bad this mode of operation will be to Google's traditional business

mimo842 replies#
as content creator this makes me not wanting to create any new content, in fact this year I slowed down a lot, probably I'm going to a complete halt.
billythemaniam#
How come? Genuinely curious.
titaniczero#
Why? Genuinely asking.

As a software engineer this all is very inspiring. I’m tickled and excited to do things again. I’m also learning deep learning and statistics and having a blast with toy projects.

replwoacause#
This works about 10% of the time for me. 90% of the time this is what I see:

"The inference service may be temporarily unavailable - we have alerts for this and will be fixing it soon.
You can try the regenerate button in a few moments.
If your query still does not work, you can try searching this on Google or DuckDuckGo.
You can also prefix your question with !g or !ddg shortcuts. You may have to enable popups for this to work."

9dev1 reply#
Just tried it with a PHP question regarding type safety, and it completely made up some lovely syntax I wish the language had, but doesn’t. It got lots of things right, but that one crucial detail wrong.

That makes it the same dangerous tool as ChatGPT that is useful to experienced coders, but utterly disastrous for newcomers.
> Question: > in php using psalm, how can i specify template parameters for newly constructed instances?
> ANSWER

  // Create a new instance of MyClass with a string parameter
  $my_instance = new MyClass("Hello World!");

  // Call the getValue method to retrieve the value
  $value = $my_instance->getValue();

  // The $value variable is now a string
  echo gettype($value); // outputs "string"
> To create a new instance of MyClass with a specific parameter type, we use the syntax new MyClass("Hello World!");, where string is the type we want to use for T, and "Hello World!" is the value we want to pass to the constructor.

> We can then call the getValue method to retrieve the value, which will be of type string.

naiv1 reply#
I think if you are more specific , you should get a much better response.

I tried it with
Using php 8.1 and the static analyzer psalm, how can i specify template parameters for newly constructed classes?
and got a very good result including detailed explanations

9dev#
Oh yeah? I get the following delightful but equally wrong snippet:

>Another way to achieve a similar effect is to use PHP's built-in generics feature. This feature was introduced in PHP 8.0 and allows you to specify the type of a class property or method argument as a generic type. Here's an example:

  class MyList {
      /** @var array */
      private $items = [];

      public function add(T $item): void {
          $this->items[] = $item;
      }

      public function get(int $index): T {
          return $this->items[$index];
      }
  }
> In this example, we use the syntax to specify that MyList is generic and that it has a type parameter T. We then use the T type in the same way as before to specify the type of the $items property and the add and get methods.

> Using generics in this way has the advantage of being built into PHP, so you don't need to use any external libraries or tools. However, it can be a bit more verbose than using PHPDoc comments, and it doesn't provide the same level of type checking as Psalm.

redgetan#
If its using GPT-4, wouldn't this incur a very expensive bill? Especially given that the search is free? That aside, I tried using it on "how to stop mysql service in mac", and it gave me really good answers detailing different alternatives depending on what i used to install mysql. It's a lot better than what i could find on google search. So this is really awesome :)

Load more comments