This is a guide on how to use and modify the Resume Analyzer application. The application uses OpenAI's GPT-3 model to analyze resumes and generate a set of questions based on the resume content.
- Run the application.
- Upload a PDF or DOCX file of a resume using the file uploader.
- Wait for the analysis to complete.
- The analysis result will be displayed on the left side of the screen, and the uploaded resume will be displayed on the right side.
The OpenAI model used in this application is specified in the analyze_with_openai
function. To change the model, follow these steps:
- Locate the
analyze_with_openai
function in thers/app_modified.py
file. - Find the line where the
model
variable is defined. The line should look like this:model = "gpt-3.5-turbo-16k"
. - Replace
"gpt-3.5-turbo-16k"
with the name of the desired model. For example, if you want to use thetext-davinci-002
model, the line should look like this:model = "text-davinci-002"
.
The prompt used in this application is specified in the analyze_with_openai
function. To change the prompt, follow these steps:
- Locate the
analyze_with_openai
function in thers/app_modified.py
file. - Find the line where the
messages
list is defined. The line should look like this:messages = [{...}, {...}]
. - The second dictionary in the
messages
list contains the prompt. The line should look like this:{"role": "user", "content": text}
. - Replace
text
with the desired prompt. For example, if you want the prompt to be "Please analyze this resume", the line should look like this:{"role": "user", "content": "Please analyze this resume"}
.
Please note that changing the prompt or the model may affect the performance of the application. It is recommended to have a basic understanding of how OpenAI's GPT-3 works before making these changes.