I think that the dye's function is to capture wavelengths of light to which the silver is not sensitive and donate electrons to the silver in the emulsion

They definetely act on the molecular level.