They're fungus knats. You can take water and add sugar and yeast. It will produce co2. After two weeks, linstead of changing the solution, leave it and make a new one. The old solution will be vinegar or wine. Some of the knats will fly into the vinegar / wine. This is to help prevent an infestation, but will not control an infested garden.