Spaces:
Paused
Paused
Delete test.ipynb
Browse files- test.ipynb +0 -373
test.ipynb
DELETED
|
@@ -1,373 +0,0 @@
|
|
| 1 |
-
{
|
| 2 |
-
"cells": [
|
| 3 |
-
{
|
| 4 |
-
"cell_type": "code",
|
| 5 |
-
"execution_count": 1,
|
| 6 |
-
"id": "9f87cb89",
|
| 7 |
-
"metadata": {},
|
| 8 |
-
"outputs": [],
|
| 9 |
-
"source": [
|
| 10 |
-
"CONNECTION_STRING = \"\"\n",
|
| 11 |
-
"DB_NAME = \"sattvastha\"\n",
|
| 12 |
-
"COLLECTION_NAME = \"completedassessments\""
|
| 13 |
-
]
|
| 14 |
-
},
|
| 15 |
-
{
|
| 16 |
-
"cell_type": "code",
|
| 17 |
-
"execution_count": 2,
|
| 18 |
-
"id": "abec4569",
|
| 19 |
-
"metadata": {},
|
| 20 |
-
"outputs": [],
|
| 21 |
-
"source": [
|
| 22 |
-
"from pymongo import MongoClient\n",
|
| 23 |
-
"import certifi\n",
|
| 24 |
-
"client = MongoClient(CONNECTION_STRING, tlsCAFile=certifi.where())\n",
|
| 25 |
-
"db = client[DB_NAME]"
|
| 26 |
-
]
|
| 27 |
-
},
|
| 28 |
-
{
|
| 29 |
-
"cell_type": "code",
|
| 30 |
-
"execution_count": 3,
|
| 31 |
-
"id": "0edf9d44",
|
| 32 |
-
"metadata": {},
|
| 33 |
-
"outputs": [
|
| 34 |
-
{
|
| 35 |
-
"name": "stdout",
|
| 36 |
-
"output_type": "stream",
|
| 37 |
-
"text": [
|
| 38 |
-
"['tasks', 'userprofiles', 'chatmessages', 'enrollments', 'journals', 'counsellors', 'assessments', 'moodtrackings', 'users', 'courses', 'completedassessments', 'podcasts', 'journalprompts', 'journalentries', 'purchases', 'counsellingpayments', 'taskplanner', 'emotionalstates', 'payments', 'categories', 'courseregistrations', 'affirmations', 'userpromptusages', 'counsellingsessions', 'admins', 'assessmenttemplates']\n"
|
| 39 |
-
]
|
| 40 |
-
}
|
| 41 |
-
],
|
| 42 |
-
"source": [
|
| 43 |
-
"txt = db.list_collection_names()\n",
|
| 44 |
-
"print(txt)"
|
| 45 |
-
]
|
| 46 |
-
},
|
| 47 |
-
{
|
| 48 |
-
"cell_type": "code",
|
| 49 |
-
"execution_count": 14,
|
| 50 |
-
"id": "84ad7fa9",
|
| 51 |
-
"metadata": {},
|
| 52 |
-
"outputs": [
|
| 53 |
-
{
|
| 54 |
-
"name": "stdout",
|
| 55 |
-
"output_type": "stream",
|
| 56 |
-
"text": [
|
| 57 |
-
"{'_id': ObjectId('694ae077de703c993b58b966'), 'userId': 'ruchisinghmech0509@gmail.com', 'username': 'Ruchi', 'templateId': ObjectId('694adcbcb338f5a7eec05fba'), 'templateName': 'SRT (Sattva, Rajas, Tamas)', 'type': 'personalized', 'focusArea': 'SRT (Sattva, Rajas, Tamas)', 'answers': [{'questionId': 'srt_a_1', 'question': 'I see all living beings as equal parts of one whole.', 'answer': '4. Often true for me', 'questionType': 'mcq', 'score': 0, '_id': ObjectId('694ae077de703c993b58b967')}, {'questionId': 'srt_a_2', 'question': 'I believe every body houses a different type of individual self or identity.', 'answer': '2. Rarely true for me', 'questionType': 'mcq', 'score': 0, '_id': ObjectId('694ae077de703c993b58b968')}, {'questionId': 'srt_a_3', 'question': 'I often mistake what is right for wrong and what is wrong for right.', 'answer': '2. Rarely true for me', 'questionType': 'mcq', 'score': 0, '_id': ObjectId('694ae077de703c993b58b969')}, {'questionId': 'srt_a_4', 'question': 'I understand clearly what binds me and what liberates me.', 'answer': '3. Sometimes true for me', 'questionType': 'mcq', 'score': 0, '_id': ObjectId('694ae077de703c993b58b96a')}, {'questionId': 'srt_a_5', 'question': 'I feel confused about what is truly beneficial for me.', 'answer': '3. Sometimes true for me', 'questionType': 'mcq', 'score': 0, '_id': ObjectId('694ae077de703c993b58b96b')}, {'questionId': 'srt_a_6', 'question': 'I perform my duties regularly without being attached to results.', 'answer': '3. Sometimes true for me', 'questionType': 'mcq', 'score': 0, '_id': ObjectId('694ae077de703c993b58b96c')}, {'questionId': 'srt_a_7', 'question': 'I work with great effort because I want rewards or recognition.', 'answer': '3. Sometimes true for me', 'questionType': 'mcq', 'score': 0, '_id': ObjectId('694ae077de703c993b58b96d')}, {'questionId': 'srt_a_8', 'question': 'I sometimes work in disregard of ethical or scriptural principles.', 'answer': '3. Sometimes true for me', 'questionType': 'mcq', 'score': 0, '_id': ObjectId('694ae077de703c993b58b96e')}, {'questionId': 'srt_a_9', 'question': 'I act without hatred or attraction, simply out of responsibility.', 'answer': '4. Often true for me', 'questionType': 'mcq', 'score': 0, '_id': ObjectId('694ae077de703c993b58b96f')}, {'questionId': 'srt_a_10', 'question': 'I engage in work even when it may harm myself or others.', 'answer': '3. Sometimes true for me', 'questionType': 'mcq', 'score': 0, '_id': ObjectId('694ae077de703c993b58b970')}, {'questionId': 'srt_a_14', 'question': 'I stay focused on my goals with steadiness and patience.', 'answer': '4. Often true for me', 'questionType': 'mcq', 'score': 0, '_id': ObjectId('694ae077de703c993b58b971')}, {'questionId': 'srt_a_15', 'question': \"I give up when results don't appear quickly.\", 'answer': '3. Sometimes true for me', 'questionType': 'mcq', 'score': 0, '_id': ObjectId('694ae077de703c993b58b972')}, {'questionId': 'srt_a_16', 'question': 'My mind often gets trapped in fear, lamentation, or illusion.', 'answer': '3. Sometimes true for me', 'questionType': 'mcq', 'score': 0, '_id': ObjectId('694ae077de703c993b58b973')}, {'questionId': 'srt_a_17', 'question': 'I can control my senses and desires through discipline.', 'answer': '4. Often true for me', 'questionType': 'mcq', 'score': 0, '_id': ObjectId('694ae077de703c993b58b974')}, {'questionId': 'srt_a_18', 'question': 'I am easily swayed by joy and sorrow in my determination.', 'answer': '3. Sometimes true for me', 'questionType': 'mcq', 'score': 0, '_id': ObjectId('694ae077de703c993b58b975')}, {'questionId': 'srt_a_19', 'question': 'My happiness is like nectar at the end, even if it feels hard in the beginning.', 'answer': '3. Sometimes true for me', 'questionType': 'mcq', 'score': 0, '_id': ObjectId('694ae077de703c993b58b976')}, {'questionId': 'srt_a_20', 'question': 'I seek happiness through pleasures of the senses.', 'answer': '3. Sometimes true for me', 'questionType': 'mcq', 'score': 0, '_id': ObjectId('694ae077de703c993b58b977')}, {'questionId': 'srt_a_21', 'question': 'My pleasures often feel sweet at first but bitter later.', 'answer': '3. Sometimes true for me', 'questionType': 'mcq', 'score': 0, '_id': ObjectId('694ae077de703c993b58b978')}, {'questionId': 'srt_a_22', 'question': 'I feel contentment in simplicity and inner growth.', 'answer': '4. Often true for me', 'questionType': 'mcq', 'score': 0, '_id': ObjectId('694ae077de703c993b58b979')}, {'questionId': 'srt_a_23', 'question': 'I slip into laziness, sleep, or escape as a form of happiness.', 'answer': '3. Sometimes true for me', 'questionType': 'mcq', 'score': 0, '_id': ObjectId('694ae077de703c993b58b97a')}, {'questionId': 'srt_a_24', 'question': 'I prefer fresh, wholesome, and nourishing foods.', 'answer': '4. Often true for me', 'questionType': 'mcq', 'score': 0, '_id': ObjectId('694ae077de703c993b58b97b')}, {'questionId': 'srt_a_25', 'question': 'I often eat spicy, sour, salty, or over-stimulating foods.', 'answer': '3. Sometimes true for me', 'questionType': 'mcq', 'score': 0, '_id': ObjectId('694ae077de703c993b58b97c')}, {'questionId': 'srt_a_26', 'question': 'I eat stale, tasteless, or leftover food without care.', 'answer': '3. Sometimes true for me', 'questionType': 'mcq', 'score': 0, '_id': ObjectId('694ae077de703c993b58b97d')}, {'questionId': 'srt_a_27', 'question': 'I am conscious of how food affects my health and mind.', 'answer': '3. Sometimes true for me', 'questionType': 'mcq', 'score': 0, '_id': ObjectId('694ae077de703c993b58b97e')}, {'questionId': 'srt_a_28', 'question': 'I tend to overeat or eat carelessly when stressed.', 'answer': '3. Sometimes true for me', 'questionType': 'mcq', 'score': 0, '_id': ObjectId('694ae077de703c993b58b97f')}, {'questionId': 'srt_a_29', 'question': 'I worship or meditate without expecting material results.', 'answer': '3. Sometimes true for me', 'questionType': 'mcq', 'score': 0, '_id': ObjectId('694ae077de703c993b58b980')}, {'questionId': 'srt_a_30', 'question': 'I pray mainly for success, wealth, or recognition.', 'answer': '3. Sometimes true for me', 'questionType': 'mcq', 'score': 0, '_id': ObjectId('694ae077de703c993b58b981')}, {'questionId': 'srt_a_31', 'question': 'I sometimes engage in rituals out of fear, anger, or pride.', 'answer': '3. Sometimes true for me', 'questionType': 'mcq', 'score': 0, '_id': ObjectId('694ae077de703c993b58b982')}, {'questionId': 'srt_a_32', 'question': 'My worship is regular, calm, and brings peache of mind', 'answer': '3. Sometimes true for me', 'questionType': 'mcq', 'score': 0, '_id': ObjectId('694ae077de703c993b58b983')}, {'questionId': 'srt_a_33', 'question': 'I may perform worship without understanding its purpose.', 'answer': '3. Sometimes true for me', 'questionType': 'mcq', 'score': 0, '_id': ObjectId('694ae077de703c993b58b984')}, {'questionId': 'srt_a_35', 'question': 'I give charity at the right time, to the right person, without expectation.', 'answer': '3. Sometimes true for me', 'questionType': 'mcq', 'score': 0, '_id': ObjectId('694ae077de703c993b58b985')}, {'questionId': 'srt_a_36', 'question': 'I give when I know there will be recognition or benefit for me.', 'answer': '3. Sometimes true for me', 'questionType': 'mcq', 'score': 0, '_id': ObjectId('694ae077de703c993b58b986')}, {'questionId': 'srt_a_37', 'question': 'I sometimes give unwillingly or grudgingly.', 'answer': '3. Sometimes true for me', 'questionType': 'mcq', 'score': 0, '_id': ObjectId('694ae077de703c993b58b987')}, {'questionId': 'srt_a_38', 'question': 'I donate even when no one is watching.', 'answer': '4. Often true for me', 'questionType': 'mcq', 'score': 0, '_id': ObjectId('694ae077de703c993b58b988')}, {'questionId': 'srt_a_39', 'question': 'I give to impress others or gain influence.', 'answer': '3. Sometimes true for me', 'questionType': 'mcq', 'score': 0, '_id': ObjectId('694ae077de703c993b58b989')}, {'questionId': 'srt_a_40', 'question': 'I practice discipline to purify myself and grow spiritually.', 'answer': '3. Sometimes true for me', 'questionType': 'mcq', 'score': 0, '_id': ObjectId('694ae077de703c993b58b98a')}, {'questionId': 'srt_a_41', 'question': 'I take up austerities for fame or social respect.', 'answer': '3. Sometimes true for me', 'questionType': 'mcq', 'score': 0, '_id': ObjectId('694ae077de703c993b58b98b')}, {'questionId': 'srt_a_42', 'question': 'I sometimes force myself into self-torture or harmful practices.', 'answer': '3. Sometimes true for me', 'questionType': 'mcq', 'score': 0, '_id': ObjectId('694ae077de703c993b58b98c')}, {'questionId': 'srt_a_43', 'question': 'I sacrifice willingly even without expecting any result.', 'answer': '3. Sometimes true for me', 'questionType': 'mcq', 'score': 0, '_id': ObjectId('694ae077de703c993b58b98d')}, {'questionId': 'srt_a_44', 'question': \"My discipline is unstable—I start but don't sustain it.\", 'answer': '3. Sometimes true for me', 'questionType': 'mcq', 'score': 0, '_id': ObjectId('694ae077de703c993b58b98e')}, {'questionId': 'srt_a_45', 'question': 'I value truthfulness, humility, and simplicity in my conduct.', 'answer': '3. Sometimes true for me', 'questionType': 'mcq', 'score': 0, '_id': ObjectId('694ae077de703c993b58b98f')}, {'questionId': 'srt_a_46', 'question': 'I seek opportunities to showcase my abilities and gain praise.', 'answer': '3. Sometimes true for me', 'questionType': 'mcq', 'score': 0, '_id': ObjectId('694ae077de703c993b58b990')}, {'questionId': 'srt_a_48', 'question': 'I am prone to anger, intolerance, or envy.', 'answer': '3. Sometimes true for me', 'questionType': 'mcq', 'score': 0, '_id': ObjectId('694ae077de703c993b58b991')}, {'questionId': 'srt_a_49', 'question': 'I feel depressed, lethargic, or afraid without clear reason.', 'answer': '3. Sometimes true for me', 'questionType': 'mcq', 'score': 0, '_id': ObjectId('694ae077de703c993b58b992')}, {'questionId': 'srt_a_50', 'question': 'I feel satisfaction in performing my duty without comparison.', 'answer': '3. Sometimes true for me', 'questionType': 'mcq', 'score': 0, '_id': ObjectId('694ae077de703c993b58b993')}, {'questionId': 'srt_a_51', 'question': 'I feel connected to others through compassion and respect.', 'answer': '3. Sometimes true for me', 'questionType': 'mcq', 'score': 0, '_id': ObjectId('694ae077de703c993b58b994')}, {'questionId': 'srt_a_52', 'question': 'I see myself as more important than others', 'answer': '3. Sometimes true for me', 'questionType': 'mcq', 'score': 0, '_id': ObjectId('694ae077de703c993b58b995')}, {'questionId': 'srt_a_53', 'question': 'I often ridicule or criticize others', 'answer': '3. Sometimes true for me', 'questionType': 'mcq', 'score': 0, '_id': ObjectId('694ae077de703c993b58b996')}, {'questionId': 'srt_a_54', 'question': 'I am embarassed by my own mistakes and seek to improve.', 'answer': '3. Sometimes true for me', 'questionType': 'mcq', 'score': 0, '_id': ObjectId('694ae077de703c993b58b997')}, {'questionId': 'srt_a_55', 'question': 'I sometimes live in delusion, blaming others for my situation.', 'answer': '3. Sometimes true for me', 'questionType': 'mcq', 'score': 0, '_id': ObjectId('694ae077de703c993b58b998')}], 'completedAt': datetime.datetime(2025, 12, 24, 0, 3, 25, 467000), 'score': 50, 'status': 'completed', 'metadata': {'entry_timestamp': '2025-12-24T00:03:25.467Z', 'markdown': '# Personalized Report\\nYou have been categorized as **Nirodha**, which means \"cessation\" or \"dissolution.\" This term is very important, as it is present in the first part of the definition of yoga given in the Yoga Sutras: \"Yogash chitta vritti nirodhah.\" This means that yoga is the nirodha (cessation) of all the vrittis (movements) of chitta (the mind-field). Because the movements of the mind are quieted, you dis-identify from them and remain as the pure Witness Consciousness (the Supreme Self), or purusha, as Patanjali calls it.\\n\\n## Introduction to Nirodha\\nAs someone who has achieved a state of Nirodha, you have scored the highest with an average score of 0.0. This indicates that you have a profound understanding of the cessation of mind movements, allowing you to remain in a state of inner peace and calm.\\n\\n## General Tendency\\nYou tend to be someone who can observe thoughts and emotions without becoming overwhelmed by them. You are like a still lake at dawn, where thoughts come and go without rippling your calm. This allows you to respond to challenges in a thoughtful and composed manner, rather than react impulsively.\\n\\n## Daily Life\\nIn your daily life, you are able to navigate stresses and challenges with ease. You observe them like passing clouds and stay centered, allowing you to respond thoughtfully and maintain a sense of inner freedom. Whether you are at work, in personal moments, or engaging in activities, you are able to soak in the present without replaying the past or fretting the future.\\n\\n## Workplace\\nIn the workplace, you are able to execute tasks with calmness and composure. You observe pressures and deadlines without becoming overwhelmed, resulting in effective leadership and conflict resolution. Your ability to remain detached yet empathetic allows you to maintain harmony and pursue long-term goals steadily.\\n\\n## Education\\nIn educational settings, you are able to face exams and challenges without anxiety. You allow clear recall and composed answers, resulting in optimal results. You engage in debates with balanced views, observing opposing ideas without reaction, and enrich your understanding of the subject matter.\\n\\n## Personal Life\\nIn your personal life, you are able to observe disagreements with loved ones neutrally, leading to peaceful resolutions and deeper harmony. You engage in daily reflections that bring insights without rumination, enhancing your self-growth. You are able to spend quiet evenings in stillness, recharging fully and cultivating lasting inner joy.\\n\\n## Insight\\nYou have achieved a state of inner freedom, which is achievable with practice. You understand that this state is not just a fleeting experience, but a profound aspect of your being.\\n\\n### DAILY_TASKS\\n* Observe your thoughts for 5 minutes upon waking, like watching clouds pass, without engagement to reinforce disidentification\\n* Integrate \"witnessing\" into your routines, such as noting emotions during interactions without reaction\\n\\n### WEEKLY_TASKS\\n* Hold a 20-minute silent sitting (samadhi practice) in a calm space, allowing complete stillness to deepen bliss\\n* Share one act of selfless service (seva), like helping a neighbor, while maintaining inner detachment to embody enduring wisdom\\n\\nBy continuing to practice these tasks, you will be able to sustain the cessation of mind movements and abide as the Witness (Purusha) with effortless peace. Remember, the key to maintaining this state is to continue practicing and integrating it into your daily life.', 'markdownReport': '# Personalized Report\\nYou have been categorized as **Nirodha**, which means \"cessation\" or \"dissolution.\" This term is very important, as it is present in the first part of the definition of yoga given in the Yoga Sutras: \"Yogash chitta vritti nirodhah.\" This means that yoga is the nirodha (cessation) of all the vrittis (movements) of chitta (the mind-field). Because the movements of the mind are quieted, you dis-identify from them and remain as the pure Witness Consciousness (the Supreme Self), or purusha, as Patanjali calls it.\\n\\n## Introduction to Nirodha\\nAs someone who has achieved a state of Nirodha, you have scored the highest with an average score of 0.0. This indicates that you have a profound understanding of the cessation of mind movements, allowing you to remain in a state of inner peace and calm.\\n\\n## General Tendency\\nYou tend to be someone who can observe thoughts and emotions without becoming overwhelmed by them. You are like a still lake at dawn, where thoughts come and go without rippling your calm. This allows you to respond to challenges in a thoughtful and composed manner, rather than react impulsively.\\n\\n## Daily Life\\nIn your daily life, you are able to navigate stresses and challenges with ease. You observe them like passing clouds and stay centered, allowing you to respond thoughtfully and maintain a sense of inner freedom. Whether you are at work, in personal moments, or engaging in activities, you are able to soak in the present without replaying the past or fretting the future.\\n\\n## Workplace\\nIn the workplace, you are able to execute tasks with calmness and composure. You observe pressures and deadlines without becoming overwhelmed, resulting in effective leadership and conflict resolution. Your ability to remain detached yet empathetic allows you to maintain harmony and pursue long-term goals steadily.\\n\\n## Education\\nIn educational settings, you are able to face exams and challenges without anxiety. You allow clear recall and composed answers, resulting in optimal results. You engage in debates with balanced views, observing opposing ideas without reaction, and enrich your understanding of the subject matter.\\n\\n## Personal Life\\nIn your personal life, you are able to observe disagreements with loved ones neutrally, leading to peaceful resolutions and deeper harmony. You engage in daily reflections that bring insights without rumination, enhancing your self-growth. You are able to spend quiet evenings in stillness, recharging fully and cultivating lasting inner joy.\\n\\n## Insight\\nYou have achieved a state of inner freedom, which is achievable with practice. You understand that this state is not just a fleeting experience, but a profound aspect of your being.\\n\\n### DAILY_TASKS\\n* Observe your thoughts for 5 minutes upon waking, like watching clouds pass, without engagement to reinforce disidentification\\n* Integrate \"witnessing\" into your routines, such as noting emotions during interactions without reaction\\n\\n### WEEKLY_TASKS\\n* Hold a 20-minute silent sitting (samadhi practice) in a calm space, allowing complete stillness to deepen bliss\\n* Share one act of selfless service (seva), like helping a neighbor, while maintaining inner detachment to embody enduring wisdom\\n\\nBy continuing to practice these tasks, you will be able to sustain the cessation of mind movements and abide as the Witness (Purusha) with effortless peace. Remember, the key to maintaining this state is to continue practicing and integrating it into your daily life.', 'reportGenerated': True, 'reportGeneratedAt': '2025-12-23T18:34:25.445Z', 'pdfUrl': 'https://app.vidur.co/uploads/reports/694ae077de703c993b58b966.pdf', 'reportUrl': 'https://app.vidur.co/uploads/reports/694ae077de703c993b58b966.pdf'}, 'createdAt': datetime.datetime(2025, 12, 23, 18, 33, 27, 22000), 'updatedAt': datetime.datetime(2025, 12, 23, 18, 34, 26, 145000), '__v': 0}\n"
|
| 58 |
-
]
|
| 59 |
-
}
|
| 60 |
-
],
|
| 61 |
-
"source": [
|
| 62 |
-
"collection = db[\"completedassessments\"]\n",
|
| 63 |
-
"cursor = collection.find({\"templateName\":\"SRT (Sattva, Rajas, Tamas)\"}).sort(\"createdAt\",-1).limit(1)\n",
|
| 64 |
-
"\n",
|
| 65 |
-
"for item in cursor:\n",
|
| 66 |
-
" print(item)\n",
|
| 67 |
-
" # for i,txt in enumerate(item[\"answers\"]):\n",
|
| 68 |
-
" # print(txt[\"question\"])\n",
|
| 69 |
-
" # if((i+1)%5 ==0):\n",
|
| 70 |
-
" # print(\"\\n\")\n",
|
| 71 |
-
"\n",
|
| 72 |
-
" # item\n"
|
| 73 |
-
]
|
| 74 |
-
},
|
| 75 |
-
{
|
| 76 |
-
"cell_type": "code",
|
| 77 |
-
"execution_count": 15,
|
| 78 |
-
"id": "4e40a339",
|
| 79 |
-
"metadata": {},
|
| 80 |
-
"outputs": [
|
| 81 |
-
{
|
| 82 |
-
"name": "stdout",
|
| 83 |
-
"output_type": "stream",
|
| 84 |
-
"text": [
|
| 85 |
-
"{'_id': ObjectId('694ae077de703c993b58b966'), 'userId': 'ruchisinghmech0509@gmail.com', 'username': 'Ruchi', 'templateId': ObjectId('694adcbcb338f5a7eec05fba'), 'templateName': 'SRT (Sattva, Rajas, Tamas)', 'type': 'personalized', 'focusArea': 'SRT (Sattva, Rajas, Tamas)', 'answers': [{'questionId': 'srt_a_1', 'question': 'I see all living beings as equal parts of one whole.', 'answer': '4. Often true for me', 'questionType': 'mcq', 'score': 0, '_id': ObjectId('694ae077de703c993b58b967')}, {'questionId': 'srt_a_2', 'question': 'I believe every body houses a different type of individual self or identity.', 'answer': '2. Rarely true for me', 'questionType': 'mcq', 'score': 0, '_id': ObjectId('694ae077de703c993b58b968')}, {'questionId': 'srt_a_3', 'question': 'I often mistake what is right for wrong and what is wrong for right.', 'answer': '2. Rarely true for me', 'questionType': 'mcq', 'score': 0, '_id': ObjectId('694ae077de703c993b58b969')}, {'questionId': 'srt_a_4', 'question': 'I understand clearly what binds me and what liberates me.', 'answer': '3. Sometimes true for me', 'questionType': 'mcq', 'score': 0, '_id': ObjectId('694ae077de703c993b58b96a')}, {'questionId': 'srt_a_5', 'question': 'I feel confused about what is truly beneficial for me.', 'answer': '3. Sometimes true for me', 'questionType': 'mcq', 'score': 0, '_id': ObjectId('694ae077de703c993b58b96b')}, {'questionId': 'srt_a_6', 'question': 'I perform my duties regularly without being attached to results.', 'answer': '3. Sometimes true for me', 'questionType': 'mcq', 'score': 0, '_id': ObjectId('694ae077de703c993b58b96c')}, {'questionId': 'srt_a_7', 'question': 'I work with great effort because I want rewards or recognition.', 'answer': '3. Sometimes true for me', 'questionType': 'mcq', 'score': 0, '_id': ObjectId('694ae077de703c993b58b96d')}, {'questionId': 'srt_a_8', 'question': 'I sometimes work in disregard of ethical or scriptural principles.', 'answer': '3. Sometimes true for me', 'questionType': 'mcq', 'score': 0, '_id': ObjectId('694ae077de703c993b58b96e')}, {'questionId': 'srt_a_9', 'question': 'I act without hatred or attraction, simply out of responsibility.', 'answer': '4. Often true for me', 'questionType': 'mcq', 'score': 0, '_id': ObjectId('694ae077de703c993b58b96f')}, {'questionId': 'srt_a_10', 'question': 'I engage in work even when it may harm myself or others.', 'answer': '3. Sometimes true for me', 'questionType': 'mcq', 'score': 0, '_id': ObjectId('694ae077de703c993b58b970')}, {'questionId': 'srt_a_14', 'question': 'I stay focused on my goals with steadiness and patience.', 'answer': '4. Often true for me', 'questionType': 'mcq', 'score': 0, '_id': ObjectId('694ae077de703c993b58b971')}, {'questionId': 'srt_a_15', 'question': \"I give up when results don't appear quickly.\", 'answer': '3. Sometimes true for me', 'questionType': 'mcq', 'score': 0, '_id': ObjectId('694ae077de703c993b58b972')}, {'questionId': 'srt_a_16', 'question': 'My mind often gets trapped in fear, lamentation, or illusion.', 'answer': '3. Sometimes true for me', 'questionType': 'mcq', 'score': 0, '_id': ObjectId('694ae077de703c993b58b973')}, {'questionId': 'srt_a_17', 'question': 'I can control my senses and desires through discipline.', 'answer': '4. Often true for me', 'questionType': 'mcq', 'score': 0, '_id': ObjectId('694ae077de703c993b58b974')}, {'questionId': 'srt_a_18', 'question': 'I am easily swayed by joy and sorrow in my determination.', 'answer': '3. Sometimes true for me', 'questionType': 'mcq', 'score': 0, '_id': ObjectId('694ae077de703c993b58b975')}, {'questionId': 'srt_a_19', 'question': 'My happiness is like nectar at the end, even if it feels hard in the beginning.', 'answer': '3. Sometimes true for me', 'questionType': 'mcq', 'score': 0, '_id': ObjectId('694ae077de703c993b58b976')}, {'questionId': 'srt_a_20', 'question': 'I seek happiness through pleasures of the senses.', 'answer': '3. Sometimes true for me', 'questionType': 'mcq', 'score': 0, '_id': ObjectId('694ae077de703c993b58b977')}, {'questionId': 'srt_a_21', 'question': 'My pleasures often feel sweet at first but bitter later.', 'answer': '3. Sometimes true for me', 'questionType': 'mcq', 'score': 0, '_id': ObjectId('694ae077de703c993b58b978')}, {'questionId': 'srt_a_22', 'question': 'I feel contentment in simplicity and inner growth.', 'answer': '4. Often true for me', 'questionType': 'mcq', 'score': 0, '_id': ObjectId('694ae077de703c993b58b979')}, {'questionId': 'srt_a_23', 'question': 'I slip into laziness, sleep, or escape as a form of happiness.', 'answer': '3. Sometimes true for me', 'questionType': 'mcq', 'score': 0, '_id': ObjectId('694ae077de703c993b58b97a')}, {'questionId': 'srt_a_24', 'question': 'I prefer fresh, wholesome, and nourishing foods.', 'answer': '4. Often true for me', 'questionType': 'mcq', 'score': 0, '_id': ObjectId('694ae077de703c993b58b97b')}, {'questionId': 'srt_a_25', 'question': 'I often eat spicy, sour, salty, or over-stimulating foods.', 'answer': '3. Sometimes true for me', 'questionType': 'mcq', 'score': 0, '_id': ObjectId('694ae077de703c993b58b97c')}, {'questionId': 'srt_a_26', 'question': 'I eat stale, tasteless, or leftover food without care.', 'answer': '3. Sometimes true for me', 'questionType': 'mcq', 'score': 0, '_id': ObjectId('694ae077de703c993b58b97d')}, {'questionId': 'srt_a_27', 'question': 'I am conscious of how food affects my health and mind.', 'answer': '3. Sometimes true for me', 'questionType': 'mcq', 'score': 0, '_id': ObjectId('694ae077de703c993b58b97e')}, {'questionId': 'srt_a_28', 'question': 'I tend to overeat or eat carelessly when stressed.', 'answer': '3. Sometimes true for me', 'questionType': 'mcq', 'score': 0, '_id': ObjectId('694ae077de703c993b58b97f')}, {'questionId': 'srt_a_29', 'question': 'I worship or meditate without expecting material results.', 'answer': '3. Sometimes true for me', 'questionType': 'mcq', 'score': 0, '_id': ObjectId('694ae077de703c993b58b980')}, {'questionId': 'srt_a_30', 'question': 'I pray mainly for success, wealth, or recognition.', 'answer': '3. Sometimes true for me', 'questionType': 'mcq', 'score': 0, '_id': ObjectId('694ae077de703c993b58b981')}, {'questionId': 'srt_a_31', 'question': 'I sometimes engage in rituals out of fear, anger, or pride.', 'answer': '3. Sometimes true for me', 'questionType': 'mcq', 'score': 0, '_id': ObjectId('694ae077de703c993b58b982')}, {'questionId': 'srt_a_32', 'question': 'My worship is regular, calm, and brings peache of mind', 'answer': '3. Sometimes true for me', 'questionType': 'mcq', 'score': 0, '_id': ObjectId('694ae077de703c993b58b983')}, {'questionId': 'srt_a_33', 'question': 'I may perform worship without understanding its purpose.', 'answer': '3. Sometimes true for me', 'questionType': 'mcq', 'score': 0, '_id': ObjectId('694ae077de703c993b58b984')}, {'questionId': 'srt_a_35', 'question': 'I give charity at the right time, to the right person, without expectation.', 'answer': '3. Sometimes true for me', 'questionType': 'mcq', 'score': 0, '_id': ObjectId('694ae077de703c993b58b985')}, {'questionId': 'srt_a_36', 'question': 'I give when I know there will be recognition or benefit for me.', 'answer': '3. Sometimes true for me', 'questionType': 'mcq', 'score': 0, '_id': ObjectId('694ae077de703c993b58b986')}, {'questionId': 'srt_a_37', 'question': 'I sometimes give unwillingly or grudgingly.', 'answer': '3. Sometimes true for me', 'questionType': 'mcq', 'score': 0, '_id': ObjectId('694ae077de703c993b58b987')}, {'questionId': 'srt_a_38', 'question': 'I donate even when no one is watching.', 'answer': '4. Often true for me', 'questionType': 'mcq', 'score': 0, '_id': ObjectId('694ae077de703c993b58b988')}, {'questionId': 'srt_a_39', 'question': 'I give to impress others or gain influence.', 'answer': '3. Sometimes true for me', 'questionType': 'mcq', 'score': 0, '_id': ObjectId('694ae077de703c993b58b989')}, {'questionId': 'srt_a_40', 'question': 'I practice discipline to purify myself and grow spiritually.', 'answer': '3. Sometimes true for me', 'questionType': 'mcq', 'score': 0, '_id': ObjectId('694ae077de703c993b58b98a')}, {'questionId': 'srt_a_41', 'question': 'I take up austerities for fame or social respect.', 'answer': '3. Sometimes true for me', 'questionType': 'mcq', 'score': 0, '_id': ObjectId('694ae077de703c993b58b98b')}, {'questionId': 'srt_a_42', 'question': 'I sometimes force myself into self-torture or harmful practices.', 'answer': '3. Sometimes true for me', 'questionType': 'mcq', 'score': 0, '_id': ObjectId('694ae077de703c993b58b98c')}, {'questionId': 'srt_a_43', 'question': 'I sacrifice willingly even without expecting any result.', 'answer': '3. Sometimes true for me', 'questionType': 'mcq', 'score': 0, '_id': ObjectId('694ae077de703c993b58b98d')}, {'questionId': 'srt_a_44', 'question': \"My discipline is unstable—I start but don't sustain it.\", 'answer': '3. Sometimes true for me', 'questionType': 'mcq', 'score': 0, '_id': ObjectId('694ae077de703c993b58b98e')}, {'questionId': 'srt_a_45', 'question': 'I value truthfulness, humility, and simplicity in my conduct.', 'answer': '3. Sometimes true for me', 'questionType': 'mcq', 'score': 0, '_id': ObjectId('694ae077de703c993b58b98f')}, {'questionId': 'srt_a_46', 'question': 'I seek opportunities to showcase my abilities and gain praise.', 'answer': '3. Sometimes true for me', 'questionType': 'mcq', 'score': 0, '_id': ObjectId('694ae077de703c993b58b990')}, {'questionId': 'srt_a_48', 'question': 'I am prone to anger, intolerance, or envy.', 'answer': '3. Sometimes true for me', 'questionType': 'mcq', 'score': 0, '_id': ObjectId('694ae077de703c993b58b991')}, {'questionId': 'srt_a_49', 'question': 'I feel depressed, lethargic, or afraid without clear reason.', 'answer': '3. Sometimes true for me', 'questionType': 'mcq', 'score': 0, '_id': ObjectId('694ae077de703c993b58b992')}, {'questionId': 'srt_a_50', 'question': 'I feel satisfaction in performing my duty without comparison.', 'answer': '3. Sometimes true for me', 'questionType': 'mcq', 'score': 0, '_id': ObjectId('694ae077de703c993b58b993')}, {'questionId': 'srt_a_51', 'question': 'I feel connected to others through compassion and respect.', 'answer': '3. Sometimes true for me', 'questionType': 'mcq', 'score': 0, '_id': ObjectId('694ae077de703c993b58b994')}, {'questionId': 'srt_a_52', 'question': 'I see myself as more important than others', 'answer': '3. Sometimes true for me', 'questionType': 'mcq', 'score': 0, '_id': ObjectId('694ae077de703c993b58b995')}, {'questionId': 'srt_a_53', 'question': 'I often ridicule or criticize others', 'answer': '3. Sometimes true for me', 'questionType': 'mcq', 'score': 0, '_id': ObjectId('694ae077de703c993b58b996')}, {'questionId': 'srt_a_54', 'question': 'I am embarassed by my own mistakes and seek to improve.', 'answer': '3. Sometimes true for me', 'questionType': 'mcq', 'score': 0, '_id': ObjectId('694ae077de703c993b58b997')}, {'questionId': 'srt_a_55', 'question': 'I sometimes live in delusion, blaming others for my situation.', 'answer': '3. Sometimes true for me', 'questionType': 'mcq', 'score': 0, '_id': ObjectId('694ae077de703c993b58b998')}], 'completedAt': datetime.datetime(2025, 12, 24, 0, 3, 25, 467000), 'score': 50, 'status': 'completed', 'metadata': {'entry_timestamp': '2025-12-24T00:03:25.467Z', 'markdown': '# Personalized Report\\nYou have been categorized as **Nirodha**, which means \"cessation\" or \"dissolution.\" This term is very important, as it is present in the first part of the definition of yoga given in the Yoga Sutras: \"Yogash chitta vritti nirodhah.\" This means that yoga is the nirodha (cessation) of all the vrittis (movements) of chitta (the mind-field). Because the movements of the mind are quieted, you dis-identify from them and remain as the pure Witness Consciousness (the Supreme Self), or purusha, as Patanjali calls it.\\n\\n## Introduction to Nirodha\\nAs someone who has achieved a state of Nirodha, you have scored the highest with an average score of 0.0. This indicates that you have a profound understanding of the cessation of mind movements, allowing you to remain in a state of inner peace and calm.\\n\\n## General Tendency\\nYou tend to be someone who can observe thoughts and emotions without becoming overwhelmed by them. You are like a still lake at dawn, where thoughts come and go without rippling your calm. This allows you to respond to challenges in a thoughtful and composed manner, rather than react impulsively.\\n\\n## Daily Life\\nIn your daily life, you are able to navigate stresses and challenges with ease. You observe them like passing clouds and stay centered, allowing you to respond thoughtfully and maintain a sense of inner freedom. Whether you are at work, in personal moments, or engaging in activities, you are able to soak in the present without replaying the past or fretting the future.\\n\\n## Workplace\\nIn the workplace, you are able to execute tasks with calmness and composure. You observe pressures and deadlines without becoming overwhelmed, resulting in effective leadership and conflict resolution. Your ability to remain detached yet empathetic allows you to maintain harmony and pursue long-term goals steadily.\\n\\n## Education\\nIn educational settings, you are able to face exams and challenges without anxiety. You allow clear recall and composed answers, resulting in optimal results. You engage in debates with balanced views, observing opposing ideas without reaction, and enrich your understanding of the subject matter.\\n\\n## Personal Life\\nIn your personal life, you are able to observe disagreements with loved ones neutrally, leading to peaceful resolutions and deeper harmony. You engage in daily reflections that bring insights without rumination, enhancing your self-growth. You are able to spend quiet evenings in stillness, recharging fully and cultivating lasting inner joy.\\n\\n## Insight\\nYou have achieved a state of inner freedom, which is achievable with practice. You understand that this state is not just a fleeting experience, but a profound aspect of your being.\\n\\n### DAILY_TASKS\\n* Observe your thoughts for 5 minutes upon waking, like watching clouds pass, without engagement to reinforce disidentification\\n* Integrate \"witnessing\" into your routines, such as noting emotions during interactions without reaction\\n\\n### WEEKLY_TASKS\\n* Hold a 20-minute silent sitting (samadhi practice) in a calm space, allowing complete stillness to deepen bliss\\n* Share one act of selfless service (seva), like helping a neighbor, while maintaining inner detachment to embody enduring wisdom\\n\\nBy continuing to practice these tasks, you will be able to sustain the cessation of mind movements and abide as the Witness (Purusha) with effortless peace. Remember, the key to maintaining this state is to continue practicing and integrating it into your daily life.', 'markdownReport': '# Personalized Report\\nYou have been categorized as **Nirodha**, which means \"cessation\" or \"dissolution.\" This term is very important, as it is present in the first part of the definition of yoga given in the Yoga Sutras: \"Yogash chitta vritti nirodhah.\" This means that yoga is the nirodha (cessation) of all the vrittis (movements) of chitta (the mind-field). Because the movements of the mind are quieted, you dis-identify from them and remain as the pure Witness Consciousness (the Supreme Self), or purusha, as Patanjali calls it.\\n\\n## Introduction to Nirodha\\nAs someone who has achieved a state of Nirodha, you have scored the highest with an average score of 0.0. This indicates that you have a profound understanding of the cessation of mind movements, allowing you to remain in a state of inner peace and calm.\\n\\n## General Tendency\\nYou tend to be someone who can observe thoughts and emotions without becoming overwhelmed by them. You are like a still lake at dawn, where thoughts come and go without rippling your calm. This allows you to respond to challenges in a thoughtful and composed manner, rather than react impulsively.\\n\\n## Daily Life\\nIn your daily life, you are able to navigate stresses and challenges with ease. You observe them like passing clouds and stay centered, allowing you to respond thoughtfully and maintain a sense of inner freedom. Whether you are at work, in personal moments, or engaging in activities, you are able to soak in the present without replaying the past or fretting the future.\\n\\n## Workplace\\nIn the workplace, you are able to execute tasks with calmness and composure. You observe pressures and deadlines without becoming overwhelmed, resulting in effective leadership and conflict resolution. Your ability to remain detached yet empathetic allows you to maintain harmony and pursue long-term goals steadily.\\n\\n## Education\\nIn educational settings, you are able to face exams and challenges without anxiety. You allow clear recall and composed answers, resulting in optimal results. You engage in debates with balanced views, observing opposing ideas without reaction, and enrich your understanding of the subject matter.\\n\\n## Personal Life\\nIn your personal life, you are able to observe disagreements with loved ones neutrally, leading to peaceful resolutions and deeper harmony. You engage in daily reflections that bring insights without rumination, enhancing your self-growth. You are able to spend quiet evenings in stillness, recharging fully and cultivating lasting inner joy.\\n\\n## Insight\\nYou have achieved a state of inner freedom, which is achievable with practice. You understand that this state is not just a fleeting experience, but a profound aspect of your being.\\n\\n### DAILY_TASKS\\n* Observe your thoughts for 5 minutes upon waking, like watching clouds pass, without engagement to reinforce disidentification\\n* Integrate \"witnessing\" into your routines, such as noting emotions during interactions without reaction\\n\\n### WEEKLY_TASKS\\n* Hold a 20-minute silent sitting (samadhi practice) in a calm space, allowing complete stillness to deepen bliss\\n* Share one act of selfless service (seva), like helping a neighbor, while maintaining inner detachment to embody enduring wisdom\\n\\nBy continuing to practice these tasks, you will be able to sustain the cessation of mind movements and abide as the Witness (Purusha) with effortless peace. Remember, the key to maintaining this state is to continue practicing and integrating it into your daily life.', 'reportGenerated': True, 'reportGeneratedAt': '2025-12-23T18:34:25.445Z', 'pdfUrl': 'https://app.vidur.co/uploads/reports/694ae077de703c993b58b966.pdf', 'reportUrl': 'https://app.vidur.co/uploads/reports/694ae077de703c993b58b966.pdf'}, 'createdAt': datetime.datetime(2025, 12, 23, 18, 33, 27, 22000), 'updatedAt': datetime.datetime(2025, 12, 23, 18, 34, 26, 145000), '__v': 0}\n"
|
| 86 |
-
]
|
| 87 |
-
}
|
| 88 |
-
],
|
| 89 |
-
"source": [
|
| 90 |
-
"collection = db[\"completedassessments\"]\n",
|
| 91 |
-
"cursor = collection.find({\"templateName\":\"SRT (Sattva, Rajas, Tamas)\"}).sort(\"createdAt\",-1).limit(1)\n",
|
| 92 |
-
"\n",
|
| 93 |
-
"for item in cursor:\n",
|
| 94 |
-
" print(item)\n",
|
| 95 |
-
" # for i,txt in enumerate(item[\"answers\"]):\n",
|
| 96 |
-
" # print(txt[\"answer\"][:1])\n",
|
| 97 |
-
" # if((i+1)%5 ==0):\n",
|
| 98 |
-
" # print(\"\\n\")"
|
| 99 |
-
]
|
| 100 |
-
},
|
| 101 |
-
{
|
| 102 |
-
"cell_type": "code",
|
| 103 |
-
"execution_count": 9,
|
| 104 |
-
"id": "4bbcdff4",
|
| 105 |
-
"metadata": {},
|
| 106 |
-
"outputs": [
|
| 107 |
-
{
|
| 108 |
-
"name": "stdout",
|
| 109 |
-
"output_type": "stream",
|
| 110 |
-
"text": [
|
| 111 |
-
"Generating label for: I see all living beings as equ...\n",
|
| 112 |
-
"Generating label for: I believe every body houses a ...\n",
|
| 113 |
-
"Generating label for: I often mistake what is right ...\n",
|
| 114 |
-
"Generating label for: I understand clearly what bind...\n",
|
| 115 |
-
"Generating label for: I feel confused about what is ...\n",
|
| 116 |
-
"Generating label for: I perform my duties regularly ...\n",
|
| 117 |
-
"Generating label for: I work with great effort becau...\n",
|
| 118 |
-
"Generating label for: I sometimes work in disregard ...\n",
|
| 119 |
-
"Generating label for: I act without hatred or attrac...\n",
|
| 120 |
-
"Generating label for: I engage in work even when it ...\n",
|
| 121 |
-
"Generating label for: I stay focused on my goals wit...\n",
|
| 122 |
-
"Generating label for: I give up when results don’t a...\n",
|
| 123 |
-
"Generating label for: My mind often gets trapped in ...\n",
|
| 124 |
-
"Generating label for: I can control my senses and de...\n",
|
| 125 |
-
"Generating label for: I am easily swayed by joy and ...\n",
|
| 126 |
-
"Generating label for: My happiness is like nectar at...\n",
|
| 127 |
-
"Generating label for: I seek happiness through pleas...\n",
|
| 128 |
-
"Generating label for: My pleasures often feel sweet ...\n",
|
| 129 |
-
"Generating label for: I feel contentment in simplici...\n",
|
| 130 |
-
"Generating label for: I slip into laziness, sleep, o...\n",
|
| 131 |
-
"Generating label for: I prefer fresh, wholesome, and...\n",
|
| 132 |
-
"Generating label for: I often eat spicy, sour, salty...\n",
|
| 133 |
-
"Generating label for: I eat stale, tasteless, or lef...\n",
|
| 134 |
-
"Generating label for: I am conscious of how food aff...\n",
|
| 135 |
-
"Generating label for: I tend to overeat or eat carel...\n",
|
| 136 |
-
"Generating label for: I worship or meditate without ...\n",
|
| 137 |
-
"Generating label for: I pray mainly for success, wea...\n",
|
| 138 |
-
"Generating label for: I sometimes engage in rituals ...\n",
|
| 139 |
-
"Generating label for: My worship is regular, calm, a...\n",
|
| 140 |
-
"Generating label for: I may perform worship without ...\n",
|
| 141 |
-
"Generating label for: I give charity at the right ti...\n",
|
| 142 |
-
"Generating label for: I give when I know there will ...\n",
|
| 143 |
-
"Generating label for: I sometimes give unwillingly o...\n",
|
| 144 |
-
"Generating label for: I donate even when no one is w...\n",
|
| 145 |
-
"Generating label for: I give to impress others or ga...\n",
|
| 146 |
-
"Generating label for: I practice discipline to purif...\n",
|
| 147 |
-
"Generating label for: I take up austerities for fame...\n",
|
| 148 |
-
"Generating label for: I sometimes force myself into ...\n",
|
| 149 |
-
"Generating label for: I sacrifice willingly even wit...\n",
|
| 150 |
-
"Generating label for: My discipline is unstable—I st...\n",
|
| 151 |
-
"Generating label for: I value truthfulness, humility...\n",
|
| 152 |
-
"Generating label for: I seek opportunities to showca...\n",
|
| 153 |
-
"Generating label for: I am prone to anger, intoleran...\n",
|
| 154 |
-
"Generating label for: I feel depressed, lethargic, o...\n",
|
| 155 |
-
"Generating label for: I feel satisfaction in perform...\n",
|
| 156 |
-
"Generating label for: I feel connected to others thr...\n",
|
| 157 |
-
"Generating label for: I see myself as more important...\n",
|
| 158 |
-
"Generating label for: I often ridicule or criticize ...\n",
|
| 159 |
-
"Generating label for: I am embarrassed by my own mis...\n",
|
| 160 |
-
"Generating label for: I sometimes live in delusion, ...\n",
|
| 161 |
-
"\n",
|
| 162 |
-
"✅ Success! Labels saved to 'question_labels.json'.\n"
|
| 163 |
-
]
|
| 164 |
-
}
|
| 165 |
-
],
|
| 166 |
-
"source": [
|
| 167 |
-
"import pandas as pd\n",
|
| 168 |
-
"import json\n",
|
| 169 |
-
"from groq import Groq\n",
|
| 170 |
-
"\n",
|
| 171 |
-
"# 1. Setup Client\n",
|
| 172 |
-
"client = Groq(api_key=\"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\")\n",
|
| 173 |
-
"\n",
|
| 174 |
-
"# 2. Load Data\n",
|
| 175 |
-
"data = pd.read_excel(\"SRT_Assessment_key words.xlsx\")\n",
|
| 176 |
-
"\n",
|
| 177 |
-
"# 3. Define the Generator Function\n",
|
| 178 |
-
"def generate_category(question_text):\n",
|
| 179 |
-
" print(f\"Generating label for: {question_text[:30]}...\") # Progress indicator\n",
|
| 180 |
-
" prompt = f\"\"\"\n",
|
| 181 |
-
" Read this question: \"{question_text}\"\n",
|
| 182 |
-
" Give me a short 1-3 word phrase (like a category) that best describes what aspect of the person it is trying to measure.\n",
|
| 183 |
-
" The question will be in the form of a statement that the person can agree or disagree with.\n",
|
| 184 |
-
" Only return the phrase, nothing else.\n",
|
| 185 |
-
" \"\"\"\n",
|
| 186 |
-
" try:\n",
|
| 187 |
-
" groq_card = client.chat.completions.create(\n",
|
| 188 |
-
" messages=[{\"role\": \"user\", \"content\": prompt}],\n",
|
| 189 |
-
" model=\"openai/gpt-oss-20b\", # Or your preferred model\n",
|
| 190 |
-
" )\n",
|
| 191 |
-
" return groq_card.choices[0].message.content.strip()\n",
|
| 192 |
-
" except Exception as e:\n",
|
| 193 |
-
" print(f\"Error: {e}\")\n",
|
| 194 |
-
" return \"General\"\n",
|
| 195 |
-
"\n",
|
| 196 |
-
"# 4. Generate Dictionary\n",
|
| 197 |
-
"# This is the slow part we are isolating\n",
|
| 198 |
-
"question_labels = {q: generate_category(q) for q in data[\"Question\"]}\n",
|
| 199 |
-
"\n",
|
| 200 |
-
"# 5. Save to JSON\n",
|
| 201 |
-
"with open(\"question_labels.json\", \"w\") as f:\n",
|
| 202 |
-
" json.dump(question_labels, f)\n",
|
| 203 |
-
"\n",
|
| 204 |
-
"print(\"\\n✅ Success! Labels saved to 'question_labels.json'.\")"
|
| 205 |
-
]
|
| 206 |
-
},
|
| 207 |
-
{
|
| 208 |
-
"cell_type": "code",
|
| 209 |
-
"execution_count": 10,
|
| 210 |
-
"id": "7fdce946",
|
| 211 |
-
"metadata": {},
|
| 212 |
-
"outputs": [],
|
| 213 |
-
"source": [
|
| 214 |
-
"with open(\"question_labels.json\",\"r\") as f:\n",
|
| 215 |
-
" question_labels = f.read()\n",
|
| 216 |
-
" "
|
| 217 |
-
]
|
| 218 |
-
},
|
| 219 |
-
{
|
| 220 |
-
"cell_type": "code",
|
| 221 |
-
"execution_count": 11,
|
| 222 |
-
"id": "e51a0ef2",
|
| 223 |
-
"metadata": {},
|
| 224 |
-
"outputs": [
|
| 225 |
-
{
|
| 226 |
-
"name": "stdout",
|
| 227 |
-
"output_type": "stream",
|
| 228 |
-
"text": [
|
| 229 |
-
"{\"I see all living beings as equal parts of one whole.\": \"Holistic worldview\",\n",
|
| 230 |
-
" \"I believe every body houses a different type of soul or identity.\": \"Identity Distinctiveness\", \n",
|
| 231 |
-
" \"I often mistake what is right for wrong, and wrong for right.\": \"Moral judgment\", \n",
|
| 232 |
-
" \"I understand clearly what binds me and what liberates me.\": \"Self\\u2011Awareness\", \n",
|
| 233 |
-
" \"I feel confused about what is truly beneficial for me.\": \"Self\\u2011clarity\", \n",
|
| 234 |
-
" \"I perform my duties regularly without being attached to results.\": \"Process Orientation\",\n",
|
| 235 |
-
" \"I work with great effort because I want rewards or recognition.\": \"Extrinsic Motivation\",\n",
|
| 236 |
-
" \"I sometimes work in disregard of ethical or scriptural principles.\": \"Ethical Integrity\",\n",
|
| 237 |
-
" \"I act without hatred or attraction, simply out of responsibility.\": \"Responsibility\",\n",
|
| 238 |
-
" \"I engage in work even when it may harm myself or others.\": \"Risk tolerance\", \n",
|
| 239 |
-
" \"I stay focused on my goals with steadiness and patience.\": \"Persistence\", \"I give up when results don\\u2019t appear quickly.\": \"Patience\", \"My mind often gets trapped in fear, lamentation, or illusion.\": \"Negative thinking\", \"I can control my senses and desires through discipline.\": \"Self-Discipline\", \"I am easily swayed by joy and sorrow in my determination.\": \"Emotional sensitivity\", \"My happiness is like nectar at the end, even if it feels hard in the beginning.\": \"Perseverance\", \"I seek happiness through pleasures of the senses.\": \"sensory pleasure\", \"My pleasures often feel sweet at first but bitter later.\": \"Hedonic decline\", \"I feel contentment in simplicity and inner growth.\": \"Inner contentment\", \"I slip into laziness, sleep, or escape as a form of happiness.\": \"Avoidance Coping\", \"I prefer fresh, wholesome, and nourishing foods.\": \"Healthy eating preference\", \"I often eat spicy, sour, salty, or over-stimulating foods.\": \"Flavor Preference\", \"I eat stale, tasteless, or leftover food without care.\": \"Food Waste\", \"I am conscious of how food affects my health and mind.\": \"Nutrition Awareness\", \"I tend to overeat or eat carelessly when stressed.\": \"Stress eating\", \"I worship or meditate without expecting material results.\": \"Spirituality\", \"I pray mainly for success, wealth, or recognition.\": \"Material Success\", \"I sometimes engage in rituals out of fear, anger, or pride.\": \"Emotionally-driven rituals\", \"My worship is regular, calm, and brings peace of mind.\": \"Worship Consistency\", \"I may perform worship without understanding its purpose.\": \"Religious Ritualism\", \"I give charity at the right time, to the right person, without expectation.\": \"Altruism\", \"I give when I know there will be recognition or benefit for me.\": \"Self\\u2011interested generosity\", \"I sometimes give unwillingly or grudgingly.\": \"willingness to give\", \"I donate even when no one is watching.\": \"Altruism\", \"I give to impress others or gain influence.\": \"Instrumental Generosity\", \"I practice discipline to purify myself and grow spiritually.\": \"Spiritual discipline\", \"I take up austerities for fame or social respect.\": \"Social status motivation\", \"I sometimes force myself into self-torture or harmful practices.\": \"Self-harm behaviors\", \"I sacrifice willingly even without expecting any result.\": \"Altruism\", \"My discipline is unstable\\u2014I start but don\\u2019t sustain it.\": \"Consistency\", \"I value truthfulness, humility, and simplicity in my conduct.\": \"Integrity\", \"I seek opportunities to showcase my abilities and gain praise.\": \"seeking validation\", \"I am prone to anger, intolerance, or envy.\": \"Hostility\", \"I feel depressed, lethargic, or afraid without clear reason.\": \"Depression\", \"I feel satisfaction in performing my duty without comparison.\": \"Intrinsic satisfaction\", \"I feel connected to others through compassion and respect.\": \"Empathy\", \"I see myself as more important than others.\": \"Self\\u2011importance\", \"I often ridicule or criticize others.\": \"Critical Attitude\", \"I am embarrassed by my own mistakes and seek to improve.\": \"Self-Improvement\", \"I sometimes live in delusion, blaming others for my situation.\": \"External blame\"}\n"
|
| 240 |
-
]
|
| 241 |
-
}
|
| 242 |
-
],
|
| 243 |
-
"source": [
|
| 244 |
-
"print(question_labels)"
|
| 245 |
-
]
|
| 246 |
-
},
|
| 247 |
-
{
|
| 248 |
-
"cell_type": "code",
|
| 249 |
-
"execution_count": 13,
|
| 250 |
-
"id": "499af9f3",
|
| 251 |
-
"metadata": {},
|
| 252 |
-
"outputs": [
|
| 253 |
-
{
|
| 254 |
-
"ename": "AttributeError",
|
| 255 |
-
"evalue": "'list' object has no attribute 'shape'",
|
| 256 |
-
"output_type": "error",
|
| 257 |
-
"traceback": [
|
| 258 |
-
"\u001b[31m---------------------------------------------------------------------------\u001b[39m",
|
| 259 |
-
"\u001b[31mAttributeError\u001b[39m Traceback (most recent call last)",
|
| 260 |
-
"\u001b[36mCell\u001b[39m\u001b[36m \u001b[39m\u001b[32mIn[13]\u001b[39m\u001b[32m, line 2\u001b[39m\n\u001b[32m 1\u001b[39m test = [\u001b[32m1\u001b[39m,\u001b[32m2\u001b[39m,\u001b[32m3\u001b[39m,\u001b[32m4\u001b[39m,\u001b[32m4\u001b[39m,\u001b[32m2\u001b[39m,\u001b[32m2\u001b[39m,\u001b[32m3\u001b[39m,\u001b[32m3\u001b[39m,\u001b[32m53\u001b[39m,\u001b[32m2\u001b[39m,\u001b[32m13\u001b[39m,\u001b[32m122\u001b[39m,\u001b[32m424\u001b[39m,\u001b[32m21\u001b[39m]\n\u001b[32m----> \u001b[39m\u001b[32m2\u001b[39m \u001b[38;5;28mprint\u001b[39m(\u001b[43mtest\u001b[49m\u001b[43m.\u001b[49m\u001b[43mshape\u001b[49m())\n",
|
| 261 |
-
"\u001b[31mAttributeError\u001b[39m: 'list' object has no attribute 'shape'"
|
| 262 |
-
]
|
| 263 |
-
}
|
| 264 |
-
],
|
| 265 |
-
"source": [
|
| 266 |
-
"test = [1,2,3,4,4,2,2,3,3,53,2,13,122,424,21]\n",
|
| 267 |
-
"print(test.shape())"
|
| 268 |
-
]
|
| 269 |
-
},
|
| 270 |
-
{
|
| 271 |
-
"cell_type": "code",
|
| 272 |
-
"execution_count": 16,
|
| 273 |
-
"id": "71a3c6ad",
|
| 274 |
-
"metadata": {},
|
| 275 |
-
"outputs": [
|
| 276 |
-
{
|
| 277 |
-
"name": "stdout",
|
| 278 |
-
"output_type": "stream",
|
| 279 |
-
"text": [
|
| 280 |
-
"\n",
|
| 281 |
-
"**Holistic Overview** \n",
|
| 282 |
-
"\n",
|
| 283 |
-
"You move through life with a quiet sense of being part of a larger whole, yet you’re still in the midst of discovering what truly feels like you. Your practical self‑awareness anchors you, but the gentle over‑analysis you sometimes indulge can keep you from making swift, heartfelt choices—yet this very introspection also gives you a powerful, ethical compass that guides your actions and your willingness to take bold, responsible risks. \n",
|
| 284 |
-
"\n",
|
| 285 |
-
"In your day‑to‑day world, the balance between disciplined structure and daring initiative shines: you take responsibility, yet you’re not afraid to push boundaries when the outcome feels meaningful. Your empathy and steady persistence help you weather slow progress, and your appreciation for sensory pleasures can lift your mood—if you simply give yourself permission to savor those moments without slipping into avoidance. By gently turning outward validation into an inner affirmation and weaving mindful pauses into your eating and work habits, you’ll cultivate a steadier routine that nurtures both your self‑care and your generous spirit, allowing you to live out your purpose with calm confidence and lasting joy.\n",
|
| 286 |
-
"\n",
|
| 287 |
-
"**Knowledge & Understanding** \n",
|
| 288 |
-
"Your responses suggest a strong intuitive sense of connectedness (Oneness) paired with a practical grasp of self‑awareness, which is a solid foundation for growth. However, the doubts surrounding your identity and the confusion around moral judgments indicate areas where you’re still exploring what truly feels authentic and right for you. The tendency to overthink self‑clarity may be a protective strategy, but it can also slow decision‑making. Embrace this phase as a natural exploration—use reflective practices and small, values‑aligned experiments to steadily clarify your identity and ethical compass.\n",
|
| 289 |
-
"\n",
|
| 290 |
-
"**Action & Work** \n",
|
| 291 |
-
"You move through tasks with a clear sense of duty, always focused on process and accountability. Your drive is largely selfless, channeling ambition into ethical choices that elevate both yourself and the people around you. While you are a natural risk‑taker—sometimes even reckless—you also carry a deep sense of responsibility that can guide those bold moves toward constructive outcomes. Embracing this blend of structure, integrity, and daring can unlock powerful, purpose‑driven achievements.\n",
|
| 292 |
-
"\n",
|
| 293 |
-
"**Determination & Willpower** \n",
|
| 294 |
-
"Your steady persistence shows that you can keep moving forward even when progress feels slow, which is a solid foundation for long‑term success. \n",
|
| 295 |
-
"While impatience can spark a desire for rapid achievement, it might also lead to frustration—mindful pacing can help you stay aligned with your goals. \n",
|
| 296 |
-
"A fear‑driven negative mindset may surface at critical moments, but your ambitious self‑discipline signals a strong inner drive to push through doubt. \n",
|
| 297 |
-
"Being emotionally sensitive gives you deep empathy and insight, so channel those feelings into constructive self‑reflection rather than self‑criticism.\n",
|
| 298 |
-
"\n",
|
| 299 |
-
"**Happiness & Emotions**\n",
|
| 300 |
-
"\n",
|
| 301 |
-
"Your responses suggest a balanced blend of resilience and moments of sensory delight. While perseverance remains neutral, indicating a steady, if not particularly heightened, commitment to goals, the prominence of sensory pleasure highlights an appreciation for tangible experiences. The impulsive hedonic decline points to occasional spikes in enjoyment that may be followed by quick dips—an area where mindful habits could sustain satisfaction longer. Simultaneously, the simple inner contentment anchors you in calm, and the avoidance coping style hints at occasional escapist tendencies. Cultivating mindful awareness during those brief pleasures and gently challenging escapist patterns can help you weave lasting joy into everyday life.\n",
|
| 302 |
-
"\n",
|
| 303 |
-
"**Food & Lifestyle** \n",
|
| 304 |
-
"You value nutritious meals and are mindful of your health, yet you find comfort in salty flavors that can be both satisfying and a subtle hint that you might be craving a bit of indulgence. Your awareness of nutrition suggests a good foundation, but the label “lazy” on food waste points to a possible disconnect between intention and routine—perhaps quick, convenient options are winning the battle of the day. Recognizing that stress can trigger eating, a gentle habit of mindful pauses before reaching for food could help you align your cravings with your health goals, turning each meal into a purposeful and rewarding experience.\n",
|
| 305 |
-
"\n",
|
| 306 |
-
"**Worship & Devotion**\n",
|
| 307 |
-
"\n",
|
| 308 |
-
"Your spiritual practice radiates a calm presence, signaling inner peace that supports your daily life. \n",
|
| 309 |
-
"Balancing this tranquility is a strong drive toward material success, indicating a healthy integration of worldly goals with spiritual well‑being. \n",
|
| 310 |
-
"Yet, the presence of fear in emotionally‑driven rituals suggests moments of uncertainty—perhaps a need for gentle reassurance as you express devotion. \n",
|
| 311 |
-
"Embracing your ritualistic habits with mindful intention can transform these feelings into purposeful, comforting routines that nurture both your spirit and ambitions.\n",
|
| 312 |
-
"\n",
|
| 313 |
-
"**Charity & Generosity** \n",
|
| 314 |
-
"Your responses paint a nuanced picture of how you approach giving. While your altruistic drive sits at a neutral level, you also exhibit an ambitious streak when generosity aligns with personal goals—suggesting you’re motivated to make a meaningful impact that benefits both others and your own aspirations. Your willingness to give, however, feels somewhat reluctant; a gentle, supportive environment could help ease this hesitation. Finally, the desire for recognition in instrumental generosity indicates you value acknowledgement, so framing your acts of giving as both heartfelt and visibly impactful may help you feel more comfortable and fulfilled. By nurturing your genuine concern for others and pairing it with small, meaningful recognitions, you can turn these insights into a more confident and consistent generosity practice.\n",
|
| 315 |
-
"\n",
|
| 316 |
-
"**Austerity & Sacrifice** \n",
|
| 317 |
-
"The pattern here suggests a person who maintains a balanced spiritual discipline but often feels driven by external recognition. Their self‑care can become excessive, hinting at an underlying struggle with self‑value that may lead to harmful coping. Altruistic actions appear neutral, perhaps used sparingly to balance their self‑focus. Inconsistency in behaviors indicates a fluctuating internal state—an opportunity to develop steadier routines that honor both personal well‑being and genuine self‑less actions. This reflection offers a chance to cultivate a healthier equilibrium, ensuring that sacrifice serves growth rather than self‑damage.\n",
|
| 318 |
-
"\n",
|
| 319 |
-
"**Personality Traits & Self-Image** \n",
|
| 320 |
-
"Your balanced sense of integrity shows a strong moral compass that guides your choices. The tendency to seek external validation suggests you value recognition, yet your intrinsic selflessness reflects a genuine desire to contribute meaningfully to others’ well‑being. The presence of anger and fear‑based depressive feelings may point to underlying frustration or anxiety that could benefit from gentle exploration and healthy coping strategies. Overall, your blend of steadfast ethics, altruism, and an openness to external affirmation creates a solid foundation for personal growth and compassionate action.\n",
|
| 321 |
-
"\n",
|
| 322 |
-
"**Ego & Relating to Others** \n",
|
| 323 |
-
"You demonstrate a healthy mix of ambition and empathy, which gives you the confidence to pursue goals while staying attuned to others’ feelings. Your self‑awareness and commitment to self‑improvement signal a readiness to grow, yet the ambitious streak in self‑importance and critical attitudes suggests a drive that can sometimes feel intense. By gently shifting focus from external blame toward internal learning, you’ll nurture stronger relationships and an even more balanced sense of self.\n",
|
| 324 |
-
"\n",
|
| 325 |
-
"**Strengths** \n",
|
| 326 |
-
"You naturally feel a deep sense of connectedness that grounds you in the present moment, while your practical self‑awareness keeps you focused on what truly matters. Your drive is guided by a strong moral compass, and you channel ambition into ethical choices that uplift others. The blend of disciplined structure and bold risk‑taking gives you a unique capacity to turn daring ideas into concrete outcomes. Empathy and a steady persistence help you stay resilient even when progress feels slow. These qualities form a solid foundation for purposeful growth and meaningful impact. \n",
|
| 327 |
-
"\n",
|
| 328 |
-
"**Areas of Improvement** \n",
|
| 329 |
-
"A gentle exploration of your identity and values can help dissolve the overthinking that slows decision‑making, allowing you to trust your intuition more fully. Mindful pacing—balancing quick wins with longer‑term goals—will keep frustration at bay and sustain momentum. Cultivating awareness during sensory pleasures and reducing escapist tendencies can extend moments of joy without compromising calm. Shifting from external validation to internal affirmation will nurture a healthier sense of self‑worth and consistency in generosity. Finally, gentle habits of self‑care and routine steadiness can transform occasional excess into intentional, nurturing practices.\n",
|
| 330 |
-
"\n",
|
| 331 |
-
"\n",
|
| 332 |
-
"\n"
|
| 333 |
-
]
|
| 334 |
-
}
|
| 335 |
-
],
|
| 336 |
-
"source": [
|
| 337 |
-
"text = \"\"\"\n",
|
| 338 |
-
"**Holistic Overview** \\n\\nYou move through life with a quiet sense of being part of a larger whole, yet you’re still in the midst of discovering what truly feels like you. Your practical self‑awareness anchors you, but the gentle over‑analysis you sometimes indulge can keep you from making swift, heartfelt choices—yet this very introspection also gives you a powerful, ethical compass that guides your actions and your willingness to take bold, responsible risks. \\n\\nIn your day‑to‑day world, the balance between disciplined structure and daring initiative shines: you take responsibility, yet you’re not afraid to push boundaries when the outcome feels meaningful. Your empathy and steady persistence help you weather slow progress, and your appreciation for sensory pleasures can lift your mood—if you simply give yourself permission to savor those moments without slipping into avoidance. By gently turning outward validation into an inner affirmation and weaving mindful pauses into your eating and work habits, you’ll cultivate a steadier routine that nurtures both your self‑care and your generous spirit, allowing you to live out your purpose with calm confidence and lasting joy.\\n\\n**Knowledge & Understanding** \\nYour responses suggest a strong intuitive sense of connectedness (Oneness) paired with a practical grasp of self‑awareness, which is a solid foundation for growth. However, the doubts surrounding your identity and the confusion around moral judgments indicate areas where you’re still exploring what truly feels authentic and right for you. The tendency to overthink self‑clarity may be a protective strategy, but it can also slow decision‑making. Embrace this phase as a natural exploration—use reflective practices and small, values‑aligned experiments to steadily clarify your identity and ethical compass.\\n\\n**Action & Work** \\nYou move through tasks with a clear sense of duty, always focused on process and accountability. Your drive is largely selfless, channeling ambition into ethical choices that elevate both yourself and the people around you. While you are a natural risk‑taker—sometimes even reckless—you also carry a deep sense of responsibility that can guide those bold moves toward constructive outcomes. Embracing this blend of structure, integrity, and daring can unlock powerful, purpose‑driven achievements.\\n\\n**Determination & Willpower** \\nYour steady persistence shows that you can keep moving forward even when progress feels slow, which is a solid foundation for long‑term success. \\nWhile impatience can spark a desire for rapid achievement, it might also lead to frustration—mindful pacing can help you stay aligned with your goals. \\nA fear‑driven negative mindset may surface at critical moments, but your ambitious self‑discipline signals a strong inner drive to push through doubt. \\nBeing emotionally sensitive gives you deep empathy and insight, so channel those feelings into constructive self‑reflection rather than self‑criticism.\\n\\n**Happiness & Emotions**\\n\\nYour responses suggest a balanced blend of resilience and moments of sensory delight. While perseverance remains neutral, indicating a steady, if not particularly heightened, commitment to goals, the prominence of sensory pleasure highlights an appreciation for tangible experiences. The impulsive hedonic decline points to occasional spikes in enjoyment that may be followed by quick dips—an area where mindful habits could sustain satisfaction longer. Simultaneously, the simple inner contentment anchors you in calm, and the avoidance coping style hints at occasional escapist tendencies. Cultivating mindful awareness during those brief pleasures and gently challenging escapist patterns can help you weave lasting joy into everyday life.\\n\\n**Food & Lifestyle** \\nYou value nutritious meals and are mindful of your health, yet you find comfort in salty flavors that can be both satisfying and a subtle hint that you might be craving a bit of indulgence. Your awareness of nutrition suggests a good foundation, but the label “lazy” on food waste points to a possible disconnect between intention and routine—perhaps quick, convenient options are winning the battle of the day. Recognizing that stress can trigger eating, a gentle habit of mindful pauses before reaching for food could help you align your cravings with your health goals, turning each meal into a purposeful and rewarding experience.\\n\\n**Worship & Devotion**\\n\\nYour spiritual practice radiates a calm presence, signaling inner peace that supports your daily life. \\nBalancing this tranquility is a strong drive toward material success, indicating a healthy integration of worldly goals with spiritual well‑being. \\nYet, the presence of fear in emotionally‑driven rituals suggests moments of uncertainty—perhaps a need for gentle reassurance as you express devotion. \\nEmbracing your ritualistic habits with mindful intention can transform these feelings into purposeful, comforting routines that nurture both your spirit and ambitions.\\n\\n**Charity & Generosity** \\nYour responses paint a nuanced picture of how you approach giving. While your altruistic drive sits at a neutral level, you also exhibit an ambitious streak when generosity aligns with personal goals—suggesting you’re motivated to make a meaningful impact that benefits both others and your own aspirations. Your willingness to give, however, feels somewhat reluctant; a gentle, supportive environment could help ease this hesitation. Finally, the desire for recognition in instrumental generosity indicates you value acknowledgement, so framing your acts of giving as both heartfelt and visibly impactful may help you feel more comfortable and fulfilled. By nurturing your genuine concern for others and pairing it with small, meaningful recognitions, you can turn these insights into a more confident and consistent generosity practice.\\n\\n**Austerity & Sacrifice** \\nThe pattern here suggests a person who maintains a balanced spiritual discipline but often feels driven by external recognition. Their self‑care can become excessive, hinting at an underlying struggle with self‑value that may lead to harmful coping. Altruistic actions appear neutral, perhaps used sparingly to balance their self‑focus. Inconsistency in behaviors indicates a fluctuating internal state—an opportunity to develop steadier routines that honor both personal well‑being and genuine self‑less actions. This reflection offers a chance to cultivate a healthier equilibrium, ensuring that sacrifice serves growth rather than self‑damage.\\n\\n**Personality Traits & Self-Image** \\nYour balanced sense of integrity shows a strong moral compass that guides your choices. The tendency to seek external validation suggests you value recognition, yet your intrinsic selflessness reflects a genuine desire to contribute meaningfully to others’ well‑being. The presence of anger and fear‑based depressive feelings may point to underlying frustration or anxiety that could benefit from gentle exploration and healthy coping strategies. Overall, your blend of steadfast ethics, altruism, and an openness to external affirmation creates a solid foundation for personal growth and compassionate action.\\n\\n**Ego & Relating to Others** \\nYou demonstrate a healthy mix of ambition and empathy, which gives you the confidence to pursue goals while staying attuned to others’ feelings. Your self‑awareness and commitment to self‑improvement signal a readiness to grow, yet the ambitious streak in self‑importance and critical attitudes suggests a drive that can sometimes feel intense. By gently shifting focus from external blame toward internal learning, you’ll nurture stronger relationships and an even more balanced sense of self.\\n\\n**Strengths** \\nYou naturally feel a deep sense of connectedness that grounds you in the present moment, while your practical self‑awareness keeps you focused on what truly matters. Your drive is guided by a strong moral compass, and you channel ambition into ethical choices that uplift others. The blend of disciplined structure and bold risk‑taking gives you a unique capacity to turn daring ideas into concrete outcomes. Empathy and a steady persistence help you stay resilient even when progress feels slow. These qualities form a solid foundation for purposeful growth and meaningful impact. \\n\\n**Areas of Improvement** \\nA gentle exploration of your identity and values can help dissolve the overthinking that slows decision‑making, allowing you to trust your intuition more fully. Mindful pacing—balancing quick wins with longer‑term goals—will keep frustration at bay and sustain momentum. Cultivating awareness during sensory pleasures and reducing escapist tendencies can extend moments of joy without compromising calm. Shifting from external validation to internal affirmation will nurture a healthier sense of self‑worth and consistency in generosity. Finally, gentle habits of self‑care and routine steadiness can transform occasional excess into intentional, nurturing practices.\\n\\n\n",
|
| 339 |
-
"\"\"\"\n",
|
| 340 |
-
"print(text)\n"
|
| 341 |
-
]
|
| 342 |
-
},
|
| 343 |
-
{
|
| 344 |
-
"cell_type": "code",
|
| 345 |
-
"execution_count": null,
|
| 346 |
-
"id": "45a271a3",
|
| 347 |
-
"metadata": {},
|
| 348 |
-
"outputs": [],
|
| 349 |
-
"source": []
|
| 350 |
-
}
|
| 351 |
-
],
|
| 352 |
-
"metadata": {
|
| 353 |
-
"kernelspec": {
|
| 354 |
-
"display_name": "calibre-env",
|
| 355 |
-
"language": "python",
|
| 356 |
-
"name": "python3"
|
| 357 |
-
},
|
| 358 |
-
"language_info": {
|
| 359 |
-
"codemirror_mode": {
|
| 360 |
-
"name": "ipython",
|
| 361 |
-
"version": 3
|
| 362 |
-
},
|
| 363 |
-
"file_extension": ".py",
|
| 364 |
-
"mimetype": "text/x-python",
|
| 365 |
-
"name": "python",
|
| 366 |
-
"nbconvert_exporter": "python",
|
| 367 |
-
"pygments_lexer": "ipython3",
|
| 368 |
-
"version": "3.12.1"
|
| 369 |
-
}
|
| 370 |
-
},
|
| 371 |
-
"nbformat": 4,
|
| 372 |
-
"nbformat_minor": 5
|
| 373 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|