How to use GPT and embeddings from OpenAI for identifying topics and related sentiments in employee feedback.
A while ago, I posted about the potential of using GPT for processing open-ended feedback from employees. I simply inputted a block of text into GPT and asked for a summary of the major topics found in the feedback. Although the output was quite accurate and the information compression achieved was very useful, this approach was somewhat limited in terms of scalability and granularity of the information provided.
To address these limitations, I experimented with another approach that includes the following steps:
I had to experiment a bit with the prompts and include some data-munging inter-steps to get useful outputs, however, it now works relatively smoothly and provides pretty good results. To test the plausibility of this approach, I tried it on publicly available feedback from more than 300 current and former employees of an unnamed company published on Glassdoor and shared on Kaggle. You can check the results of the analysis yourself in this simple dashboard.
In my opinion, it works quite well and could represent a very time- and cost-effective way to gain useful insights from employee open-ended feedback at scale, with the caveat that one has to ensure the security of the processed data, for example, by using a local LLM. Let me know what you think about this approach. And if you are interested in the Python code behind the analysis so you can play with it on your own data, here’s the link to the GitHub page with the Python code.
For attribution, please cite this work as
Stehlík (2023, April 28). Ludek's Blog About People Analytics: Employee feedback analysis using tools from OpenAI. Retrieved from https://blog-about-people-analytics.netlify.app/posts/2023-04-28-employee-feedback-analysis-using-openai/
BibTeX citation
@misc{stehlík2023employee, author = {Stehlík, Luděk}, title = {Ludek's Blog About People Analytics: Employee feedback analysis using tools from OpenAI}, url = {https://blog-about-people-analytics.netlify.app/posts/2023-04-28-employee-feedback-analysis-using-openai/}, year = {2023} }