A.H.
Since you mentioned the soap and vinegar traps, I assume you mean gnats or fruit flies?
You may already do some/all of these things, but I will mention everything I can think of, just in case. :-)
If it's fruit flies you have, you will need to be sure to rinse all fresh fruit and vegetables as you bring them home, and then store them where the bugs can't get to them (in the fridge, or in sealed bowls or baggies, etc.).
Make sure your trash cans are thoroughly cleaned--you can use a little bleach in water to remove any residue that may be attracting or feeding the flies.
Don't let empty food containers or cans sit uncovered in your kitchen, or even in your trash cans. Same with food--especially fruit and veggie leftovers, peels, cores, etc. Take trash out at least daily, more often if necessary.
Don't let unwashed dishes sit, either--especially if they have bits of fruit, vegetables, or ketchup on them.
Continue using the traps--as you can tell, they do help.
Hope that helps! Good luck!
--A.