How do you get away from someone politely? Use one of these tactics: Tell them you don’t want to monopolize their time. Tell them you see someone you need to speak with. Excuse yourself to go to the restroom. Tell them you’d like to continue meeting new people.
Just remember to be polite – you never know when you’ll meet this person again.