KEY TERMS
List of terms mentioned in this post
- Candidate: the user interacting with Naomi during the interview.
- Agent: Llama3.1 roleplaying as Naomi.
- General question/s: questions to be asked during the interview concerning the candidate’s information eg age, occupation etc.
- Feature question/s: questions or case scenarios mentioned during the interview. The candidate’s responses to these questions are analyzed and used as features in predicting personality predictions and our compatibility score.
- Response space: responses generated by dummy candidates conditioned to trait patterns aligned with my previous dating history. The intuition behind this idea is that all individuals equip both strengths and weaknesses, and that determining these traits is dependent on the observer’s ability in handling the characteristic combinations i.e. weighing my patience for someone’s flaws against their admirable qualities.
Overview
This post is dedicated to Naomi’s unconscious state of acting as a recruitment officer for a dating show (my dating life). Since this was my first attempt at integrating the frontend with the backend, the project turned out messy. The only promising outcome was the realization that I’m not merely a fool of my own words.
Data Preparation
This section lists the type of datasets to prepare prior to streaming. The responses were generated by instructing Llama 3.1.
Feature Questions:
These questions/case scenarios are based on each dichotomy of MBTI personality traits:
- Extroversion vs. Introversion: How individuals engage with the external world and how they recharge their energy.
- Sensing vs. Intuition: Focus on concrete information vs. abstract possibilities.
- Thinking vs. Feeling: Decision-making based on logic and objectivity vs. personal values and emotions.
- Judging vs. Perceiving: Preference for structure and organization vs. flexibility and spontaneity.
- Dominant vs. Inferior Functions: How a person’s dominant traits guide their behavior in everyday situations, and how inferior functions emerge under stress or pressure.
Response Space:
Pair of dummy candidate responses and narrations for each feature question.
Llama 3.1 Prompts:
Instructions to assist the streaming chatbot and agent helpers during streaming the chatbot.
Non-manageable problems
-
Decoding parameters: During this trial, the inference API was open-sourced and, unfortunately, wasn’t able to pass decoding parameters.
-
Random Feature questions: A number of feature questions were randomly selected during the chat stream. Hence, even though I prepared questions/case scenarios for each function of the MBTI label, there was no guarantee that a question testing for a specific type of function would be asked during the interview.
-
My information: No form of personal information about myself was passed to the agent. As a result, the agent occasionally generated assumptions about my personal information when requested by the candidates.
-
The way of expressions: Being highly expressive in writing doesn’t necessarily indicate that someone is extremely extroverted. Similarly, a lack of expressiveness in writing might simply suggest that a person struggles with articulating their thoughts rather than being inherently reserved.
- This problem can be mitigated during the data preparation stage (i.e., the types of questions I’ve prepared for the chatbot). For example, when presented with case scenarios designed to assess the user’s task prioritization behavior, Llama (acting as my custom characters) provides the same procedure for each role-playing candidate. The only difference is in the way the responses are expressed.
-
Limited samples: During the data preparation stage, I only prepared candidate responses tailored toward my dating history instead of actual MBTI labels.
Manageable problems
- Agent’s behaviour during live stream:
- Agent occasionally missed certain questions, mainly the general questions. Despite this, the agent did not skip any feature questions. This suggests that there might be a problem with the data handling methods between Naomi and the candidate during the live stream.
Improvements
Below are self-tasked actions that I would like to focus on during my next experiment for Naomi:
-
API: At the time of this experiment, the inference API on Hugging Face was open source. I plan to switch to Ollama during the next experiment.
-
Dataset preparation:
- Candidate responses should specifically reflect the dichotomy of MBTI types, focusing on Jung’s cognitive functions—Dominant, Auxiliary, Tertiary, and Inferior processes.
- Feature questions reflect on each of Jung’s cognitive functions.
-
Text summarization: Rather than instructing the agent to narrate the candidate’s response and also speculate on how the candidate might be feeling, I would want to add the following adjustments:
- The narrations are returned in a fixed format that corresponds with how the candidate’s responses are represented.
- If possible, the narrations could be rephrased in first-person speech.
-
Adding agent/models helpers to streaming:
- Predict whether a candidate is being serious or not when completing the interview. The use of this is to allow Naomi to consider returning bad words to the candidate or return responses that reflect on the candidate’s behavior.
-
Predicting the user’s breed: Pick up where I left off. I’ve come to realize that, despite everything, I was still trying to kill two birds with one stone—fitting Naomi into Tom and vice versa. I should probably just complete Naomi on its own at this point.
-
Testing:
- Replace validation tools with agent helpers, for example:
- To ensure the dialogue flows smoothly and naturally.
- To ensure all questions are asked as intended.
- Replace validation tools with agent helpers, for example:
Self-diagnostic on poor data preparation
During this trial, I wasn’t aware of the different program designs and I was more focused on challenging myself with different OOPs designs in implementing a chatbot. As a result, many of the data classes / handling functions / prepared datasets were not specifically tailored to Naomi’s case, which added problems to this experiment.
This setup of this model is incomplete due to my impatience part in mishandling the data preparation stage.
Tom’s progression · Post 4 of 14
This post sits in Cognition: Social cognition.


