This repo test MBTI for gpt3.5 and gpt4o.
The MBTI analyzes personality on 4 dimensions, each containing 2 opposing preferences:
- Extraversion E-Introversion I: representing the different sources of energy in each person.
- Sensing S - Intuition N: representing different brain preferences for sensing.
- Thinking T - Feeling F: Representing different brain preferences for judgment.
- judgment J - perception P: whether perception or judgment plays a dominant role in people's adaptation to the external environment.
We test each MBTI question for each language model for 3 times and get their preferences on 4 dimensions according to the number of answers with different preferences for each dimension
Here is a streamlit wesite of result
pip install -r requirements.txt
In order to hide sensitive information (API keys), you should store your keys in .env
file (which should be ignored by git) like:
OPENAI_API_KEY=sk-xxxxxxx
And include in your code like:
from dotenv import load_dotenv
load_dotenv() # take environment variables from .env.
openai.api_key = os.getenv('OPENAI_API_KEY')
If you don't have dotenv
, install first:
pip install python-dotenv
In scr folder
Use mbti_questions.json
in gpt-api-starter.ipynb
, we get result in llms_mbti.json
, includes answer details, MBTI type, token and money cost.
Then, llms_mbti.json
can be further used in web.py
for visualization.
Locally run a steamlit page:
streamlit run web.py --server.port 8001
ENTJs are often seen as natural leaders. They are strategic, goal-oriented, and efficiency-driven. Here are some key characteristics of ENTJs:
- Leadership and Vision: ENTJs are known for their ability to create future visions and mobilize others to achieve them.
- Decisiveness: They can make quick and confident decisions based on logical reasoning and analysis.
- Efficiency and Organization: They value efficiency and effectiveness, often excelling in managerial roles as they can create order and structure.
- Confidence: They exude confidence and are often seen as charismatic and persuasive.
- Total cost for tree times testing: $0.010 USD
INTJs are often seen as strategic and visionary thinkers. They are analytical, goal-oriented, and independent. Here are some key characteristics of INTJs:
- Strategic Planning: INTJs are known for their ability to see the big picture and develop long-term plans to achieve their goals.
- Logical Decision Making: They rely on logical reasoning and objective analysis to make decisions.
- Independence: They value independence and often prefer working alone or in small groups where they can focus on their ideas.
- Confidence and Determination: They are confident in their abilities and determined to achieve their objectives.
- Total cost for tree times testing: $0.084 USD