A Comparative Study of DSL Code Generation: Fine-Tuning vs. Optimized Retrieval Augmentation