Multi-dimensional data refining strategy for effective fine-tuning LLMs