Ah, time to ask my favorite question to vet new AIs:
> In TypeScript, how can I have a component restrict the types of its children to only certain types of components? I would like a static type error.
The correct answer is "this is impossible". Every AI I've tried this on hallucinates some nonsense code that doesn't actually work. Sadly Phind is the same. It says "here's an example of how to do this" with a code sample, and then links to a StackOverflow post saying it's not possible :)
I don’t know why anyone would use it as a search engine. It works fine as an assistant which can save you time but needs fact checking, like a human assistent needs as well. Maybe they manage the search engine part as well but a good search engine (like google used to be) will be hard to replace; it is much faster and more accurate (or rather; it doesn’t make up stuff even if it gives you fake results). I think it could work fine here in just providing a guess to a solution and links it found. It is often quite on point but needs fact checking.
I know quite a lot of people, if not allowed a google search and only get vscode to try something, that would take a stab at your typescript question and not be able to tell you that it is impossible.
Asking gpt to be a search engine is the same as asking a human currently really: I vaguely remember dates from WOII history, so when you ask me in a pub quiz, I will confidently tell you something and then where to find or look up the actual answer which might be slightly or completely different, depending on if I actually matched the right event with the right date and if I remember the day and month or not.
So it is no better than ChatGPT with its bullshit generation. Confidently giving the wrong answer and output, then linking to StackOverflow with an answer saying it is not possible at all.
Once again proves that it is more untrustworthy than a normal search engine like Google. This AI hype of LLMs is truly going to subside very quickly given that the promises made by what ChatGPT, Bing AI, Bard and now Phind are collapsing right in front of us when tested.
The truth is, almost no-one here would trust their output, and now needs a extra review by a human for each output. Henceforth, there is no point in using it as a search engine or to generate anything factual given it is going to hallucinate nonsense like that and can be easily tricked to output incorrect answers, making it very unreliable.
> In TypeScript, how can I have a component restrict the types of its children to only certain types of components? I would like a static type error.
The correct answer is "this is impossible". Every AI I've tried this on hallucinates some nonsense code that doesn't actually work. Sadly Phind is the same. It says "here's an example of how to do this" with a code sample, and then links to a StackOverflow post saying it's not possible :)