Origins of drain flies in apt?
Check your houseplants. It sounds like they are gnats that live in overly moist soil. Look for fungus in the soil and if you find them, decrease watering and treat with a solution of neem oil to get rid of them.