Learning to adapt: From structured domain adaptation to efficient in-context learning for large language models | Synapse