template of recommendation pipeline