Palantir is one of the best-performing companies this year, more than tripling in value as Wall Street pours money into AI.