Very common problem.
1. Gnatrol- Follow label instructions, and remember to store in the refrigerator. Contains nematode, which eats the eggs and larvae in the soil. Will probably require several doses over 2-3 weeks.
2. GnatStick- yellow sticky cards attracts the flying bastards.
Employing these 2 methods simultaneously will control the problem in 2-3 weeks.