Find 4 most relevant skills for job from list


I want to use gpt-3.5-turbo to identify most relevant skills for the job based on list of skills that I provide(2k skills)
Currently I use simple prompt:

You will be provided with the following information:

1. Job title
3. Skills list

Perform the following task:

Identify 4 relevant skills from the provided list. 

Skills list: [ ${skills?.join(',')} ].

Job Title: "${title}"


But it’s unstable. Sometimes may return 5 skills. Sometimes may stuck.

What is the best way to do this?
Should I use embeddings or fine-tuning for that?

You can probably work on tweaking your prompt first. What if you include an example response in your system message:

Respond with this example format:
1. Skill1
2. Skill2
3. Skill3
4. Skill4