If you know them less well, ask for a meeting to find out more about jobs in the industry: an “informational interview”. If it goes well, ask them to introduce you to people who may be able to hire you, which is effectively getting a referral from this person. Do not ask them for a job if you promised it was an informational interview, but do ask for their advice.