A cationic [Ag12S12] cluster-based 2D coordination polymer and its dye composite with enhanced photocurrent and dielectric responses.