How AI Search Engines Work: ChatGPT, Claude, Perplexity & More