Hate gnats had them a few times. For me what works is letting the soil totally dry out before watering again, always keeping yellow stick traps up, good air movement and cool temps. If its really bad i will water with mosquito dunks and neem oil. Sand or diatomaceous earth as a top dressing...