Last chase I had was from two small Terriers.
Terriers are old world dogs with strong hunting/chase instincts.
I got off my bike faced them and scolded them (2) to go home.
They barked a bit more in protest but relented satisfied they got their chase for the day.
It's the bigger dogs like a Rottweiler once that I had to dismount, place the bike between me and the lunging dog, and walk backwards about a 1/4 mile.
I had help from a driver that pulled in front of the dog and beeped her horn.
That could have been ugly. I carried pepper spray for awhile after that close call.