As this has been brought up by various posters:
Current guidelines (WHO, American CDC, Thai Red Cross) don't care about this.
Neither do they care if the dog never leaves the garden.
(Reason: rabies is 100% deadly, vaccine is very well tolerated)
So these posters are right:
You should get post exposure prophylaxis: 4 shots of vaccine plus 1 shot of immunoglobulin if you have never had rabies vaccine. If you were vaccinated before, only 2 shots of vaccine. (There are other vaccination schedules, too)