Combining generative tasks and retrieval tasks | Synapse