I don't understand gnats in the house, they are usually an outside problem. Are you speaking about 'fruit flies'? If so my exterminator told me to put 2 tablespoons of bleach down all drains at least once a month. The drains are where they breed. No more fruit flies.