ChatGPT does not understand the code. It just pretends to be good in it and humans think it's good in it, because it looks good. But I can totally see that ChatGPT gives enormous improvements in search. You could rephrase all available