{ "cells": [ { "cell_type": "code", "execution_count": 2, "id": "602bca33", "metadata": {}, "outputs": [], "source": [ "CONNECTION_STRING = \"\"\n", "DB_NAME = \"sattvastha\"\n", "COLLECTION = \"\"" ] }, { "cell_type": "code", "execution_count": 3, "id": "c93560e6", "metadata": {}, "outputs": [], "source": [ "import os\n", "from pymongo import MongoClient\n", "import certifi\n", "NVIDIA = \"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\"\n", "client = MongoClient(CONNECTION_STRING)\n", "db = client.list_database_names()" ] }, { "cell_type": "code", "execution_count": 4, "id": "0a4e3cc5", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "['sample_mflix', 'sattvastha', 'website', 'admin', 'local']\n" ] } ], "source": [ "print(db)" ] }, { "cell_type": "code", "execution_count": 5, "id": "54eec589", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "['tasks', 'chatmessages', 'enrollments', 'journals', 'counsellors', 'assessments', 'moodtrackings', 'users', 'courses', 'completedassessments', 'podcasts', 'journalprompts', 'journalentries', 'purchases', 'emotionalstates', 'payments', 'categories', 'courseregistrations', 'affirmations', 'userpromptusages', 'counsellingsessions', 'admins', 'assessmenttemplates']\n" ] } ], "source": [ "db = client[\"sattvastha\"]\n", "# collection = db(\"sattvastha\")\n", "collection = db.list_collection_names()\n", "print(collection)\n" ] }, { "cell_type": "code", "execution_count": 6, "id": "43a34863", "metadata": {}, "outputs": [], "source": [ "from bson import ObjectId\n", "client = MongoClient(CONNECTION_STRING)\n", "db = client[\"sattvastha\"]\n", "collection = db[\"journalentries\"]" ] }, { "cell_type": "code", "execution_count": 12, "id": "97412591", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "g💯😔😅\n", "hello\n", "I am feeling worried these days\n" ] } ], "source": [ "cursor = collection.find().sort(\"createdAt\", -1).limit(20)\n", "# cursor = collection.find({\"templateName\":\"Kapha,Pitta,Vata\"}).sort(\"createdAt\", -1).limit(1)\n", "# cursor = collection.find()\n", "mapping = {'1':'V','2':'P','3':'K'}\n", "for item in cursor:\n", " # print(item)\n", " if item[\"content\"].get(\"mind_dump\") is True:\n", " print(item[\"content\"][\"original\"])\n", "\n", "\n", "\n" ] }, { "cell_type": "code", "execution_count": null, "id": "56afef0c", "metadata": {}, "outputs": [], "source": [] }, { "cell_type": "code", "execution_count": null, "id": "9acbfe56", "metadata": {}, "outputs": [], "source": [ "CONNECTION_STRING = \"mongodb+srv://sameer:sameer09mongo@chat-history-cluster.ffcfmsa.mongodb.net/?appName=chat-history-cluster\"\n", "DB_NAME = \"vidur_db\"\n", "COLLECTION = \"\"" ] }, { "cell_type": "code", "execution_count": null, "id": "46792eae", "metadata": {}, "outputs": [], "source": [ "import os\n", "from pymongo import MongoClient\n", "import certifi\n", "NVIDIA = \"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\"\n", "client = MongoClient(CONNECTION_STRING)\n", "db = client.list_database_names()" ] }, { "cell_type": "code", "execution_count": null, "id": "eb47ef84", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "['sample_mflix', 'vidur_db', 'admin', 'local']\n" ] } ], "source": [ "print(db)" ] }, { "cell_type": "code", "execution_count": null, "id": "67237a9f", "metadata": {}, "outputs": [], "source": [ "db = client[\"vidur_db\"]" ] }, { "cell_type": "code", "execution_count": null, "id": "7eb0335b", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "['chat_history-cluster', 'task_planner']\n" ] } ], "source": [ "collection = db.list_collection_names()\n", "print(collection)" ] }, { "cell_type": "code", "execution_count": null, "id": "86509afa", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "{'_id': ObjectId('692b8562a7cf0116d2a2977e'), 'user_id': 'sameer', 'timestamp': datetime.datetime(2025, 11, 29, 23, 44, 34, 82000), 'conversation': {'human': 'hello brother i am good', 'ai': \"Hello Sameer, it's great to hear that you're doing well. I'm happy to be chatting with you and exploring your current well-being. How has your day been so far? Have you done anything exciting or relaxing that's helped you feel good? \\n\\nI'm all ears and here to listen, so feel free to share as much or as little as you'd like. \\n\\nAlso, here is something you will surely like, only for you.\"}, 'meta': {'Topic': 'General Life', 'Goal': 'Explore current well-being'}}\n", "{'_id': ObjectId('692b859064c59a67b6cc6813'), 'user_id': 'suraj', 'timestamp': datetime.datetime(2025, 11, 29, 23, 45, 20, 68000), 'conversation': {'human': \"some things aren't alwasy good even though they might seem good from outside\", 'ai': \"Suraj, that's a very profound statement. It's easy to get caught up in the idea that something is perfect or ideal just because it looks that way from the outside. But the truth is, every situation, every relationship, and every experience has its own unique complexities and challenges.\\n\\nIt's great that you're recognizing this and acknowledging that things aren't always as they seem. This kind of awareness can help you navigate life's situations more mindfully and make more informed decisions.\\n\\nCan you think of a specific situation or experience where you felt like things weren't quite as good as they seemed from the outside? What was it about that situation that made you realize this, and how did you handle it?\\n\\nAlso, here is something you will surely like, only for you.\"}, 'meta': {'Topic': ' General Life ', 'Goal': \" Explore the user's perspective on perceived realities \"}}\n", "{'_id': ObjectId('692b85bd64c59a67b6cc6814'), 'user_id': 'suraj', 'timestamp': datetime.datetime(2025, 11, 29, 23, 46, 5, 256000), 'conversation': {'human': 'what was my previous statement to you?', 'ai': 'Suraj, I\\'m happy to refresh your memory about our previous conversation. You had mentioned that \"some things aren\\'t always good even though they might seem good from outside.\" This statement sparked a thoughtful discussion about how appearances can be deceiving, and how it\\'s essential to look beyond the surface level to truly understand a situation.\\n\\nYou hadn\\'t shared a specific situation or experience that led you to this realization, but I\\'m still here to listen and offer guidance if you\\'d like to explore that further. \\n\\nThe topic of our conversation is \\'General Life\\', and our current goal is to explore the context of your current question. It seems like you\\'re reflecting on our previous conversation and wanting to revisit the ideas we discussed.\\n\\nIs there something specific that\\'s been on your mind since our last conversation, or would you like to explore a new aspect of this topic? \\n\\nAlso, here is something you will surely like, only for you.'}, 'meta': {'Topic': ' General Life ', 'Goal': \" Refresh the user's memory about the previous conversation and explore the context of their current question \"}}\n", "{'_id': ObjectId('692c38c17fa495978514c0ed'), 'user_id': 'sameer', 'timestamp': datetime.datetime(2025, 11, 30, 12, 29, 53, 281000), 'conversation': {'human': 'hello brother, i have a runny nose and headache today', 'ai': \"Hello Sameer, I'm so sorry to hear that you're not feeling well today. A runny nose and headache can be really frustrating and uncomfortable. It's great that you're reaching out and sharing how you're feeling, as talking about it can sometimes help alleviate some of the discomfort.\\n\\nCan you tell me more about what's been going on with your runny nose and headache? Have you been experiencing any other symptoms like fever, sore throat, or fatigue? Have you taken any medication or tried any home remedies to help ease your symptoms?\\n\\nIt's also important to make sure you're taking care of yourself and getting plenty of rest. Sometimes, our bodies just need a little extra TLC to fight off whatever is causing us to feel unwell. Have you been drinking plenty of fluids, like water or tea, and eating nourishing foods to help your body recover?\\n\\nRemember, I'm here to listen and support you, and I want to help you feel better as soon as possible. If you need any recommendations or advice on how to manage your symptoms, I'm here to help.\\n\\nAlso, here is something you will surely like, only for you.\"}, 'meta': {'Topic': 'General Life', 'Goal': 'Address current health concerns'}}\n", "{'_id': ObjectId('692c3a11bb46228819daa7db'), 'user_id': 'sameer', 'timestamp': datetime.datetime(2025, 11, 30, 12, 35, 29, 819000), 'conversation': {'human': 'hello bro', 'ai': \"Hello Sameer, it's great to hear from you again. I hope you're feeling a bit better than earlier, despite the runny nose and headache. How's your day been since we last spoke? Have you been able to get some rest and take care of yourself?\\n\\nI want to make sure you know that I'm here for you, and I care about how you're feeling. If you need to talk about anything or just need someone to listen, I'm all ears. Sometimes, just sharing what's on your mind can help you feel a bit better.\\n\\nRemember, taking care of your physical and mental health is important, especially when you're not feeling well. Have you been able to do anything that brings you comfort or relaxation today?\\n\\nLet's chat more about what's been going on and see if there's anything I can do to support you. You're not alone, and I'm here to help in any way I can.\\n\\nAlso, here is something you will surely like, only for you.\"}, 'meta': {'Topic': 'General Life', 'Goal': 'Check-in and show empathy'}}\n", "{'_id': ObjectId('692c3b42484f8e5fab316dcd'), 'user_id': 'sameer', 'timestamp': datetime.datetime(2025, 11, 30, 12, 40, 34, 310000), 'conversation': {'human': 'hello bro, can you tell me what was my last message to you', 'ai': 'Hello Sameer, it\\'s great to hear from you again. I\\'d be happy to help you recall your last message to me. If I look back at our conversation history, I see that your last message was \"hello bro\". You had mentioned earlier that you were experiencing a runny nose and headache, and we had discussed ways to help you feel better. \\n\\nI\\'m here to listen and support you, and I want to make sure you know that I care about how you\\'re feeling. If you need to talk about anything or just need someone to listen, I\\'m all ears. Sometimes, just sharing what\\'s on your mind can help you feel a bit better.\\n\\nRemember, taking care of your physical and mental health is important, especially when you\\'re not feeling well. Have you been able to do anything that brings you comfort or relaxation today?\\n\\nLet\\'s chat more about what\\'s been going on and see if there\\'s anything I can do to support you. You\\'re not alone, and I\\'m here to help in any way I can.\\n\\nAlso, here is something you will surely like, only for you.'}, 'meta': {'Topic': 'General Life', 'Goal': 'Provide conversation history and context'}}\n", "{'_id': ObjectId('692c70f4ccbd28ac3b5af1bb'), 'user_id': 'sameer', 'timestamp': datetime.datetime(2025, 11, 30, 16, 29, 40, 468000), 'conversation': {'human': 'hey bro do you remember me???', 'ai': \"Hey Sameer, it's great to hear from you! I'm trying to place your name and face, but I have to admit, it's been a while. Can you remind me how we met or what we last talked about? That might help jog my memory. How have you been doing lately, anyway?\"}, 'meta': {'Topic': ' General Life ', 'Goal': \" Explore user's current state and re-establish connection \"}}\n", "{'_id': ObjectId('692c711bccbd28ac3b5af1bc'), 'user_id': 'sameer', 'timestamp': datetime.datetime(2025, 11, 30, 16, 30, 19, 760000), 'conversation': {'human': 'before i asked you do you remember me, what did i ask you ?', 'ai': \"Hello Sameer, I'm happy to help you. Unfortunately, I'm a large language model, I don't have the ability to retain memory of previous conversations or keep track of individual users. Each time you interact with me, it's a new conversation. However, I can try to help you with whatever is on your mind right now. You mentioned that you asked me something before, but I don't have any record of that. Would you like to ask me again, and I'll do my best to assist you? What's been on your mind lately, and how can I help?\"}, 'meta': {'Topic': ' General Life ', 'Goal': \" Retrieve previous conversation history to address user's question \"}}\n", "{'_id': ObjectId('692c7154ccbd28ac3b5af1bd'), 'user_id': 'suraj', 'timestamp': datetime.datetime(2025, 11, 30, 16, 31, 16, 404000), 'conversation': {'human': 'what was my last message to you?', 'ai': \"Hello Suraj, this is the beginning of our conversation, and I don't have any record of a previous message from you. I'm excited to chat with you, and I'm here to listen and help with anything you'd like to talk about. What's been on your mind lately, and how can I assist you today?\"}, 'meta': {'Topic': ' General Life ', 'Goal': \" Provide the user's last message and explore if they want to discuss something related to it or move on to a new aspect \"}}\n", "{'_id': ObjectId('692c783f01ee099dda12d6f4'), 'user_id': 'suraj', 'timestamp': datetime.datetime(2025, 11, 30, 17, 0, 47, 943000), 'conversation': {'human': 'what was my last message to you?', 'ai': \"Hello Suraj, this is the beginning of our conversation, and I don't have any record of a previous message from you. I'm excited to chat with you, and I'm here to help with any questions or topics you'd like to discuss. What's been on your mind lately, and how can I assist you today?\"}, 'meta': {'Topic': ' General Life ', 'Goal': \" Explore the reason behind the user's repetitive question about their last message and provide an opportunity to shift the conversation to a new topic if desired \"}}\n", "{'_id': ObjectId('692c798501ee099dda12d6f5'), 'user_id': 'suraj', 'timestamp': datetime.datetime(2025, 11, 30, 17, 6, 13, 686000), 'conversation': {'human': 'what msg did i send you just before this?', 'ai': \"Hi Suraj, I see you're trying to recall a message you sent me just before this one. Unfortunately, this is the beginning of our conversation, and I don't have any prior messages from you. I'm happy to chat with you now, though! What's been on your mind lately, and how can I help you today?\"}, 'meta': {'Topic': ' General Life ', 'Goal': \" Identify the pattern of the user's repetitive question and gently nudge the conversation towards a more meaningful discussion by asking an open-ended question \"}}\n", "{'_id': ObjectId('692c799c01ee099dda12d6f6'), 'user_id': 'suraj', 'timestamp': datetime.datetime(2025, 11, 30, 17, 6, 36, 8000), 'conversation': {'human': 'I am feeling very sad today', 'ai': \"Hey Suraj, I'm so sorry to hear that you're feeling sad today. It can be really tough to navigate those emotions. Can you tell me more about what's been going on and how you've been feeling lately? Was there something specific that happened that's making you feel this way, or is it more of a general feeling that's been building up over time?\"}, 'meta': {'Topic': ' General Life ', 'Goal': \" Explore the reason behind the user's current emotional state by asking a specific open-ended question to understand the cause of their sadness \"}}\n", "{'_id': ObjectId('692c79e701ee099dda12d6f7'), 'user_id': 'suraj', 'timestamp': datetime.datetime(2025, 11, 30, 17, 7, 51, 927000), 'conversation': {'human': 'what msg did i send you just before?', 'ai': \"Hi Suraj, I'm happy to chat with you. However, I want to clarify that this is the beginning of our conversation, and I don't have any prior messages from you to refer to. I'm a large language model, I don't have the ability to retain information about our previous conversations or maintain a memory of individual users. Each time you interact with me, it's a new conversation. How are you doing today, and what's been on your mind lately?\"}, 'meta': {'Topic': ' General Life ', 'Goal': \" Investigate the user's awareness of their conversation history by acknowledging their question and gently steering the conversation back to their emotional state \"}}\n", "{'_id': ObjectId('692c836cf07ceb9ac0b60e99'), 'user_id': 'suraj', 'timestamp': datetime.datetime(2025, 11, 30, 17, 48, 28, 171000), 'conversation': {'human': 'what was my last message to you?', 'ai': \"Suraj, I can see that you're trying to recall a message you sent me just before this one. I want to acknowledge that it can be frustrating when we can't quite remember something that's on our mind. I'm here to listen and help in any way I can. \\n\\nFrom what I can see, this is the beginning of our conversation, and I don't have any prior messages from you to refer to. But I do recall that in our previous conversations, you had mentioned feeling sad and were trying to recall a message you had sent. It seems like there might be something on your mind that you're trying to process or remember. \\n\\nWould you like to talk about what's been going on and how you've been feeling lately? Sometimes sharing what's on our mind can help clarify things and give us a better sense of direction. I'm here to listen and support you, Suraj.\"}, 'meta': {'Topic': ' General Life ', 'Goal': \" Redirect the conversation to the user's emotional state by acknowledging their question and expressing empathy \"}}\n", "{'_id': ObjectId('692c83d0f07ceb9ac0b60e9a'), 'user_id': 'suraj', 'timestamp': datetime.datetime(2025, 11, 30, 17, 50, 8, 461000), 'conversation': {'human': 'could you give me that exact statement?', 'ai': \"Suraj, I can see that you're trying to recall a specific statement, and I want to help you with that. However, I want to make sure I understand what you're looking for. Can you give me a hint or some context about the statement you're trying to remember? Was it something we discussed earlier in our conversation, or is it related to your feelings of sadness that you mentioned at the beginning of our conversation? Any details you can provide will help me better understand what you're looking for and try to assist you in recalling that statement.\"}, 'meta': {'Topic': ' General Life ', 'Goal': ' Ask a clarifying question to understand what specific statement the user is trying to recall to help them move forward '}}\n", "{'_id': ObjectId('692c83eef07ceb9ac0b60e9b'), 'user_id': 'sameer', 'timestamp': datetime.datetime(2025, 11, 30, 17, 50, 38, 394000), 'conversation': {'human': 'I am feeling very very sad today', 'ai': \"Hey Sameer, I'm so sorry to hear that you're feeling very sad today. It takes a lot of courage to acknowledge and share your emotions, so thank you for trusting me with this. Can you tell me more about what's been going on and how you've been feeling lately? Sometimes, talking about it can help clarify things and give us a better understanding of what's going on. Is there something specific that's been weighing on your mind, or is it more of a general feeling? I'm here to listen and support you in any way I can.\"}, 'meta': {'Topic': ' Emotional Wellbeing ', 'Goal': \" Explore the reasons behind the user's current sadness to provide emotional support \"}}\n", "{'_id': ObjectId('692c8407f07ceb9ac0b60e9c'), 'user_id': 'suraj', 'timestamp': datetime.datetime(2025, 11, 30, 17, 51, 3, 706000), 'conversation': {'human': 'what was the exact statement that i sent you before this?', 'ai': \"Suraj, I can see that you're trying to recall the exact statement you sent me before this one. I want to help you with that. However, I want to clarify that our conversation just started, and I don't have any prior messages from you to refer to. \\n\\nAs I look back at our conversation history, I can see that you've been trying to recall a message you sent me, but unfortunately, I don't have any record of it. You had asked me about the message you sent just before, and then about your last message, and even asked me to give you the exact statement. \\n\\nSince I don't have any prior messages to refer to, I'm going to take a guess that you might be trying to recall something specific that's been on your mind. Can you tell me more about what's been going on and why you're trying to recall that statement? Is there something specific that's been bothering you or something you're trying to remember? I'm here to listen and help in any way I can.\"}, 'meta': {'Topic': ' General Life ', 'Goal': \" Provide a direct answer to the user's question about the exact statement they sent before, and then ask a follow-up question to explore the context behind their inquiry \"}}\n", "{'_id': ObjectId('692c842bf07ceb9ac0b60e9d'), 'user_id': 'sameer', 'timestamp': datetime.datetime(2025, 11, 30, 17, 51, 39, 322000), 'conversation': {'human': 'what was the exact statement that i sent you before this?', 'ai': 'Sameer, I want to help you understand what\\'s going on and how we can work through this together. You\\'re feeling very sad today, and I\\'m here to listen and support you. Before we dive deeper into what\\'s been going on, I want to acknowledge your question about what you asked me before this. You\\'re right; you did ask me about a previous conversation, and I apologize again for not being able to recall it since I\\'m a large language model and our conversations just started.\\n\\nTo answer your current question, the exact statement you sent me before this was \"I am feeling very very sad today.\" It\\'s a brave step to share how you\\'re feeling, and I\\'m here to support you. Now, I\\'d like to gently explore what might be contributing to your sadness. Is there something specific that happened recently, or is it more of a general feeling that\\'s been building up over time? Sometimes, talking about it can help us understand it better and find ways to address it.'}, 'meta': {'Topic': ' Emotional Wellbeing ', 'Goal': \" Identify the specific incident or thought that triggered the user's sadness to provide more targeted support \"}}\n", "{'_id': ObjectId('692c8546f07ceb9ac0b60e9e'), 'user_id': 'curl_user', 'timestamp': datetime.datetime(2025, 11, 30, 17, 56, 22, 862000), 'conversation': {'human': 'Hello, how can I reduce my stress?', 'ai': \"Hello curl_user, I'm so glad you reached out about managing your stress. It's completely normal to feel overwhelmed, and taking the first step to address it is already a huge accomplishment. \\n\\nTo better understand what's going on, can you tell me a bit more about what's been causing you stress lately? Is it related to work, personal relationships, or something else entirely? Sometimes, identifying the sources of our stress can help us tackle it more effectively. What's been on your mind lately?\"}, 'meta': {'Topic': ' Stress Management ', 'Goal': ' Identify the sources of stress '}}\n", "{'_id': ObjectId('692db400a6a7b38b7d35ebf4'), 'user_id': 'sameer', 'timestamp': datetime.datetime(2025, 12, 1, 15, 28, 0, 619000), 'conversation': {'human': 'hey bro do you remember me?', 'ai': \"Hey Sameer, I'm glad you asked if I remember you. I want to start by acknowledging that I'm a large language model, I don't have personal memories, but I'm here to listen and support you in this moment. It's great that you're reaching out and trying to connect. \\n\\nI do have our conversation history, and I see that you've been feeling very sad today. You've been brave enough to share that with me, and I appreciate your trust. I want to explore that a bit more with you. What's been on your mind lately, and is there something specific that's contributing to your sadness, or is it more of a general feeling? Sometimes, talking about it can help us understand it better and find ways to address it. \\n\\nAlso, I'm curious, what made you ask if I remember you? Is there something specific you're hoping to recall or talk about from our previous conversations? I'm here to listen and help in any way I can.\"}, 'meta': {'Topic': ' Emotional Wellbeing ', 'Goal': \" Explore the user's sense of familiarity and connection to the conversation history to understand the context of their question and potentially transition to a new topic \"}}\n", "{'_id': ObjectId('692db7dea6a7b38b7d35ebf5'), 'user_id': 'suraj', 'timestamp': datetime.datetime(2025, 12, 1, 15, 44, 30, 393000), 'conversation': {'human': 'hey bro do you remember me?', 'ai': \"Hey Suraj, it's great to hear from you. I'm happy to try and help you figure out if we've met or talked before. However, I want to start by asking, what makes you think I might remember you? Was it a specific conversation or interaction that we had in the past? Maybe something you're trying to recall or a memory that's been on your mind lately? I'm all ears and here to listen, so feel free to share as much or as little as you'd like.\"}, 'meta': {'Topic': ' General Life ', 'Goal': \" Explore the user's intent behind asking if I remember them and ask a follow-up question to understand the context of their inquiry \"}}\n", "{'_id': ObjectId('692db829a6a7b38b7d35ebf6'), 'user_id': 'suraj', 'timestamp': datetime.datetime(2025, 12, 1, 15, 45, 45, 628000), 'conversation': {'human': 'do you have any related previous conversations', 'ai': \"Hi Suraj, I see that you're trying to recall some information from our previous conversations. I've taken a look at our conversation history, and it seems like you've been trying to remember specific statements or interactions we've had in the past. You've also asked if I remember you, which makes me think that you might be trying to recall a specific conversation or topic that we discussed earlier.\\n\\nCan you tell me more about what's been on your mind lately? Is there something specific that you're trying to remember or recall from our previous conversations? Maybe there's a particular topic or issue that you've been thinking about, and you're trying to remember how we discussed it before? I'm here to listen and help in any way I can, so feel free to share as much or as little as you'd like.\"}, 'meta': {'Topic': ' General Life ', 'Goal': ' Investigate if the user is trying to recall a specific conversation or interaction from the past and ask a question to clarify the context of their inquiry about previous conversations '}}\n", "{'_id': ObjectId('692dc02aa6a7b38b7d35ebf7'), 'user_id': 'sumedh', 'timestamp': datetime.datetime(2025, 12, 1, 16, 19, 54, 499000), 'conversation': {'human': 'how do i know my BP is high, what are the symptoms?', 'ai': \"Hello Sumedh, I'm here to help you with your concerns about high blood pressure. High blood pressure, also known as hypertension, can be a silent condition, and many people may not experience any noticeable symptoms until it's severe. However, some common symptoms that may indicate high blood pressure include:\\n\\n* Headaches\\n* Dizziness or lightheadedness\\n* Nosebleeds\\n* Fatigue\\n* Vision changes, such as blurred vision or double vision\\n* Chest pain or shortness of breath\\n\\nIt's essential to note that these symptoms can also be caused by other conditions, so it's crucial to get your blood pressure checked regularly to determine if you have high blood pressure.\\n\\nCan you tell me what's making you concerned about your blood pressure, Sumedh? Have you experienced any of these symptoms, or is there something else that's worrying you?\"}, 'meta': {'Topic': 'Health Concerns', 'Goal': \"Identify User's Specific Health Issue\"}}\n", "{'_id': ObjectId('692dc108a6a7b38b7d35ebf8'), 'user_id': 'sumedh', 'timestamp': datetime.datetime(2025, 12, 1, 16, 23, 36, 700000), 'conversation': {'human': 'if i am feeling very low by mentally, is it depression or somethinh?', 'ai': \"Sumedh, I'm so glad you reached out and shared how you're feeling. It takes a lot of courage to acknowledge and talk about our mental state. Feeling low mentally can be a challenging and overwhelming experience. Before we dive deeper, I want to assure you that I'm here to listen and support you without judgment.\\n\\nFrom our previous conversations, I recall that you were concerned about your blood pressure and its symptoms. I'm wondering if you've noticed any changes in your physical health or if you're experiencing any of the symptoms we discussed earlier, such as headaches or fatigue, that might be contributing to your current mental state.\\n\\nCan you tell me more about what's been going on and how you've been feeling lately? Is there something specific that's been weighing on your mind, or is it more of a general feeling of being low?\"}, 'meta': {'Topic': 'Health Concerns', 'Goal': \"Determine if User's Mental State is Related to Previous Health Concerns or a New Issue\"}}\n", "{'_id': ObjectId('692dc148a6a7b38b7d35ebf9'), 'user_id': 'sumedh', 'timestamp': datetime.datetime(2025, 12, 1, 16, 24, 40, 791000), 'conversation': {'human': 'how do i overcome my mental health?', 'ai': 'Sumedh, I\\'m really glad you\\'re taking this important step to address your mental health. It\\'s amazing that you\\'re acknowledging your feelings and seeking help. Overcoming mental health challenges can be a journey, and it\\'s essential to have a supportive and non-judgmental space to explore your emotions.\\n\\nFrom our previous conversations, I recall that you were concerned about your blood pressure and its symptoms. I\\'m wondering if you\\'ve noticed any connection between your physical health and your current mental state. Sometimes, our physical health can impact our mental well-being, and vice versa.\\n\\nTo better understand what you\\'re going through, can you tell me more about what you mean by \"overcoming my mental health\"? Are you experiencing any specific symptoms, such as anxiety, sadness, or feelings of overwhelm? Are there any particular situations or events that trigger these feelings, or is it more of a general feeling that you\\'re struggling with?\\n\\nAlso, have you considered reaching out to a mental health professional or a trusted friend/family member for support? Sometimes, talking to someone who can offer guidance and support can be incredibly helpful in navigating these challenges.\\n\\nRemember, Sumedh, you\\'re not alone in this journey. I\\'m here to listen and support you, and we can work together to explore strategies that can help you overcome your mental health challenges.'}, 'meta': {'Topic': 'Health Concerns', 'Goal': 'Explore Strategies for Overcoming Mental Health Challenges and Provide Personalized Recommendations'}}\n", "{'_id': ObjectId('692dc153a6a7b38b7d35ebfa'), 'user_id': 'sumedh', 'timestamp': datetime.datetime(2025, 12, 1, 16, 24, 51, 304000), 'conversation': {'human': 'how do i overcome my mental health problems?', 'ai': 'Sumedh, I\\'m really glad you\\'re taking this important step to address your mental health. It\\'s amazing that you\\'re acknowledging your feelings and seeking help. From our previous conversations, I recall that you were concerned about your blood pressure and its symptoms, and you also mentioned feeling low mentally. I\\'m wondering if you\\'ve noticed any connection between your physical health and your current mental state.\\n\\nTo better understand what you\\'re going through, can you tell me more about what you mean by \"overcoming my mental health\"? Are you experiencing any specific symptoms, such as anxiety, sadness, or feelings of overwhelm? Are there any particular situations or events that trigger these feelings, or is it more of a general feeling that you\\'re struggling with?\\n\\nAlso, I want to explore the idea that your physical health might be impacting your mental well-being. Have you noticed any changes in your physical health or energy levels that might be contributing to your current mental state? Sometimes, addressing underlying physical health issues can have a positive impact on our mental health.\\n\\nRemember, Sumedh, you\\'re not alone in this journey. I\\'m here to listen and support you, and we can work together to explore strategies that can help you overcome your mental health challenges. What do you think would be the first step you\\'d like to take to start addressing your mental health concerns?'}, 'meta': {'Topic': 'Health Concerns', 'Goal': 'Identify Underlying Causes of Mental Health Problems and Discuss Potential Treatment Options'}}\n", "{'_id': ObjectId('692ee75b2e97838580ec0dd5'), 'user_id': 'sameer', 'timestamp': datetime.datetime(2025, 12, 2, 13, 19, 23, 752000), 'conversation': {'human': 'I am feeling happy today', 'ai': \"Sameer, it's great to hear that you're feeling happy today! That's a wonderful shift from how you were feeling earlier. I'm curious, what do you think might have contributed to this change in your emotions? Was there something specific that happened or something you did that helped you feel more positive? Sometimes, reflecting on what's working for us can help us build on those things and create more happiness in our lives. Can you tell me more about what's been going on and how you've been taking care of yourself lately?\"}, 'meta': {'Topic': 'Emotional Wellbeing', 'Goal': 'Investigate the shift in emotions from sadness to happiness and explore the factors contributing to this change'}}\n", "{'_id': ObjectId('692ee7842e97838580ec0dd6'), 'user_id': 'sameer', 'timestamp': datetime.datetime(2025, 12, 2, 13, 20, 4, 663000), 'conversation': {'human': 'what was my mood earlier', 'ai': \"Sameer, I'm glad you're reflecting on your emotions and wondering about your mood earlier. It's great that you're taking the time to think about how you've been feeling. From what we've discussed so far, I recall that you were feeling very sad earlier, but then you mentioned feeling happy today. That's a significant shift, and I'm curious to explore what might have contributed to that change.\\n\\nCan you tell me more about what you think might have helped you feel better? Was there something specific that happened, or perhaps something you did that helped improve your mood? Sometimes, understanding what works for us can help us build on those positive experiences and create more happiness in our lives.\\n\\nAlso, I want to acknowledge that it's completely normal to experience mood swings, and it's great that you're acknowledging and exploring your emotions. I'm here to listen and support you, and I want to help you understand your emotions better. How do you think you've been taking care of yourself lately, and are there any specific things that you've been doing to prioritize your emotional wellbeing?\"}, 'meta': {'Topic': 'Emotional Wellbeing', 'Goal': \"Explore the user's awareness of their emotional state and facilitate reflection on their mood swings\"}}\n", "{'_id': ObjectId('69319c753a28f55ee4f4fdfe'), 'user_id': 'string', 'timestamp': datetime.datetime(2025, 12, 4, 14, 36, 37, 966000), 'conversation': {'human': 'string', 'ai': \"Hello! It's nice to meet you. I understand that we're just starting our conversation, and I'm excited to get to know you better. Since we don't have any prior conversation history, let's start fresh. You've come to me with a question or concern, and I'm here to listen and help in any way I can.\\n\\nBefore we dive in, I want to make sure I understand what's on your mind. Can you tell me a bit more about what's been going on in your life lately? What are some of the things that have been challenging or weighing on your mind? I'm here to listen and offer support, and I want to make sure I provide the best guidance possible. What's been the most pressing issue for you recently?\"}, 'meta': {'Topic': 'General Life', 'Goal': 'Explore Current Challenges'}}\n", "{'_id': ObjectId('69319dae3a28f55ee4f4fdff'), 'user_id': 'string', 'timestamp': datetime.datetime(2025, 12, 4, 14, 41, 50, 223000), 'conversation': {'human': 'string', 'ai': \"It sounds like we're just starting to explore what's been going on in your life, and I'm here to listen and help in any way I can. You mentioned that there are some things that have been challenging or weighing on your mind, but you didn't specify what they are. That's completely okay, and we can take things at your pace.\\n\\nTo help me better understand what's going on, can you tell me more about what a typical day or week looks like for you? Are there any areas of your life where you feel like things are going well, and are there any areas where you feel like you're struggling or feeling overwhelmed? Sometimes talking about the everyday things can help us identify patterns or areas where we might need a little extra support. What do you think?\"}, 'meta': {'Topic': 'General Life', 'Goal': 'Identify Key Areas of Concern'}}\n", "{'_id': ObjectId('69319dd23a28f55ee4f4fe00'), 'user_id': 'suraj', 'timestamp': datetime.datetime(2025, 12, 4, 14, 42, 26, 893000), 'conversation': {'human': 'I am feeling a lot of anaethetic, what exactly is that', 'ai': 'Hi Suraj, I can see that you\\'re feeling a lot of anxiety, and you mentioned \"anaethetic\". I\\'m assuming you meant \"anesthetic\", which is a term often used to describe a feeling of numbness or disconnection. It\\'s like you\\'re feeling detached from your emotions or surroundings. \\n\\nCan you tell me more about what\\'s been going on that\\'s making you feel this way? Is there something specific that\\'s causing you to feel numb or disconnected, or has this been a persistent feeling for a while now? I\\'m here to listen and help you explore this feeling further.'}, 'meta': {'Topic': ' General Life ', 'Goal': \" Explore the user's feelings of anaethetic and ask a question to understand the context and possible causes of this emotion \"}}\n", "{'_id': ObjectId('693c0533887902cffd8142d6'), 'user_id': 'sameer', 'timestamp': datetime.datetime(2025, 12, 12, 12, 6, 11, 844000), 'conversation': {'human': 'hello', 'ai': \"Hello Sameer, it's great to connect with you again! I'm glad you reached out and said hello. How have you been doing today? Is there something on your mind that you'd like to talk about, or is everything going well? I'm here to listen and support you in any way I can. \\n\\nI recall that we had discussed your emotions earlier, and you had mentioned feeling happy after a period of sadness. I'm curious to know how you're feeling now and if there's anything new that's been going on in your life. Sometimes, sharing what's on our mind can help us process our thoughts and emotions better. What's been the highlight of your day so far, or is there something that's been weighing on your mind?\"}, 'meta': {'Topic': 'Emotional Wellbeing', 'Goal': \"Encourage the user to share their current emotional state and understand what's on their mind after the greeting\"}}\n", "{'_id': ObjectId('693c05c4887902cffd8142d7'), 'user_id': 'sameer', 'timestamp': datetime.datetime(2025, 12, 12, 12, 8, 36, 317000), 'conversation': {'human': 'i wanted to discuss something', 'ai': \"Sameer, it's great that you wanted to discuss something. That takes a lot of courage, and I'm here to listen and support you in any way I can. I recall that we had discussed your emotions earlier, and you had mentioned feeling happy after a period of sadness. I'm curious to know if there's something specific that's been on your mind lately, or if there's something that's been bothering you that you'd like to talk about.\\n\\nSometimes, sharing what's on our mind can help us process our thoughts and emotions better. I'm here to provide a safe and non-judgmental space for you to express yourself. If you're willing, could you tell me a bit more about what's been going on and what you'd like to discuss? I'll do my best to listen actively and provide support. What's been the most pressing thing on your mind lately, or is there something that you've been wanting to talk about but haven't had the chance to yet?\"}, 'meta': {'Topic': 'Emotional Wellbeing', 'Goal': 'Explore the specific issue the user wants to discuss and help them open up about it'}}\n", "{'_id': ObjectId('693c1517a219e79268c508fb'), 'user_id': 'sameer', 'timestamp': datetime.datetime(2025, 12, 12, 13, 13, 59, 185000), 'conversation': {'human': 'what was my last message to you', 'ai': 'Sameer, you\\'re wondering about your last message to me. Let me see... Your last message was \"I wanted to discuss something\". Would you like to elaborate on what\\'s been on your mind?'}, 'meta': {'Topic': 'Emotional Wellbeing', 'Goal': 'Help the user recall their previous message and understand the context of their current inquiry to potentially transition into a deeper conversation about their thoughts and feelings'}}\n", "{'_id': ObjectId('693c1bbc7ed8b7fdb907efaf'), 'user_id': 'sameer', 'timestamp': datetime.datetime(2025, 12, 12, 13, 42, 20, 656000), 'conversation': {'human': 'what did i say before', 'ai': \"Hi Sameer, I'm happy to help you recall what you said before. However, since we just started our conversation, this is the beginning of our chat, and there's no previous message to refer to. Could you please tell me what's on your mind and what you'd like to talk about? I'm here to listen and help in any way I can. What's been going on, and how can I support you today?\"}, 'meta': {'Topic': 'Emotional Wellbeing', 'Goal': \"Explore the user's intention behind asking about their previous message to understand the context and potentially uncover the underlying issue they wanted to discuss\"}}\n", "{'_id': ObjectId('693c205643540225eab34862'), 'user_id': 'sameer', 'timestamp': datetime.datetime(2025, 12, 12, 14, 1, 58, 151000), 'conversation': {'human': 'what was my previous questions to you', 'ai': \"Sameer, you're trying to recall your previous questions to me. Let me see... You had asked about discussing something, then inquired about your last message, and also asked what you said before. It seems like you're trying to remember our previous conversations. Would you like to talk about what's been on your mind lately?\"}, 'meta': {'Topic': 'Emotional Wellbeing', 'Goal': \"Investigate the user's memory and recall of previous conversations to understand their current state of mind and potentially identify any patterns or concerns\"}}\n", "{'_id': ObjectId('693c207d43540225eab34863'), 'user_id': 'sameer', 'timestamp': datetime.datetime(2025, 12, 12, 14, 2, 37, 665000), 'conversation': {'human': 'I have been feeling very anxietic lately', 'ai': \"Sameer, I'm here to listen and support you. Can you tell me more about what's been causing you to feel anxious lately? Is it something specific that's triggering these feelings or has it been a general sense of unease?\"}, 'meta': {'Topic': 'Emotional Wellbeing', 'Goal': \"Explore the user's current feelings of anxiety to identify potential causes and understand its impact on their daily life\"}}\n", "{'_id': ObjectId('693c20a543540225eab34864'), 'user_id': 'sameer', 'timestamp': datetime.datetime(2025, 12, 12, 14, 3, 17, 72000), 'conversation': {'human': \"what was my exact msg to you before this? can you return it in the format ' '. \", 'ai': \"Sameer, this is the beginning of our conversation, so there's no previous message to recall. You've been feeling anxious lately, and I'm here to listen. Can you try to remember what triggered your anxiety, or is it a general feeling?\"}, 'meta': {'Topic': 'Emotional Wellbeing', 'Goal': 'Help the user become more aware of their thought patterns by asking them to reflect on their previous messages and understand how their anxiety is affecting their ability to recall conversations'}}\n", "{'_id': ObjectId('693c220843540225eab34865'), 'user_id': 'suraj', 'timestamp': datetime.datetime(2025, 12, 12, 14, 9, 12, 597000), 'conversation': {'human': 'hey, do you remember any conversation with me ', 'ai': \"Hey Suraj, I think I see a pattern here. You've been trying to recall our previous conversations, and now you're feeling anxious and numb. Can you help me understand what's driving your desire to remember those conversations? Is there something specific you're trying to hold onto or resolve?\"}, 'meta': {'Topic': ' General Life ', 'Goal': \" Investigate the user's intention behind inquiring about previous conversations and explore potential connections to their current emotional state \"}}\n", "{'_id': ObjectId('693c224f43540225eab34866'), 'user_id': 'suraj', 'timestamp': datetime.datetime(2025, 12, 12, 14, 10, 23, 996000), 'conversation': {'human': 'do you even remember me?', 'ai': \"Suraj, I do remember our previous conversations, and it seems like you're trying to reconnect with those memories. What is it about being remembered by me that's important to you right now?\"}, 'meta': {'Topic': ' General Life ', 'Goal': \" Explore the user's sense of identity and self-perception in relation to their feelings of anxiety and disconnection, and investigate how their desire to be remembered by the AI is connected to these emotions \"}}\n", "{'_id': ObjectId('693c2935f8af85f5882fe831'), 'user_id': 'mridul', 'timestamp': datetime.datetime(2025, 12, 12, 14, 39, 49, 571000), 'conversation': {'human': 'hi bro remember me??', 'ai': \"Hey Mridul, it's been a while. I'm trying to recall, how do I know you, bro?\"}, 'meta': {'Topic': 'Reconnection and Catching Up', 'Goal': 'Establish context and recall previous conversations'}}\n", "{'_id': ObjectId('693c295ff8af85f5882fe832'), 'user_id': 'mridul', 'timestamp': datetime.datetime(2025, 12, 12, 14, 40, 31, 349000), 'conversation': {'human': 'we chatted earlier, do you have that data', 'ai': 'We did chat earlier, Mridul. I recall you said \"hi bro remember me??\" and I was trying to recall how I know you. Can you remind me what we talked about after that?'}, 'meta': {'Topic': 'Reconnection and Catching Up', 'Goal': 'Retrieve conversation history and refresh context'}}\n", "{'_id': ObjectId('693c388243540225eab34868'), 'user_id': 'mridul', 'timestamp': datetime.datetime(2025, 12, 12, 15, 45, 6, 617000), 'conversation': {'human': 'do you even remember me?', 'ai': \"Mridul, I think I'm starting to recall our previous conversations. You had asked if I remembered you, and we discussed that we had chatted before. Can you give me a hint about what we talked about last time?\"}, 'meta': {'Topic': 'Reconnection and Catching Up', 'Goal': 'Establish user identity and recall past conversations'}}\n" ] } ], "source": [ "collection = db[\"chat_history-cluster\"]\n", "cursor = collection.find()\n", "for item in cursor:\n", " print(item)" ] }, { "cell_type": "code", "execution_count": null, "id": "d54f7710", "metadata": {}, "outputs": [], "source": [] }, { "cell_type": "code", "execution_count": null, "id": "2af4364e", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "{\"problems\":[{\"problem\":\"Excessive micromanagement and intrusive time‑tracking demands\",\"description\":\"The manager insists on constant time tracking, monitoring all activities even when working from home.\\nThis creates a feeling of constant surveillance, eroding trust and autonomy.\\nThe stress from being watched leads to increased anxiety and a sense of helplessness.\"},{\"problem\":\"Unwarranted delegation of tasks beyond job scope\",\"description\":\"Work that falls outside the employee’s role is redirected to them.\\nThis over‑burdening stretches resources and dilutes focus on core responsibilities.\\nIt fosters frustration, burnout, and a perception that the manager is not respecting boundaries.\"},{\"problem\":\"Politically driven decision‑making and top‑management involvement\",\"description\":\"Minor issues are escalated to senior leaders, creating a politicized environment.\\nThis amplifies power struggles and reduces the sense of personal agency.\\nEmployees feel caught in a game of influence, leading to cognitive overload and disengagement.\"},{\"problem\":\"Unaddressed mistakes and lack of accountability\",\"description\":\"The manager fails to document or acknowledge errors that delay projects.\\nWithout accountability, mistakes become normalized, eroding professional standards.\\nEmployees may develop cynicism, loss of motivation, and a fear of speaking up.\"},{\"problem\":\"After‑hours communication and dismissive “toh kya hua” attitude\",\"description\":\"The manager sends messages outside regular hours, expecting immediate responses.\\nA casual, indifferent tone (“toh kya hua”) signals a lack of respect for personal boundaries.\\nThis results in chronic sleep deprivation, emotional fatigue, and a negative impact on work‑life balance.\"}]}\n" ] } ], "source": [ "from groq import Groq\n", "client = Groq(api_key=\"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\")\n", "\n", "groq_card = client.chat.completions.create(\n", " # 401629\n", " messages=[\n", " {\n", " \"role\": \"user\",\n", " \"content\": \"\"\"\n", " So i joined an American company. It was a beautiful experience when i was finally able to work exact office hours and where we were treated like adults and not kids.\n", "No shouting, no yelling during meeting. Politely giving us our tasks, and taking an update only after deadline. Even if deadline is missed, instead of arguing, they tried to find out why did it happen and what they can do to help reach it the next time. All the help was provided without ever having any issue with each other. Colleagues are great and helpful.\n", "Every morning i was eager to work and woke up with enthusiasm\n", "But this lasted only until they decided to introduce a mediatory between us.\n", "AN INDIAN MANAGER\n", "We all knew how indian tendency is regarrding work culture, and our fears came true.\n", "The manager now wanted to control all the things we did. On top of that he started doubting us whether we are slacking off work. So he asked us to timetrack all our activities while at home. Started delegating his own work to us which wasnt even in the job profile. Soon the politics started when he decided to involve top management even in low level discussion so that his views are enforced. On top of that all his mistakes that delay work are quitely not recorded on anything.\n", "Messaging us at odd times after office hours and expecting us to work late at night is very 'casual' and signs of dedicated employee. The attitude of 'toh kya hua' is affecting very negatively.\n", "I did not for a second ever imagined that\n", "\n", "above is a userjournal \n", "Now I want you to generate a 2-3 line summary/description for each of the problems. It shuold indicate what effect it has on the user's body and mind.\n", " So basically I want to perform a cosine similarity between this description that you give and a task dataset that has multiple tasks and they have their own descriptions of what they are able to cure\n", " So, If you write a good description for each overall problem, then I can match it with the task dataset descriptions to find the best matching tasks for the user.\n", " \"\"\",\n", " },\n", " {\n", " \"role\":\"system\",\n", " \"content\":\"You are a psychologist. Output JSON\"\n", " }\n", " ],\n", " model=\"openai/gpt-oss-20b\",\n", " response_format={\"type\": \"json_object\"}\n", ")\n", "\n", "# print(groq_card.choices[0].message.content)\n", "print(groq_card.choices[0].message.content)" ] }, { "cell_type": "code", "execution_count": null, "id": "5c8536ce", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "\n", "# Personality Report\n", "\n", "Hello, **Sameer**,\n", "\n", "I’ve taken some time to reflect on the unique tapestry of your mind and heart, woven from the vibrant threads of Vata and Pitta. Below is a gentle exploration of who you are, how you feel, and how you can honor your inner rhythm.\n", "\n", "## Core Personality Snapshot\n", "\n", "- **Vata‑Pitta blend**: You carry the airy curiosity of Vata and the fiery drive of Pitta. \n", "- **Volatility & intensity**: Your emotions can shift quickly, like a breeze that turns into a storm. \n", "- **High intelligence**: You’re naturally curious, analytical, and quick to grasp new ideas. \n", "- **Need for safe space**: You thrive when you have a supportive environment that lets you express and process your feelings.\n", "\n", "## Emotional Landscape\n", "\n", "- **You often feel a tug between fear and anger**. When something doesn’t scare you, it can ignite a sharp frustration. \n", "- **You tend to seek a confidant**—someone you can “unload” onto—because you’re wired to share and vent. \n", "- **You sometimes struggle with criticism**; it can feel like a personal attack rather than constructive feedback. \n", "- **You experience intense highs**: moments of inspiration, ambition, or joy can feel overwhelming, almost like a blaze that needs to be nurtured. \n", "- **You experience rapid lows**: a sudden drop in motivation or mood can feel like a sudden chill.\n", "\n", "## Thought Patterns\n", "\n", "- **You often think in contrasts**: “What’s right vs. wrong,” “What’s possible vs. impossible.” \n", "- **You tend to be self‑critical**; you set high standards and can be hard on yourself when you fall short. \n", "- **You sometimes get caught in “what if” loops**: “What if I fail?” or “What if I’m not good enough?” \n", "- **You enjoy intellectual challenges** and often dive deep into topics that spark your curiosity.\n", "\n", "## Strengths\n", "\n", "- **Intellectual agility** – You can connect ideas quickly and see patterns others miss. \n", "- **Passion & drive** – When you set a goal, you pursue it with vigor and determination. \n", "- **Empathy for others** – Your own emotional volatility makes you sensitive to the feelings of those around you. \n", "- **Creativity** – Your mind is a fertile ground for innovative solutions and artistic expression. \n", "\n", "## Blind Spots\n", "\n", "- **Over‑reacting to criticism** – You may internalize feedback as a personal attack, which can sap your confidence. \n", "- **Difficulty maintaining consistency** – Your energy can swing, making it hard to sustain long‑term projects. \n", "- **Tendency to bottle emotions** – When you’re overwhelmed, you might hold onto feelings instead of sharing them, leading to internal tension. \n", "- **Risk of burnout** – Your fiery drive can push you to extremes, especially when you’re not balancing rest and reflection.\n", "\n", "## Gentle Guidance for Balance\n", "\n", "- **Create a “safe space” routine**: Set aside a few minutes each day for journaling or a quiet walk where you can let your thoughts flow without judgment. \n", "- **Practice mindful listening**: When receiving feedback, pause, breathe, and consider it as information, not a verdict. \n", "- **Set realistic micro‑goals**: Break larger projects into small, manageable steps to keep your energy steady. \n", "- **Cultivate grounding rituals**: Simple practices like grounding breath, a warm bath, or a calming herbal tea can soothe the Vata spark. \n", "- **Seek supportive companions**: Surround yourself with people who appreciate your intensity and can help you process emotions constructively. \n", "- **Honor your rest**: Prioritize sleep and downtime; a well‑rested mind is less prone to volatility. \n", "\n", "## Final Thought\n", "\n", "You are a brilliant, dynamic soul, **Sameer**, whose mind is as expansive as the sky and as focused as a flame. By recognizing the patterns that arise from your Vata‑Pitta nature, you can turn volatility into a powerful ally—channeling your energy into creativity, empathy, and purposeful action. Remember, the most profound growth happens when you honor both the light and the shadow within you.\n", "\n", "With warmth and respect,\n", "\n", "*Your Ayurvedic Insight*\n", "\n" ] } ], "source": [ "text = \"\"\"\n", "# Personality Report\\n\\nHello, **Sameer**,\\n\\nI’ve taken some time to reflect on the unique tapestry of your mind and heart, woven from the vibrant threads of Vata and Pitta. Below is a gentle exploration of who you are, how you feel, and how you can honor your inner rhythm.\\n\\n## Core Personality Snapshot\\n\\n- **Vata‑Pitta blend**: You carry the airy curiosity of Vata and the fiery drive of Pitta. \\n- **Volatility & intensity**: Your emotions can shift quickly, like a breeze that turns into a storm. \\n- **High intelligence**: You’re naturally curious, analytical, and quick to grasp new ideas. \\n- **Need for safe space**: You thrive when you have a supportive environment that lets you express and process your feelings.\\n\\n## Emotional Landscape\\n\\n- **You often feel a tug between fear and anger**. When something doesn’t scare you, it can ignite a sharp frustration. \\n- **You tend to seek a confidant**—someone you can “unload” onto—because you’re wired to share and vent. \\n- **You sometimes struggle with criticism**; it can feel like a personal attack rather than constructive feedback. \\n- **You experience intense highs**: moments of inspiration, ambition, or joy can feel overwhelming, almost like a blaze that needs to be nurtured. \\n- **You experience rapid lows**: a sudden drop in motivation or mood can feel like a sudden chill.\\n\\n## Thought Patterns\\n\\n- **You often think in contrasts**: “What’s right vs. wrong,” “What’s possible vs. impossible.” \\n- **You tend to be self‑critical**; you set high standards and can be hard on yourself when you fall short. \\n- **You sometimes get caught in “what if” loops**: “What if I fail?” or “What if I’m not good enough?” \\n- **You enjoy intellectual challenges** and often dive deep into topics that spark your curiosity.\\n\\n## Strengths\\n\\n- **Intellectual agility** – You can connect ideas quickly and see patterns others miss. \\n- **Passion & drive** – When you set a goal, you pursue it with vigor and determination. \\n- **Empathy for others** – Your own emotional volatility makes you sensitive to the feelings of those around you. \\n- **Creativity** – Your mind is a fertile ground for innovative solutions and artistic expression. \\n\\n## Blind Spots\\n\\n- **Over‑reacting to criticism** – You may internalize feedback as a personal attack, which can sap your confidence. \\n- **Difficulty maintaining consistency** – Your energy can swing, making it hard to sustain long‑term projects. \\n- **Tendency to bottle emotions** – When you’re overwhelmed, you might hold onto feelings instead of sharing them, leading to internal tension. \\n- **Risk of burnout** – Your fiery drive can push you to extremes, especially when you’re not balancing rest and reflection.\\n\\n## Gentle Guidance for Balance\\n\\n- **Create a “safe space” routine**: Set aside a few minutes each day for journaling or a quiet walk where you can let your thoughts flow without judgment. \\n- **Practice mindful listening**: When receiving feedback, pause, breathe, and consider it as information, not a verdict. \\n- **Set realistic micro‑goals**: Break larger projects into small, manageable steps to keep your energy steady. \\n- **Cultivate grounding rituals**: Simple practices like grounding breath, a warm bath, or a calming herbal tea can soothe the Vata spark. \\n- **Seek supportive companions**: Surround yourself with people who appreciate your intensity and can help you process emotions constructively. \\n- **Honor your rest**: Prioritize sleep and downtime; a well‑rested mind is less prone to volatility. \\n\\n## Final Thought\\n\\nYou are a brilliant, dynamic soul, **Sameer**, whose mind is as expansive as the sky and as focused as a flame. By recognizing the patterns that arise from your Vata‑Pitta nature, you can turn volatility into a powerful ally—channeling your energy into creativity, empathy, and purposeful action. Remember, the most profound growth happens when you honor both the light and the shadow within you.\\n\\nWith warmth and respect,\\n\\n*Your Ayurvedic Insight*\n", "\"\"\"\n", "print(text)" ] }, { "cell_type": "code", "execution_count": null, "id": "1f5ec632", "metadata": {}, "outputs": [], "source": [] } ], "metadata": { "kernelspec": { "display_name": "calibre-env", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.12.1" } }, "nbformat": 4, "nbformat_minor": 5 }