Similarity-Based Domain Adaptation with LLMs