Tailoring large language models for zero-shot relation extraction