Neural Bandit Based Optimal LLM Selection for a Pipeline of Tasks