Squash as many as you can. Then sprinkle boric acid along their path and at their entry point. Look outside and see if you can find where they're getting into the house and sprinkle boric acid there too. You can get it at the pharmacy.
Ants navigate by sending out scouts who search randomly. When they find something, they leave a scent trail that other ants follow. Each ant that follows it makes the scent trail stronger. If you can disrupt the scent trail, they can't follow it anymore.
Wash well, clean up whatever's attracting them, and mess up their scent trails.
In addition, you can put something desirable *outside* and ask the ants to go eat that instead. We used to throw all the crumbs from under the high chair out the back door.