You can make a barrier by simply scattering cream of tartar where the ants are entering. They will not want to pass the acidic powder and will instead flee your home.
To amp up the power of cream of tartar or apply it to an area like a ceiling where powder wouldn't stick, you can turn it into a paste with white vinegar.
Mix the two acids to form the pulp and spread it where necessary. You get the cream of tartar barrier while vinegar's fragrance disturbs the ant's scent trail.