The Partenopei missed a penalty but still found themselves three goals to the good at the Stadio Carlo Castellani.
However it was a tense finish for Napoli as the hosts managed to pull two goals back through Omar El Kaddouri and Massimo Maccarone’s spot-kick.
Hamsik was pleased to get over the line with a 3-2 win but knows his side can't afford to allow opposition teams back into games so easily.
“We are happy with the victory, but we can’t improve like this. We can’t gift a half to Empoli and risk throwing away the win. We can’t leave here having struggled so much,” Hamsik told Mediaset Premium.
“Empoli were more aggressive in the second half, we didn’t do what we were meant to, and this is not the way to get stronger. We’re going to have to sit down and have a talk.
“We want to go straight into the Champions League and after the international break we’ll think about the two big games against Juventus.”