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
shaunxcode#
Interesting but my goto question of "define an fexpr in lisp 1.5 in m-expression syntax" did not yield success. It gave me something in s-expression calling itself and fexpr but not actually declaring it. If it can't get 1958 state of the art right what good is it? (obviously sort of joking)
jacobr13 replies#
We need someone to build this that indexes the myriad of corporate data hidden in various docs and saas systems.
rushingcreek1 reply#
Exactly this is being built by our good friends over at https://needl.tech!
jacobr11 reply#
Looks like they have the integration half of the equation. But also they need to plugin the summarization/synthesis utility to fully realize the value. There have been enterprise search apps in the past and they usually have failed because of A) too much data and no clear way to prioritize and B) keeping up with all the new systems that arise all the time.

If some kind of GPT pipeline could solve A above - and identify the relevant synthesis of data into a coherent answer it would be supremely useful. I usually can do a search in 3-5 systems manually - just getting the results while akward isn't the problem. The problem is knowing which nugget of info in 80 pages of slack search results is relevant to my problem.

Game_Ender#
Check out https://glean.com no clue how good their new “AI” features are but it definitely unlocks all the date from the typical corporate tools and gives you one search box.
marginalia_nu#
If you know the answer, and you are pretty persistent in nudging it in the right direction, it will eventually give you the answer you expect.

> I have a sorted list of integers and a B-Tree that is much larger than the list of integers. I want to find which integers exist in the b-tree as quickly as possible.
> This is a naive solution. Can't I re-use the knowledge gained from finding one item in the B-Tree to reduce the computation for finding or excluding the next?
> This is inefficient because it traverses the entire B-tree. The B-tree is very large, and the tree itself excluding leaf nodes is longer than the list. The leaf nodes are relatively large, but smaller than the list of numbers.
> What if I look at the first item in the list, and then find the corresponding leaf in the b-tree and compare it with items in the list until they no longer belong in that node, and then repeat the process by finding the next leaf node and comparing items in the list.
> Doesn't a b-tree have more than 2 nodes?
[It seems to have real trouble distinguishing between b-trees and binary trees.]
> What if I look at the first item in the list, and then find the corresponding leaf in the b-tree and compare it with items in the list until they no longer belong in that node, and then repeat the process by finding the next leaf node and comparing items in the list.
> What if the next leaf node is found by traversing from the root node looking for the next item in the list, rather than brute force searching the entire tree? The tree is much larger than the list and visiting each leaf node is slow.
> Are you sure the time complexity isn't linear?
[ n.b. this isn't actually true, but I wanted to see if it would agree ]
> The leaf nodes in a b-tree are pretty large compared to other tree types. Is the height of the b-tree really expected to be a significant factor on realistic hardware? Assume leaf node sizes of 512 and a tree no larger than 128 Gb.

baumschubser1 reply#
Well… I asked the (admittedly poorly phrased) question: "With deno and oak, how can I validate the input and cast it in the different routes?"

Phind suggested "one way is to use the built-in validation middleware provided by Oak, called validator.". It went on to describe this middleware, its helper functions and give me code examples how to use it.
Thing is: This "validator" middleware does not exist.
I asked for more examples, and Phind provided me with more examples, listing all validation functions.
When I said that there is no such thing as a built-in validator middleware in Oak, Phing admitted that it appears to be removed in version 6.0 (we are currently at version 11), according to the Oak documentation (with a link to it's Github repo - where I did not find any match in code for "validator").

Load more comments