Automatic Adaptation Rule Optimization via Large Language Models